OGS
Constant.h
Go to the documentation of this file.
1
12#pragma once
13
15
16namespace MaterialPropertyLib
17{
21class Constant final : public Property
22{
23public:
27 Constant(std::string name, PropertyDataType const& v);
28
32 PropertyDataType dValue(VariableArray const& /*variable_array*/,
33 VariableArray const& /*variable_array_prev*/,
34 Variable const /*variable*/,
35 ParameterLib::SpatialPosition const& /*pos*/,
36 double const /*t*/,
37 double const /*dt*/) const override
38 {
39 return 0.0;
40 }
41};
42} // namespace MaterialPropertyLib
PropertyDataType dValue(VariableArray const &, VariableArray const &, Variable const, ParameterLib::SpatialPosition const &, double const, double const) const override
Definition Constant.h:32
Constant(std::string name, PropertyDataType const &v)
Definition Constant.cpp:56
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