File binormal_stpm.hxx#

Defines

BINORMAL_STPM_H#
struct BinormalSTPM : public Component#
#include <binormal_stpm.hxx>

Adds terms to Density, Pressure and Momentum equations following the stellarator 2-point model from Yuhe Feng et al., PPCF 53 (2011) 024009 The terms add the effective parallel contribution of perpendicular transport which is of significance in long connection length scenarios. B Shanahan 2023 brendan.shanahan@ipp.mpg.de

Public Functions

BinormalSTPM(std::string name, Options &options, Solver *solver)#

Inputs

  • <name>

    • D Perpendicular density diffusion coefficient

    • chi Perpendicular heat diffusion coefficient

    • nu Perpendicular momentum diffusion coefficient

    • Theta Field line pitch as described by Feng et al.

virtual void transform(Options &state) override#

Sets

  • species

    • <name>

      • pressure correction

      • momentum correction

      • density correction

virtual void outputVars(Options &state) override#

Add extra fields for output, or set attributes e.g docstrings.

Private Members

std::string name#

Short name of the species e.g. h+.

bool diagnose#

Output diagnostics?

Field3D Theta#
Field3D chi#
Field3D D#
Field3D nu#

Field line pitch, anomalous thermal, momentum diffusion.

Field3D nu_Theta#
Field3D chi_Theta#
Field3D D_Theta#

nu/Theta, chi/Theta, D/Theta, precalculated

Field3D Theta_inv#

Precalculate 1/Theta.