File set_temperature.hxx#

Defines

SET_TEMPERATURE_H#
struct SetTemperature : public Component#
#include <set_temperature.hxx>

Set species temperature to the temperature of another species

Example

[hermes] components = e, d, …

[e] type = … // Evolve Te

[d] type = set_temperature, …

temperature_from = e // Set Td = Te

Public Functions

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

Inputs

  • <name>

    • temperature_from name of species

inline virtual void transform(Options &state) override#

Inputs

  • species

    • <temperature_from>

      • temperature

Sets in the state:

  • species

    • <name>

      • temperature

      • pressure (if density is set)

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”.

std::string temperature_from#

The species that the temperature is taken from.

Field3D T#

The temperature.

bool diagnose#

Output diagnostics?