OGS
Saturation.cpp
Go to the documentation of this file.
1
10
#include "
Saturation.h
"
11
12
namespace
ProcessLib::TH2M
13
{
14
namespace
ConstitutiveRelations
15
{
16
void
SaturationModel::eval
(
SpaceTimeData
const
& x_t,
17
MediaData
const
& media_data,
18
CapillaryPressureData
const
& p_cap,
19
SaturationData
& S_L_data)
const
20
{
21
namespace
MPL
=
MaterialPropertyLib
;
22
MPL::VariableArray
variables;
23
variables.
capillary_pressure
= 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
31
void
SaturationModel::dEval
(
SpaceTimeData
const
& x_t,
32
MediaData
const
& media_data,
33
CapillaryPressureData
const
& p_cap,
34
SaturationDataDeriv
& dS_L_data)
const
35
{
36
namespace
MPL
=
MaterialPropertyLib
;
37
MPL::VariableArray
variables;
38
variables.
capillary_pressure
= p_cap();
39
40
auto
const
& medium = media_data.
medium
;
41
42
dS_L_data() = medium.property(MPL::PropertyType::saturation)
43
.template dValue<double>(
44
variables, MPL::Variable::capillary_pressure, x_t.
x
,
45
x_t.
t
, x_t.
dt
);
46
}
47
}
// namespace ConstitutiveRelations
48
}
// namespace ProcessLib::TH2M
Saturation.h
MaterialPropertyLib::VariableArray
Definition
VariableType.h:99
MaterialPropertyLib::VariableArray::capillary_pressure
double capillary_pressure
Definition
VariableType.h:171
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:21
ProcessLib::TH2M
Definition
Advection.cpp:13
BaseLib::StrongType
Definition
StrongType.h:25
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::TH2M::ConstitutiveRelations::MediaData
Definition
Base.h:39
ProcessLib::TH2M::ConstitutiveRelations::MediaData::medium
MaterialPropertyLib::Medium const & medium
Definition
Base.h:45
ProcessLib::TH2M::ConstitutiveRelations::SaturationData
Definition
Saturation.h:21
ProcessLib::TH2M::ConstitutiveRelations::SaturationData::S_L
double S_L
Definition
Saturation.h:22
ProcessLib::TH2M::ConstitutiveRelations::SaturationModel::dEval
void dEval(SpaceTimeData const &x_t, MediaData const &media_data, CapillaryPressureData const &p_cap, SaturationDataDeriv &dS_L_data) const
Definition
Saturation.cpp:31
ProcessLib::TH2M::ConstitutiveRelations::SaturationModel::eval
void eval(SpaceTimeData const &x_t, MediaData const &media_data, CapillaryPressureData const &p_cap, SaturationData &S_L_data) const
Definition
Saturation.cpp:16
ProcessLib
TH2M
ConstitutiveRelations
Saturation.cpp
Generated by
1.11.0