OGS
ProcessLib::TH2M::ConstitutiveRelations::PureLiquidDensityModel Struct Reference

Detailed Description

Definition at line 22 of file PureLiquidDensity.h.

#include <PureLiquidDensity.h>

Public Member Functions

void eval (SpaceTimeData const &x_t, MediaData const &media_data, GasPressureData const &p_GR, CapillaryPressureData const &p_cap, TemperatureData const &T_data, PureLiquidDensityData &out) const
 

Member Function Documentation

◆ eval()

void ProcessLib::TH2M::ConstitutiveRelations::PureLiquidDensityModel::eval ( SpaceTimeData const & x_t,
MediaData const & media_data,
GasPressureData const & p_GR,
CapillaryPressureData const & p_cap,
TemperatureData const & T_data,
PureLiquidDensityData & out ) const
inline

Definition at line 24 of file PureLiquidDensity.h.

30 {
32
33 // primary variables
34 auto const pGR = p_GR();
35 auto const pCap = p_cap();
36 auto const T = T_data.T;
37 variables.gas_phase_pressure = pGR;
38 variables.capillary_pressure = pCap;
39 variables.temperature = T;
40
41 auto const& liquid_phase = media_data.liquid;
42
43 // Water pressure is passed to the VariableArray in order to calculate
44 // the water density.
45 auto const pLR = pGR - pCap;
46 variables.liquid_phase_pressure = pLR;
47
48 // Concentration is initially zero to calculate the density of the pure
49 // water phase, which is needed for the Kelvin-Laplace equation.
50 variables.concentration = 0.;
51 *out = liquid_phase.property(MaterialPropertyLib::PropertyType::density)
52 .template value<double>(variables, x_t.x, x_t.t, x_t.dt);
53 }

References MaterialPropertyLib::VariableArray::capillary_pressure, MaterialPropertyLib::VariableArray::concentration, MaterialPropertyLib::density, ProcessLib::ConstitutiveRelations::SpaceTimeData::dt, MaterialPropertyLib::VariableArray::gas_phase_pressure, ProcessLib::TH2M::ConstitutiveRelations::MediaData::liquid, MaterialPropertyLib::VariableArray::liquid_phase_pressure, ProcessLib::TH2M::ConstitutiveRelations::TemperatureData::T, ProcessLib::ConstitutiveRelations::SpaceTimeData::t, MaterialPropertyLib::VariableArray::temperature, and ProcessLib::ConstitutiveRelations::SpaceTimeData::x.

Referenced by ProcessLib::TH2M::TH2MLocalAssembler< ShapeFunctionDisplacement, ShapeFunctionPressure, DisplacementDim >::updateConstitutiveVariables().


The documentation for this struct was generated from the following file: