19 std::map<
int, std::shared_ptr<MaterialPropertyLib::Medium>>
const& media)
22 DBUG(
"Create NoPhaseTransition constitutive model.");
25 std::array
const required_gas_properties = {
28 std::array
const required_liquid_properties = {
31 for (
auto const& m : media)
33 checkRequiredProperties(m.second->phase(
"Gas"),
34 required_gas_properties);
35 checkRequiredProperties(m.second->phase(
"AqueousLiquid"),
36 required_liquid_properties);
56 auto const pGR = p_GR();
57 auto const pCap = p_cap();
58 auto const T = T_data.
T;
62 auto const& liquid_phase = media_data.
liquid;
63 auto const& gas_phase = media_data.
gas;
65 vapour_pressure_data.
pWGR = 0;
71 mass_mole_fractions_data.
xnCG = 1.;
72 mass_mole_fractions_data.
xmCG = 1.;
76 .template value<double>(variables, x_t.
x, x_t.
t, x_t.
dt);
80 fluid_density_data.
rho_GR =
82 .template value<double>(variables, x_t.
x, x_t.
t, x_t.
dt);
85 constituent_density_data.
rho_W_GR = 0;
86 constituent_density_data.
rho_C_LR = 0;
89 mass_mole_fractions_data.
xmWL = 1.;
94 auto const pLR = pGR - pCap;
96 fluid_density_data.
rho_LR = rho_W_LR();
103 .template value<double>(variables, x_t.
x, x_t.
t, x_t.
dt);
108 .template value<double>(variables, x_t.
x, x_t.
t, x_t.
dt);
111 fluid_enthalpy_data.
h_G = cpG * T;
112 fluid_enthalpy_data.
h_L = cpL * T;
117 cv.
uG = fluid_enthalpy_data.
h_G - pGR / fluid_density_data.
rho_GR;
118 cv.
uL = fluid_enthalpy_data.
h_L;
122 .template dValue<double>(variables,
124 x_t.
x, x_t.
t, x_t.
dt);
126 fluid_density_data.
rho_GR;
134 .template dValue<double>(
136 x_t.
x, x_t.
t, x_t.
dt);
139 .template dValue<double>(
141 x_t.
x, x_t.
t, x_t.
dt);
145 fluid_density_data.
rho_GR;
153 .template dValue<double>(variables,
155 x_t.
x, x_t.
t, x_t.
dt);
void eval(SpaceTimeData const &x_t, MediaData const &media_data, GasPressureData const &p_GR, CapillaryPressureData const &p_cap, TemperatureData const &T_data, PureLiquidDensityData const &rho_W_LR, FluidEnthalpyData &fluid_enthalpy_data, MassMoleFractionsData &mass_mole_fractions_data, FluidDensityData &fluid_density_data, VapourPartialPressureData &vapour_pressure_data, ConstituentDensityData &constituent_density_data, PhaseTransitionData &cv) const override