OGS
|
Handles configuration of several secondary variables from the project file.
Definition at line 114 of file SecondaryVariable.h.
#include <SecondaryVariable.h>
Public Member Functions | |
void | addNameMapping (std::string const &internal_name, std::string const &external_name) |
Register a variable with the given internal and external names. | |
void | addSecondaryVariable (std::string const &internal_name, SecondaryVariableFunctions &&fcts) |
SecondaryVariable const & | get (std::string const &external_name) const |
Returns the secondary variable with the given external name. | |
std::map< std::string, std::string >::const_iterator | begin () const |
std::map< std::string, std::string >::const_iterator | end () const |
Private Attributes | |
std::map< std::string, std::string > | _map_external_to_internal |
std::map< std::string, SecondaryVariable > | _configured_secondary_variables |
void ProcessLib::SecondaryVariableCollection::addNameMapping | ( | std::string const & | internal_name, |
std::string const & | external_name ) |
Register a variable with the given internal and external names.
Definition at line 15 of file SecondaryVariable.cpp.
References _map_external_to_internal, and BaseLib::insertIfKeyUniqueElseError().
Referenced by ProcessLib::createSecondaryVariables().
void ProcessLib::SecondaryVariableCollection::addSecondaryVariable | ( | std::string const & | internal_name, |
SecondaryVariableFunctions && | fcts ) |
Set up a secondary variable.
internal_name | the tag in the project file associated with this secondary variable. |
fcts | functions that compute the variable. |
Definition at line 25 of file SecondaryVariable.cpp.
References _configured_secondary_variables, and OGS_FATAL.
Referenced by ProcessLib::Reflection::addReflectedSecondaryVariables(), ProcessLib::ComponentTransport::ComponentTransportProcess::initializeConcreteProcess(), ProcessLib::HeatConduction::HeatConductionProcess::initializeConcreteProcess(), ProcessLib::HT::HTProcess::initializeConcreteProcess(), ProcessLib::LiquidFlow::LiquidFlowProcess::initializeConcreteProcess(), ProcessLib::RichardsComponentTransport::RichardsComponentTransportProcess::initializeConcreteProcess(), ProcessLib::RichardsFlow::RichardsFlowProcess::initializeConcreteProcess(), ProcessLib::SmallDeformationNonlocal::SmallDeformationNonlocalProcess< DisplacementDim >::initializeConcreteProcess(), ProcessLib::SteadyStateDiffusion::SteadyStateDiffusion::initializeConcreteProcess(), ProcessLib::ThermalTwoPhaseFlowWithPP::ThermalTwoPhaseFlowWithPPProcess::initializeConcreteProcess(), ProcessLib::ThermoRichardsFlow::ThermoRichardsFlowProcess::initializeConcreteProcess(), ProcessLib::TwoPhaseFlowWithPP::TwoPhaseFlowWithPPProcess::initializeConcreteProcess(), ProcessLib::TwoPhaseFlowWithPrho::TwoPhaseFlowWithPrhoProcess::initializeConcreteProcess(), ProcessLib::WellboreSimulator::WellboreSimulatorProcess::initializeConcreteProcess(), and ProcessLib::TES::TESProcess::initializeSecondaryVariables().
std::map< std::string, std::string >::const_iterator ProcessLib::SecondaryVariableCollection::begin | ( | ) | const |
Definition at line 43 of file SecondaryVariable.cpp.
References _map_external_to_internal.
std::map< std::string, std::string >::const_iterator ProcessLib::SecondaryVariableCollection::end | ( | ) | const |
Definition at line 49 of file SecondaryVariable.cpp.
References _map_external_to_internal.
SecondaryVariable const & ProcessLib::SecondaryVariableCollection::get | ( | std::string const & | external_name | ) | const |
Returns the secondary variable with the given external name.
Definition at line 54 of file SecondaryVariable.cpp.
References _configured_secondary_variables, _map_external_to_internal, and OGS_FATAL.
Referenced by addSecondaryVariablesToMesh().
|
private |
Collection of all configured secondary variables. Maps the internal variable name to the corresponding SecondaryVariable instance.
Definition at line 149 of file SecondaryVariable.h.
Referenced by addSecondaryVariable(), and get().
|
private |
Maps external variable names to internal ones. The external variable names are used, e.g., for output.
Definition at line 144 of file SecondaryVariable.h.
Referenced by addNameMapping(), begin(), end(), and get().