OGS
Saturation.cpp
Go to the documentation of this file.
1
10#include "Saturation.h"
11
12namespace ProcessLib::TH2M
13{
14namespace ConstitutiveRelations
15{
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
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
ParameterLib::SpatialPosition x
Definition Base.h:74
MaterialPropertyLib::Medium const & medium
Definition Base.h:45
void dEval(SpaceTimeData const &x_t, MediaData const &media_data, CapillaryPressureData const &p_cap, SaturationDataDeriv &dS_L_data) const
void eval(SpaceTimeData const &x_t, MediaData const &media_data, CapillaryPressureData const &p_cap, SaturationData &S_L_data) const