File GridTools.h¶
↰ Parent directory (include/hermes
)
Grid related functions: load, dump, save, create turbulent field …
Definition (include/hermes/GridTools.h
)¶
Detailed Description¶
This file contains a number of functions related to scalar and vector grids (File Grid.h).
Dump/load functions are available for saving/loading grids to/from and binary and plain text files. In the files the grid points are stored from (0, 0, 0) to (Nx, Ny, Nz) with the z-index changing the fastest. Vector components are stored per grid point in xyz-order. In case of plain-text files the vector components are separated by a blank or tab and grid points are stored one per line. All functions offer a conversion factor that is multiplied to all values.
Namespaces¶
Functions¶
- Function hermes::dumpGrid(std::unique_ptr<VectorGrid>, std::string, double)
- Function hermes::dumpGrid(std::unique_ptr<ScalarGrid>, std::string, double)
- Function hermes::dumpGridToTxt(std::unique_ptr<VectorGrid>, std::string, double)
- Function hermes::dumpGridToTxt(std::unique_ptr<ScalarGrid>, std::string, double)
- Function hermes::fromMagneticField(std::unique_ptr<VectorGrid>, std::unique_ptr<magneticfields::MagneticField>)
- Function hermes::fromMagneticFieldStrength(std::unique_ptr<ScalarGrid>, std::unique_ptr<magneticfields::MagneticField>)
- Function hermes::loadGrid(std::unique_ptr<VectorGrid>, std::string, double)
- Function hermes::loadGrid(std::unique_ptr<ScalarGrid>, std::string, double)
- Function hermes::loadGridFromTxt(std::unique_ptr<VectorGrid>, std::string, double)
- Function hermes::loadGridFromTxt(std::unique_ptr<ScalarGrid>, std::string, double)
- Function hermes::meanFieldStrength(std::unique_ptr<ScalarGrid>)
- Function hermes::meanFieldStrength(std::unique_ptr<VectorGrid>)
- Function hermes::meanFieldVector(std::unique_ptr<VectorGrid>)
- Function hermes::rmsFieldStrength(std::unique_ptr<ScalarGrid>)
- Function hermes::rmsFieldStrength(std::unique_ptr<VectorGrid>)
- Function hermes::scaleGrid(std::unique_ptr<ScalarGrid>, double)
- Function hermes::scaleGrid(std::unique_ptr<VectorGrid>, double)