Class SimpleTurbulenceSpectrum

Inheritance Relationships

Base Type

Class Documentation

class SimpleTurbulenceSpectrum : public TurbulenceSpectrum

Defines the energy spectrum of simple power-law turbulence.

Public Functions

inline SimpleTurbulenceSpectrum(double Brms, double lMin, double lMax, double sIndex = 5. / 3)

The bend-over scale is set to 1000 times lMax to ensure to be in the inertial range. This should not be changed.

  • Brms – Root mean square field strength for generated field

  • lMin – Minimum physical scale of the turbulence

  • lMax – Maximum physical scale of the turbulence

  • sIndex – Spectral index of the energy spectrum in the inertial range

inline ~SimpleTurbulenceSpectrum()
inline virtual double energySpectrum(double k) const

General energy spectrum for synthetic turbulence models

inline virtual double getCorrelationLength() const

compute the magnetic field coherence length according to the formula in Harari et al. JHEP03(2002)045


Lc coherence length of the magnetic field

inline double getBrms() const
inline double getLmin() const
inline double getLmax() const
inline double getLbendover() const
inline double getSindex() const
inline double getQindex() const
inline size_t addReference() const
inline size_t removeReference() const
inline int removeReferenceNoDelete() const
inline size_t getReferenceCount() const

Public Static Functions

static inline double turbulentCorrelationLength(double lMin, double lMax, double s)

Protected Functions

inline double spectrumNormalization() const

Normalization for the below defined Lc

Protected Attributes

mutable size_t _referenceCount