OGS
|
Definition at line 22 of file TimeDependentHeterogeneousParameter.h.
#include <TimeDependentHeterogeneousParameter.h>
Public Types | |
using | PairTimeParameterName = std::pair<double, std::string> |
using | PairTimeParameter = std::pair<double, Parameter<double> const* const> |
Public Member Functions | |
TimeDependentHeterogeneousParameter (std::string name, std::vector< PairTimeParameterName > time_parameter_name_mapping) | |
int | getNumberOfGlobalComponents () const override |
bool | isTimeDependent () const override |
std::vector< double > | operator() (double const t, SpatialPosition const &pos) const override |
Returns the parameter value at the given time and position. | |
void | initialize (std::vector< std::unique_ptr< ParameterBase > > const ¶meters) override |
Public Member Functions inherited from ParameterLib::Parameter< double > | |
~Parameter () override=default | |
virtual Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > | getNodalValuesOnElement (MeshLib::Element const &element, double const t) const |
Returns a matrix of values for all nodes of the given element. | |
ParameterBase (std::string name_, MeshLib::Mesh const *mesh=nullptr) | |
Public Member Functions inherited from ParameterLib::ParameterBase | |
ParameterBase (std::string name_, MeshLib::Mesh const *mesh=nullptr) | |
virtual | ~ParameterBase ()=default |
void | setCoordinateSystem (CoordinateSystem const &coordinate_system) |
MeshLib::Mesh const * | mesh () const |
Private Attributes | |
std::vector< PairTimeParameterName > | _time_parameter_name_mapping |
std::vector< PairTimeParameter > | _time_parameter_mapping |
Additional Inherited Members | |
Public Attributes inherited from ParameterLib::ParameterBase | |
std::string const | name |
Protected Member Functions inherited from ParameterLib::ParameterBase | |
std::vector< double > | rotateWithCoordinateSystem (std::vector< double > const &values, SpatialPosition const &pos) const |
Protected Attributes inherited from ParameterLib::ParameterBase | |
std::optional< CoordinateSystem > | _coordinate_system |
MeshLib::Mesh const * | _mesh |
using ParameterLib::TimeDependentHeterogeneousParameter::PairTimeParameter = std::pair<double, Parameter<double> const* const> |
Definition at line 26 of file TimeDependentHeterogeneousParameter.h.
using ParameterLib::TimeDependentHeterogeneousParameter::PairTimeParameterName = std::pair<double, std::string> |
Definition at line 25 of file TimeDependentHeterogeneousParameter.h.
ParameterLib::TimeDependentHeterogeneousParameter::TimeDependentHeterogeneousParameter | ( | std::string | name, |
std::vector< PairTimeParameterName > | time_parameter_name_mapping ) |
Definition at line 19 of file TimeDependentHeterogeneousParameter.cpp.
|
overridevirtual |
Returns the number of components this Parameter has at every position and point in time.
Implements ParameterLib::Parameter< double >.
Definition at line 28 of file TimeDependentHeterogeneousParameter.cpp.
References _time_parameter_mapping, and ParameterLib::Parameter< T >::getNumberOfGlobalComponents().
|
overridevirtual |
The TimeDependentHeterogeneousParameter depends in each time step on a parameter. Since, at construction time of the TimeDependentHeterogeneousParameter other parameter needs not to be constructed and hence can't be used to setup the object this is done later on in the initialize method.
Reimplemented from ParameterLib::ParameterBase.
Definition at line 85 of file TimeDependentHeterogeneousParameter.cpp.
References _time_parameter_mapping, _time_parameter_name_mapping, DBUG(), ParameterLib::findParameter(), ParameterLib::ParameterBase::name, and OGS_FATAL.
|
overridevirtual |
Implements ParameterLib::ParameterBase.
Definition at line 33 of file TimeDependentHeterogeneousParameter.cpp.
|
overridevirtual |
Returns the parameter value at the given time and position.
Implements ParameterLib::Parameter< double >.
Definition at line 38 of file TimeDependentHeterogeneousParameter.cpp.
References ParameterLib::ParameterBase::_coordinate_system, _time_parameter_mapping, and OGS_FATAL.
|
private |
Definition at line 51 of file TimeDependentHeterogeneousParameter.h.
Referenced by getNumberOfGlobalComponents(), initialize(), and operator()().
|
private |
Definition at line 50 of file TimeDependentHeterogeneousParameter.h.
Referenced by initialize().