OGS
ProcessLib::ThermoRichardsMechanics::LiquidDensityModel< DisplacementDim > Struct Template Reference

Detailed Description

template<int DisplacementDim>
struct ProcessLib::ThermoRichardsMechanics::LiquidDensityModel< DisplacementDim >

Definition at line 31 of file LiquidDensity.h.

#include <LiquidDensity.h>

Public Member Functions

void eval (SpaceTimeData const &x_t, MediaData const &media_data, CapillaryPressureData< DisplacementDim > const &p_cap_data, TemperatureData< DisplacementDim > const &T_data, LiquidDensityData &out) const
 

Member Function Documentation

◆ eval()

template<int DisplacementDim>
void ProcessLib::ThermoRichardsMechanics::LiquidDensityModel< DisplacementDim >::eval ( SpaceTimeData const & x_t,
MediaData const & media_data,
CapillaryPressureData< DisplacementDim > const & p_cap_data,
TemperatureData< DisplacementDim > const & T_data,
LiquidDensityData & out ) const

Definition at line 16 of file LiquidDensity.cpp.

21{
22 namespace MPL = MaterialPropertyLib;
23 MPL::VariableArray variables;
24 variables.liquid_phase_pressure = -p_cap_data.p_cap;
25 variables.temperature = T_data.T;
26
27 auto const& liquid_phase = media_data.liquid;
28
29 out.rho_LR = liquid_phase.property(MPL::PropertyType::density)
30 .template value<double>(variables, x_t.x, x_t.t, x_t.dt);
31
32 out.drho_LR_dp = liquid_phase.property(MPL::PropertyType::density)
33 .template dValue<double>(
34 variables, MPL::Variable::liquid_phase_pressure,
35 x_t.x, x_t.t, x_t.dt);
36
37 out.drho_LR_dT =
38 liquid_phase.property(MPL::PropertyType::density)
39 .template dValue<double>(variables, MPL::Variable::temperature,
40 x_t.x, x_t.t, x_t.dt);
41}

References ProcessLib::ThermoRichardsMechanics::LiquidDensityData::drho_LR_dp, ProcessLib::ThermoRichardsMechanics::LiquidDensityData::drho_LR_dT, ProcessLib::ConstitutiveRelations::SpaceTimeData::dt, ProcessLib::ThermoRichardsMechanics::MediaData::liquid, MaterialPropertyLib::VariableArray::liquid_phase_pressure, ProcessLib::ThermoRichardsMechanics::CapillaryPressureData< DisplacementDim >::p_cap, ProcessLib::ThermoRichardsMechanics::LiquidDensityData::rho_LR, ProcessLib::ThermoRichardsMechanics::TemperatureData< DisplacementDim >::T, ProcessLib::ConstitutiveRelations::SpaceTimeData::t, MaterialPropertyLib::VariableArray::temperature, and ProcessLib::ConstitutiveRelations::SpaceTimeData::x.


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