Class SimpleGridTurbulence
Defined in File SimpleGridTurbulence.h
Inheritance Relationships
Base Type
public GridTurbulence
(Class GridTurbulence)
Derived Type
public HelicalGridTurbulence
(Class HelicalGridTurbulence)
Class Documentation
-
class SimpleGridTurbulence : public GridTurbulence
Turbulent grid-based magnetic field with a simple power-law spectrum.
Subclassed by HelicalGridTurbulence
Public Functions
-
SimpleGridTurbulence(const SimpleTurbulenceSpectrum &spectrum, const GridProperties &gridProp, unsigned int seed = 0)
Create a random initialization of a turbulent field.
- Parameters:
spectrum – TurbulenceSpectrum instance to define the spectrum of turbulence
gridProp – GridProperties instance to define the underlying grid
seed – Random seed
-
double getMeanFieldStrength() const
Evaluate the mean of all grid points
-
double getRmsFieldStrength() const
Evaluate the RMS of all grid points
-
std::array<float, 3> getRmsFieldStrengthPerAxis() const
Evaluate the RMS of all grid points per axis
-
std::vector<std::pair<int, float>> getPowerSpectrum() const
Evaluate generated power-spectrum
-
void dumpToFile(std::string filename) const
Dump a Grid3f to a binary file
-
inline double getBrms() const
-
inline virtual double getCorrelationLength() const
-
inline size_t addReference() const
-
inline size_t removeReference() const
-
inline int removeReferenceNoDelete() const
-
inline size_t getReferenceCount() const
-
SimpleGridTurbulence(const SimpleTurbulenceSpectrum &spectrum, const GridProperties &gridProp, unsigned int seed = 0)