OGS
TemperatureDependentFraction.h
Go to the documentation of this file.
1
11#pragma once
12
15namespace MaterialPropertyLib
16{
39{
40public:
42 double const k,
43 double const T_c);
44
45 void checkScale() const override;
46
47 PropertyDataType value(VariableArray const& variable_array,
49 double const t,
50 double const dt) const override;
51
52 PropertyDataType dValue(VariableArray const& variable_array,
53 Variable const variable,
55 double const t,
56 double const dt) const override;
57
58 PropertyDataType d2Value(VariableArray const& variable_array,
59 Variable const variable1, Variable const variable2,
61 double const t, double const dt) const override;
62
63private:
64 SigmoidFunction phase_change_shape_; //< shape of the phase change
65};
66
67} // namespace MaterialPropertyLib
virtual PropertyDataType value() const
Definition Property.cpp:76
PropertyDataType d2Value(VariableArray const &variable_array, Variable const variable1, Variable const variable2, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
Default implementation: 2nd derivative of any constant property is zero.
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
TemperatureDependentFraction(std::string name, double const k, double const T_c)
constexpr double T_c
Critical temperature.
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