OGS
GetLiquidThermalExpansivity.cpp
Go to the documentation of this file.
1
14
16
17namespace MaterialPropertyLib
18{
19class Phase;
20
22 VariableArray const& vars,
23 const double density,
25 double const t, double const dt)
26{
27 // The thermal expansivity is explicitly given in the project file.
28 if (phase.hasProperty(
30 {
31 return phase
33 .template value<double>(vars, pos, t, dt);
34 }
35
36 // The thermal expansivity calculated by the density model directly.
37 return (density == 0.0)
38 ? 0.0
40 .template dValue<double>(
42 pos, t, dt) /
43 density;
44}
45} // namespace MaterialPropertyLib
Property const & property(PropertyType const &p) const
Definition Phase.cpp:53
bool hasProperty(PropertyType const &p) const
Definition Phase.cpp:69
double getLiquidThermalExpansivity(Phase const &phase, VariableArray const &vars, const double density, ParameterLib::SpatialPosition const &pos, double const t, double const dt)