File fixed_fraction_ions.hxx

Defines

FIXED_FRACTION_IONS_H
struct FixedFractionIons : public Component
#include <fixed_fraction_ions.hxx>

Set ion densities from electron densities

Public Functions

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

Inputs

  • <name>

    • fractions A comma-separated list of pairs separated by @ e.g. ‘d+ @ 0.5, t+ @ 0.5’

virtual void transform(Options &state) override

Required inputs

  • species

    • e

      • density

Sets in the state the density of each species

  • species

    • <species1>

      • density = <fraction1> * electron density

Private Members

std::vector<std::pair<std::string, BoutReal>> fractions