File fixed_density.hxx#

Defines

FIXED_DENSITY_H#
struct FixedDensity : public Component#
#include <fixed_density.hxx>

Set ion density to a fixed value

Public Functions

inline FixedDensity(std::string name, Options &alloptions, Solver *solver)#

Inputs

  • <name>

    • AA

    • charge

    • density value (expression) in units of m^-3

inline virtual void transform(Options &state) override#

Sets in the state the density, mass and charge of the species

  • species

    • <name>

      • AA

      • charge

      • density

inline 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 species e.g “e”.

BoutReal charge#

Species charge e.g. electron = -1.

BoutReal AA#

Atomic mass e.g. proton = 1.

Field3D N#

Species density (normalised)