OGS
Bishops.cpp
Go to the documentation of this file.
1
11#include "Bishops.h"
12
14{
15static void bishopsModelEvalImpl(SpaceTimeData const& x_t,
16 MediaData const& media_data,
17 SaturationData const& S_L_data,
18 BishopsData& out)
19{
20 namespace MPL = MaterialPropertyLib;
21 MPL::VariableArray variables;
22 variables.liquid_saturation = S_L_data.S_L;
23
24 auto const& medium = media_data.medium;
25
26 out.chi_S_L = medium.property(MPL::PropertyType::bishops_effective_stress)
27 .template value<double>(variables, x_t.x, x_t.t, x_t.dt);
28
29 out.dchi_dS_L = medium.property(MPL::PropertyType::bishops_effective_stress)
30 .template dValue<double>(
31 variables, MPL::Variable::liquid_saturation, x_t.x,
32 x_t.t, x_t.dt);
33}
34
35void BishopsModel::eval(SpaceTimeData const& x_t, MediaData const& media_data,
36 SaturationData const& S_L_data, BishopsData& out) const
37{
38 bishopsModelEvalImpl(x_t, media_data, S_L_data, out);
39}
40
42 MediaData const& media_data,
43 PrevState<SaturationData> const& S_L_data,
44 PrevState<BishopsData>& out) const
45{
46 bishopsModelEvalImpl(x_t, media_data, *S_L_data, *out);
47}
48} // namespace ProcessLib::ThermoRichardsMechanics
static void bishopsModelEvalImpl(SpaceTimeData const &x_t, MediaData const &media_data, SaturationData const &S_L_data, BishopsData &out)
Definition Bishops.cpp:15
Represents a previous state of type T.
Definition Base.h:21
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:35
void eval(SpaceTimeData const &x_t, MediaData const &media_data, PrevState< SaturationData > const &S_L_data, PrevState< BishopsData > &out) const
Definition Bishops.cpp:41
MaterialPropertyLib::Medium const & medium
Definition Base.h:61