Class Sun08Field

Inheritance Relationships

Base Type

Class Documentation

class Sun08Field : public MagneticField

Implemented the galactic magnetic field model used in 3-year WMAP analyses.

See: L. Page et al 2007 ApJS 170 335, https://iopscience.iop.org/article/10.1086/513699

Public Functions

Sun08Field()
void randomTurbulent(int seed = 0)
void setTurbulentGrid(std::shared_ptr<VectorGrid> grid)

Set a turbulent grid and activate the turbulent field component

Parameters
  • grid: vector grid containing a random field of Brms = 1

std::shared_ptr<VectorGrid> getTurbulentGrid()
void setUseTurbulent(bool use)
void setUseHalo(bool use)
bool isUsingTurbulent() const
bool isUsingHalo() const
Vector3QMField getRegularField(const Vector3QLength &pos) const
Vector3QMField getTurbulentField(const Vector3QLength &pos) const
Vector3QMField getField(const Vector3QLength &pos) const