OGS
SolidCompressibilityModel.h
Go to the documentation of this file.
1
11#pragma once
12
16
18{
19namespace ConstitutiveStressSaturation_StrainPressureTemperature
20{
21// TODO remove typename SolidMaterial
22template <int DisplacementDim, typename SolidMaterial>
24{
25 explicit SolidCompressibilityModel(SolidMaterial const& solid_material)
26 : solid_material_(solid_material)
27 {
28 }
29
30 void eval(SpaceTimeData const& x_t,
31 BiotData const& biot_data,
33 s_mech_data_stateless,
34 SolidCompressibilityData& out) const
35 {
36 out.beta_SR =
37 (1 - biot_data()) /
38 solid_material_.getBulkModulus(
39 x_t.t, x_t.x, &s_mech_data_stateless.stiffness_tensor);
40 }
41
42 static SolidCompressibilityModel create(SolidMaterial const& solid_material)
43 {
44 return SolidCompressibilityModel{solid_material};
45 }
46
47private:
48 SolidMaterial const& solid_material_;
49};
50} // namespace ConstitutiveStressSaturation_StrainPressureTemperature
51} // namespace ProcessLib::ThermoRichardsMechanics
ParameterLib::SpatialPosition x
Definition Base.h:74
void eval(SpaceTimeData const &x_t, BiotData const &biot_data, SolidMechanicsDataStateless< DisplacementDim > const &s_mech_data_stateless, SolidCompressibilityData &out) const