OGS
|
Single, constant value parameter.
Definition at line 19 of file ConstantParameter.h.
#include <ConstantParameter.h>
Public Member Functions | |
ConstantParameter (std::string const &name_, T const &value) | |
Construction with single value. | |
ConstantParameter (std::string const &name_, std::vector< T > values) | |
bool | isTimeDependent () const override |
int | getNumberOfGlobalComponents () const override |
std::vector< T > | operator() (double const, SpatialPosition const &pos) const override |
Returns the parameter value at the given time and position. | |
Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > | getNodalValuesOnElement (MeshLib::Element const &element, double const) const override |
Returns a matrix of values for all nodes of the given element. | |
Public Member Functions inherited from ParameterLib::Parameter< T > | |
~Parameter () override=default | |
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) |
virtual void | initialize (std::vector< std::unique_ptr< ParameterBase > > const &) |
MeshLib::Mesh const * | mesh () const |
Private Attributes | |
std::vector< T > const | _values |
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 |
|
inlineexplicit |
Construction with single value.
Definition at line 22 of file ConstantParameter.h.
|
inlineexplicit |
Construction with a tuple. The given tuple must be non-empty.
Definition at line 29 of file ConstantParameter.h.
References ParameterLib::ConstantParameter< T >::_values.
|
inlineoverridevirtual |
Returns a matrix of values for all nodes of the given element.
Reimplemented from ParameterLib::Parameter< T >.
Definition at line 53 of file ConstantParameter.h.
References ParameterLib::ConstantParameter< T >::_values, ParameterLib::ConstantParameter< T >::getNumberOfGlobalComponents(), and MeshLib::Element::getNumberOfNodes().
|
inlineoverridevirtual |
Returns the number of components this Parameter has at every position and point in time.
Implements ParameterLib::Parameter< T >.
Definition at line 37 of file ConstantParameter.h.
References ParameterLib::ConstantParameter< T >::_values.
Referenced by ParameterLib::ConstantParameter< T >::getNodalValuesOnElement().
|
inlineoverridevirtual |
Implements ParameterLib::ParameterBase.
Definition at line 35 of file ConstantParameter.h.
|
inlineoverridevirtual |
Returns the parameter value at the given time and position.
Implements ParameterLib::Parameter< T >.
Definition at line 42 of file ConstantParameter.h.
References ParameterLib::ParameterBase::_coordinate_system, ParameterLib::ConstantParameter< T >::_values, and ParameterLib::ParameterBase::rotateWithCoordinateSystem().
|
private |
Definition at line 72 of file ConstantParameter.h.
Referenced by ParameterLib::ConstantParameter< T >::ConstantParameter(), ParameterLib::ConstantParameter< T >::getNodalValuesOnElement(), ParameterLib::ConstantParameter< T >::getNumberOfGlobalComponents(), and ParameterLib::ConstantParameter< T >::operator()().