OGS
Parameter.cpp
Go to the documentation of this file.
1
12
13namespace MaterialPropertyLib
14{
16 ParameterLib::Parameter<double> const& parameter)
17 : parameter_(parameter)
18{
19 name_ = std::move(name);
20}
21
24 double const t, double const /*dt*/) const
25{
26 return fromVector(parameter_(t, pos));
27}
28
30 VariableArray const& /*variable_array_prev*/,
32 double const t, double const /*dt*/) const
33{
34 return fromVector(parameter_(t, pos));
35}
36
38 Variable const /*variable*/,
39 ParameterLib::SpatialPosition const& /*pos*/,
40 double const /*t*/,
41 double const /*dt*/) const
42{
43 return double{};
44}
45
47 VariableArray const& /*variable_array*/, Variable const /*pv1*/,
48 Variable const /*pv2*/, ParameterLib::SpatialPosition const& /*pos*/,
49 double const /*t*/, double const /*dt*/) const
50{
51 return double{};
52}
53
54} // namespace MaterialPropertyLib
ParameterLib::Parameter< double > const & parameter_
Definition Parameter.h:54
PropertyDataType d2Value(VariableArray const &variable_array, Variable const pv1, Variable const pv2, ParameterLib::SpatialPosition const &, double const, double const) const override
Definition Parameter.cpp:46
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &, double const, double const) const override
Definition Parameter.cpp:37
Parameter(std::string name, ParameterLib::Parameter< double > const &parameter)
Definition Parameter.cpp:15
virtual PropertyDataType value() const
Definition Property.cpp:76
PropertyDataType fromVector(std::vector< double > const &values)
Definition Property.cpp:23
std::variant< double, Eigen::Matrix< double, 2, 1 >, Eigen::Matrix< double, 3, 1 >, Eigen::Matrix< double, 2, 2 >, Eigen::Matrix< double, 3, 3 >, Eigen::Matrix< double, 4, 1 >, Eigen::Matrix< double, 6, 1 >, Eigen::MatrixXd > PropertyDataType
Definition Property.h:31