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

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

Protected Attributes

const TurbulenceSpectrum &spectrum
size_t _referenceCount