Function hermes::initTurbulence

Function Documentation

void initTurbulence(std::shared_ptr<VectorGrid> grid, double Brms, double lMin, double lMax, double alpha = -11./3., int seed = 0, bool helicity = false, double H = 0)

Create a random initialization of a turbulent field.

Parameters
  • lMin: Minimum wavelength of the turbulence
  • lMax: Maximum wavelength of the turbulence
  • alpha: Power law index of <B^2(k)> ~ k^alpha (alpha = -11/3 corresponds to a Kolmogorov spectrum)
  • Brms: RMS field strength
  • seed: Random seed
  • helicity: Turn on/off helicity
  • H: helicity parameter