Class TurbulentField

Inheritance Relationships

Base Type

Derived Types

Class Documentation

class TurbulentField : public MagneticField

An abstract base class for different models of turbulent magnetic fields.

This module provides common methods for all turbulent (synthetic) magnetic fields. Does not actually implement any turbulent field.

Subclassed by GridTurbulence, PlaneWaveTurbulence

Public Functions

inline TurbulentField(const TurbulenceSpectrum &spectrum)
inline virtual ~TurbulentField()
inline double getBrms() const
inline virtual double getCorrelationLength() const
inline virtual Vector3d getField(const Vector3d &position) const
inline virtual Vector3d getField(const Vector3d &position, double z) const
inline size_t addReference() const
inline size_t removeReference() const
inline int removeReferenceNoDelete() const
inline size_t getReferenceCount() const

Protected Attributes

const TurbulenceSpectrum &spectrum
mutable size_t _referenceCount