75 double const dt)
const
77 auto const& medium = *std::get<Medium*>(
scale_);
79 auto const& frozen_fraction_property =
83 std::get<double>(porosity_property.value(variable_array, pos, t, dt));
84 auto const phi_fr = std::get<double>(
85 frozen_fraction_property.value(variable_array, pos, t, dt));
86 auto const phi_li = phi - phi_fr;
87 auto const phi_po = 1 - phi;
96 auto const c_li = std::get<double>(
98 auto const c_fr = std::get<double>(
100 auto const c_po = std::get<double>(
105 return phi_li * rho_li * c_li + phi_fr * rho_fr * c_fr +
106 phi_po * rho_po * c_po;
112 double const dt)
const
114 auto const& medium = *std::get<Medium*>(
scale_);
116 auto const& frozen_fraction_property =
119 auto const rho_eff = effective_density_property.template
value<double>(
120 variable_array, pos, t, dt);
123 auto const dphi_fr_dT = frozen_fraction_property.template
dValue<double>(
128 auto const Lvol =
l_ * rho_fr;
129 auto const Cvol_app = Cvol - Lvol * dphi_fr_dT;
131 return Cvol_app / rho_eff;
137 double const dt)
const
141 "SpecificHeatCapacityWithLatentHeat::dvalue is implemented for "
142 "derivatives with respect to temperature only.");
144 auto const& medium = *std::get<Medium*>(
scale_);
146 auto const& frozen_fraction_property =
149 auto const rho_eff = effective_density_property.template
value<double>(
150 variable_array, pos, t, dt);
155 auto const c_li = std::get<double>(
157 auto const c_fr = std::get<double>(
159 auto const drho_dT = effective_density_property.template
dValue<double>(
161 auto const dphi_fr_dT = frozen_fraction_property.template
dValue<double>(
163 auto const d2phi_fr_dT2 = frozen_fraction_property.template
d2Value<double>(
169 auto const C_app = (Cvol -
l_ * rho_eff * dphi_fr_dT) / rho_eff;
170 auto const dCvol_dphi_fr = rho_fr * c_fr - rho_li * c_li;
171 auto const dCvol_app_dT =
172 dCvol_dphi_fr * dphi_fr_dT -
l_ * rho_eff * d2phi_fr_dT2;
174 return (dCvol_app_dT - drho_dT / rho_eff * C_app) / rho_eff;
virtual PropertyDataType d2Value(VariableArray const &variable_array, Variable const variable1, Variable const variable2, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const
Default implementation: 2nd derivative of any constant property is zero.
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