OGS
Saturation.cpp
Go to the documentation of this file.
1
11
#include "
Saturation.h
"
12
13
namespace
ProcessLib::ThermoRichardsMechanics
14
{
15
template
<
int
DisplacementDim>
16
void
SaturationModel<DisplacementDim>::eval
(
17
SpaceTimeData
const
& x_t,
MediaData
const
& media_data,
18
CapillaryPressureData<DisplacementDim>
const
& p_cap_data,
19
SaturationData
& S_L_data,
SaturationDataDeriv
& dS_L_data)
const
20
{
21
namespace
MPL
=
MaterialPropertyLib
;
22
MPL::VariableArray
variables;
23
variables.
capillary_pressure
= p_cap_data.
p_cap
;
24
25
auto
const
& medium = media_data.
medium
;
26
27
S_L_data.
S_L
= medium.property(MPL::PropertyType::saturation)
28
.template value<double>(variables, x_t.
x
, x_t.
t
, x_t.
dt
);
29
30
dS_L_data.
dS_L_dp_cap
=
31
medium.property(MPL::PropertyType::saturation)
32
.template dValue<double>(variables,
33
MPL::Variable::capillary_pressure, x_t.
x
,
34
x_t.
t
, x_t.
dt
);
35
}
36
37
template
struct
SaturationModel<2>
;
38
template
struct
SaturationModel<3>
;
39
}
// namespace ProcessLib::ThermoRichardsMechanics
Saturation.h
MaterialPropertyLib::VariableArray
Definition
VariableType.h:97
MaterialPropertyLib::VariableArray::capillary_pressure
double capillary_pressure
Definition
VariableType.h:169
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:21
ProcessLib::ThermoRichardsMechanics
Definition
Base.h:20
ProcessLib::ConstitutiveRelations::SpaceTimeData
Definition
Base.h:73
ProcessLib::ConstitutiveRelations::SpaceTimeData::x
ParameterLib::SpatialPosition x
Definition
Base.h:74
ProcessLib::ConstitutiveRelations::SpaceTimeData::t
double t
Definition
Base.h:75
ProcessLib::ConstitutiveRelations::SpaceTimeData::dt
double dt
Definition
Base.h:76
ProcessLib::ThermoRichardsMechanics::CapillaryPressureData
Definition
Base.h:76
ProcessLib::ThermoRichardsMechanics::CapillaryPressureData::p_cap
double p_cap
Definition
Base.h:77
ProcessLib::ThermoRichardsMechanics::MediaData
Definition
Base.h:53
ProcessLib::ThermoRichardsMechanics::MediaData::medium
MaterialPropertyLib::Medium const & medium
Definition
Base.h:61
ProcessLib::ThermoRichardsMechanics::SaturationDataDeriv
Definition
Saturation.h:29
ProcessLib::ThermoRichardsMechanics::SaturationDataDeriv::dS_L_dp_cap
double dS_L_dp_cap
Definition
Saturation.h:30
ProcessLib::ThermoRichardsMechanics::SaturationData
Definition
Saturation.h:18
ProcessLib::ThermoRichardsMechanics::SaturationData::S_L
double S_L
Definition
Saturation.h:19
ProcessLib::ThermoRichardsMechanics::SaturationModel
Definition
Saturation.h:35
ProcessLib::ThermoRichardsMechanics::SaturationModel::eval
void eval(SpaceTimeData const &x_t, MediaData const &media_data, CapillaryPressureData< DisplacementDim > const &p_cap_data, SaturationData &S_L_data, SaturationDataDeriv &dS_L_data) const
Definition
Saturation.cpp:16
ProcessLib
ThermoRichardsMechanics
ConstitutiveCommon
Saturation.cpp
Generated by
1.12.0