File recycling.hxx
Defines
-
RECYCLING_H
-
struct Recycling : public Component
- #include <recycling.hxx>
Convert fluxes of species at boundaries
Since this must be calculated after boundary fluxes (e.g. sheath), it is included as a top-level component
Public Functions
-
Recycling(std::string name, Options &alloptions, Solver*)
Inputs
<name>
species A comma-separated list of species to recycle
<species>
recycle_as The species to recycle into
recycle_multiplier The recycled flux multiplier, between 0 and 1
recycle_energy The energy of the recycled particles [eV]
-
virtual void transform(Options &state) override
Inputs
species
<species>
density
velocity
Outputs
species
<species>
density_source
-
virtual void outputVars(Options &state) override
Add extra fields for output, or set attributes e.g docstrings.
Private Members
-
std::vector<RecycleChannel> channels
-
bool target_recycle
-
bool sol_recycle
-
bool pfr_recycle
-
bool neutral_pump
Flags for enabling recycling in different regions.
-
bool diagnose
Save additional post-processing variables?
-
Field3D density_source
-
Field2D is_pump
1 = pump, 0 = no pump. Works only in SOL/PFR
-
Field3D target_recycle_density_source
-
Field3D target_recycle_energy_source
-
Field3D wall_recycle_density_source
-
Field3D pump_recycle_density_source
-
Field3D pump_recycle_energy_source
-
Field3D radial_particle_outflow
-
Field3D radial_energy_outflow
Radial fluxes coming from evolve_density and evolve_pressure used in recycling calc.
-
struct RecycleChannel
Public Members
-
std::string from
The species name to recycle.
-
std::string to
Species to recycle to.
-
BoutReal target_multiplier
Flux multiplier (recycling fraction). Combination of recycling fraction and species change e.g h+ -> h2 results in 0.5 multiplier
-
BoutReal sol_multiplier
-
BoutReal pfr_multiplier
-
BoutReal pump_multiplier
-
BoutReal target_energy
-
BoutReal sol_energy
-
BoutReal pfr_energy
Energy of recycled particle (normalised to Tnorm)
-
std::string from
-
Recycling(std::string name, Options &alloptions, Solver*)