OGS
Saturation.cpp
Go to the documentation of this file.
1
11#include "Saturation.h"
12
14{
15template <int DisplacementDim>
17 SpaceTimeData const& x_t, MediaData const& media_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
37template struct SaturationModel<2>;
38template struct SaturationModel<3>;
39} // namespace ProcessLib::ThermoRichardsMechanics
ParameterLib::SpatialPosition x
Definition Base.h:74
MaterialPropertyLib::Medium const & medium
Definition Base.h:61
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