OGS
SolidHeatCapacity.cpp
Go to the documentation of this file.
1
10#include "SolidHeatCapacity.h"
11
12namespace ProcessLib::TH2M
13{
14namespace ConstitutiveRelations
15{
16
18 SpaceTimeData const& x_t,
19 MediaData const& media_data,
20 TemperatureData const& T_data,
21 SolidHeatCapacityData& solid_heat_capacity) const
22{
23 namespace MPL = MaterialPropertyLib;
24
25 MPL::VariableArray variables;
26 variables.temperature = T_data.T;
27
28 auto const& mpl_cpS =
29 media_data.solid[MPL::PropertyType::specific_heat_capacity];
30
31 *solid_heat_capacity =
32 mpl_cpS.template value<double>(variables, x_t.x, x_t.t, x_t.dt);
33}
34
35} // namespace ConstitutiveRelations
36} // namespace ProcessLib::TH2M
ParameterLib::SpatialPosition x
Definition Base.h:74
MaterialPropertyLib::Phase const & solid
Definition Base.h:46
void eval(SpaceTimeData const &x_t, MediaData const &media_data, TemperatureData const &T_data, SolidHeatCapacityData &solid_heat_capacity) const