OGS
Bishops.cpp
Go to the documentation of this file.
1
10#include "Bishops.h"
11
12namespace ProcessLib::TH2M
13{
14namespace ConstitutiveRelations
15{
16void BishopsModel::eval(SpaceTimeData const& x_t, MediaData const& media_data,
17 SaturationData const& S_L_data, BishopsData& out) const
18{
19 namespace MPL = MaterialPropertyLib;
20 MPL::VariableArray variables;
21 variables.liquid_saturation = S_L_data.S_L;
22
23 auto const& medium = media_data.medium;
24
25 out.chi_S_L = medium.property(MPL::PropertyType::bishops_effective_stress)
26 .template value<double>(variables, x_t.x, x_t.t, x_t.dt);
27
28 out.dchi_dS_L = medium.property(MPL::PropertyType::bishops_effective_stress)
29 .template dValue<double>(
30 variables, MPL::Variable::liquid_saturation, x_t.x,
31 x_t.t, x_t.dt);
32}
33} // namespace ConstitutiveRelations
34} // namespace ProcessLib::TH2M
ParameterLib::SpatialPosition x
Definition Base.h:74
void eval(SpaceTimeData const &x_t, MediaData const &media_data, SaturationData const &S_L_data, BishopsData &out) const
Definition Bishops.cpp:16
MaterialPropertyLib::Medium const & medium
Definition Base.h:45