OGS
Porosity.h
Go to the documentation of this file.
1
10#pragma once
11
12#include "Base.h"
13#include "Biot.h"
16#include "Saturation.h"
18
19namespace ProcessLib::TH2M
20{
21namespace ConstitutiveRelations
22{
24{
25 double dphi_dT = nan;
26 // dphi_G_dp_GR = -ds_L_dp_GR * phi = 0;
27 // dphi_L_dp_GR = ds_L_dp_GR * phi = 0;
29 // dphi_G_dp_cap = -dphi_L_dp_cap
30};
31
33{
34 double phi = nan;
35
36 static auto reflect()
37 {
38 using Self = PorosityData;
39 namespace R = ProcessLib::Reflection;
40
41 return std::tuple{R::makeReflectionData("porosity", &Self::phi)};
42 }
43};
44
46{
47 void eval(SpaceTimeData const& x_t,
48 MediaData const& media_data,
49 PorosityData& porosity_data) const;
50
51 void dEval(SpaceTimeData const& x_t,
52 MediaData const& media_data,
53 PorosityData const& porosity_data,
54 SaturationDataDeriv const& dS_L_dp_cap,
55 PorosityDerivativeData& porosity_d_data) const;
56};
57
58template <int DisplacementDim>
60{
61 void eval(
62 SpaceTimeData const& x_t,
63 MediaData const& media_data,
64 BiotData const& biot,
65 StrainData<DisplacementDim> const& strain_data,
66 SolidThermalExpansionData<DisplacementDim> const& s_therm_exp_data,
67 PorosityData& porosity_data) const;
68
69 void dEval(
70 SpaceTimeData const& x_t,
71 MediaData const& media_data,
72 PorosityData const& porosity_data,
73 SaturationDataDeriv const& dS_L_dp_cap,
74 BiotData const& biot,
75 SolidThermalExpansionData<DisplacementDim> const& s_therm_exp_data,
76 StrainData<DisplacementDim> const& strain_data,
77 PorosityDerivativeData& porosity_d_data) const;
78};
79
82
83} // namespace ConstitutiveRelations
84} // namespace ProcessLib::TH2M
static constexpr double nan
Convenience alias for not a number.
Definition Base.h:80
void eval(SpaceTimeData const &x_t, MediaData const &media_data, BiotData const &biot, StrainData< DisplacementDim > const &strain_data, SolidThermalExpansionData< DisplacementDim > const &s_therm_exp_data, PorosityData &porosity_data) const
Definition Porosity.cpp:48
void dEval(SpaceTimeData const &x_t, MediaData const &media_data, PorosityData const &porosity_data, SaturationDataDeriv const &dS_L_dp_cap, BiotData const &biot, SolidThermalExpansionData< DisplacementDim > const &s_therm_exp_data, StrainData< DisplacementDim > const &strain_data, PorosityDerivativeData &porosity_d_data) const
Definition Porosity.cpp:77
void dEval(SpaceTimeData const &x_t, MediaData const &media_data, PorosityData const &porosity_data, SaturationDataDeriv const &dS_L_dp_cap, PorosityDerivativeData &porosity_d_data) const
Definition Porosity.cpp:30
void eval(SpaceTimeData const &x_t, MediaData const &media_data, PorosityData &porosity_data) const
Definition Porosity.cpp:17