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 std::map<ReactionDiagnosticType, std::string> state_labels = {{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, 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, DiagnosticTransformerType transformer)#
ReactionDiagnostic(const ReactionDiagnostic&) = delete#
ReactionDiagnostic &operator=(const ReactionDiagnostic&) = delete#
ReactionDiagnostic(ReactionDiagnostic&&) = default#
inline void add_to_state(Options &state)#
inline void set_data(const Field3D &data)#
inline Field3D transform(Field3D src_fld)#

Public Members

const std::string name#
const std::string long_name#
const std::string source#
const std::string standard_name#
const ReactionDiagnosticType type#

Public Static Functions

static inline std::string default_std_name(ReactionDiagnosticType type)#

Private Members

BoutReal conversion#
Field3D data#
const DiagnosticTransformerType transformer#
std::string units#