OGS
LiquidDensity.cpp
Go to the documentation of this file.
1
11#include "LiquidDensity.h"
12
14{
15template <int DisplacementDim>
17 SpaceTimeData const& x_t, MediaData const& media_data,
20 LiquidDensityData& out) const
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}
42
43template struct LiquidDensityModel<2>;
44template struct LiquidDensityModel<3>;
45} // namespace ProcessLib::ThermoRichardsMechanics
ParameterLib::SpatialPosition x
Definition Base.h:74
void eval(SpaceTimeData const &x_t, MediaData const &media_data, CapillaryPressureData< DisplacementDim > const &p_cap_data, TemperatureData< DisplacementDim > const &T_data, LiquidDensityData &out) const
MaterialPropertyLib::Phase const & liquid
Definition Base.h:62