File reaction_diagnostic.hxx#
Defines
-
REACTION_DIAGNOSTIC_H#
Typedefs
-
typedef std::function<Field3D(const Field3D&)> DiagnosticTransformerType#
Functions
-
BOUT_ENUM_CLASS(ReactionDiagnosticType, collision_freq, density_src, energy_src, energy_loss, momentum_src)#
-
std::string toString(ReactionDiagnosticType diag_type)#
-
inline Field3D identity(const Field3D &src_fld)#
-
inline Field3D negate(const Field3D &src_fld)#
Variables
-
static const std::map<ReactionDiagnosticType, std::string> sp_data_keys = {{ReactionDiagnosticType::collision_freq, "collision_frequency"}, {ReactionDiagnosticType::density_src, "density_source"}, {ReactionDiagnosticType::energy_src, "energy_source"}, {ReactionDiagnosticType::energy_loss, "energy_source"}, {ReactionDiagnosticType::momentum_src, "momentum_source"}}#
-
struct ReactionDiagnostic#
- #include <reaction_diagnostic.hxx>
Public Functions
-
inline ReactionDiagnostic(const std::string &name, const std::string &long_name, ReactionDiagnosticType type, const std::string &source, const Options &units, DiagnosticTransformerType transformer = identity)#
-
inline ReactionDiagnostic(const std::string &name, const std::string &long_name, ReactionDiagnosticType type, const std::string &source, const std::string &standard_name, const Options &units, DiagnosticTransformerType transformer)#
-
ReactionDiagnostic(const ReactionDiagnostic&) = delete#
-
ReactionDiagnostic &operator=(const ReactionDiagnostic&) = delete#
-
ReactionDiagnostic &operator=(ReactionDiagnostic&&) = delete#
-
ReactionDiagnostic(ReactionDiagnostic&&) = default#
-
~ReactionDiagnostic() = default#
-
inline void add_to_state(Options &state)#
-
inline std::string get_name() const#
-
inline void set_data(const Field3D &data)#
-
inline Field3D transform(Field3D src_fld)#
Public Static Functions
-
static inline std::string default_std_name(ReactionDiagnosticType type)#
-
inline ReactionDiagnostic(const std::string &name, const std::string &long_name, ReactionDiagnosticType type, const std::string &source, const Options &units, DiagnosticTransformerType transformer = identity)#