Class HelicalGridTurbulence
Defined in File HelicalGridTurbulence.h
Inheritance Relationships
Base Type
public SimpleGridTurbulence
(Class SimpleGridTurbulence)
Class Documentation
-
class HelicalGridTurbulence : public SimpleGridTurbulence
Turbulent grid-based magnetic field with a simple power-law spectrum.
Public Functions
-
HelicalGridTurbulence(const SimpleTurbulenceSpectrum &spectrum, const GridProperties &gridProp, double H, 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
H – Helicity
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
-
HelicalGridTurbulence(const SimpleTurbulenceSpectrum &spectrum, const GridProperties &gridProp, double H, unsigned int seed = 0)