21namespace ConstitutiveStress_StrainTemperature
23template <
int DisplacementDim>
27 "Checking correct model evaluation order in the constitutive setting.");
31 constexpr auto D = DisplacementDim;
33 using Inputs = mp_list<SpaceTimeData, MediaData, TemperatureData<D>,
36 using InputsAndPrevState = mp_append<Inputs, StatefulDataPrev<D>>;
43 OGS_FATAL(
"The constitutive setting has a wrong evaluation order.");
46 INFO(
"Model evaluation order is correct.");
51template <
int DisplacementDim>
59 [[maybe_unused]]
static const bool model_order_correct =
66 std::get<ElasticTangentStiffnessModel<DisplacementDim>>(models).eval(
67 x_t, T_data, C_el_data);
69 auto const& eps = std::get<StrainData<DisplacementDim>>(state).eps;
70 auto const& sigma_sw =
71 std::get<SwellingDataStateful<DisplacementDim>>(state).sigma_sw;
72 std::get<PrevState<MechanicalStrainData<DisplacementDim>>>(prev_state)
76 ? eps + C_el_data.
C_el.inverse() * sigma_sw
80template <
int DisplacementDim>
95 auto const aux_data = std::tuple{
SpaceTimeData{x_position, t, dt},
98 auto const mat_state_tuple = std::tie(mat_state);
102 std::get<StrainData<DisplacementDim>>(state).eps.noalias() = eps_arg;
105 out, prev_state, state, tmp);
110 auto const& biot_data = std::get<BiotData>(tmp);
111 auto const& poro_data = std::get<PorosityData>(state);
113 if (biot_data() < poro_data.phi)
116 "ThermoRichardsMechanics: Biot-coefficient {} is smaller than "
117 "porosity {} in element/integration point {}/{}.",
void INFO(fmt::format_string< Args... > fmt, Args &&... args)
bool hasProperty(PropertyType const &p) const
std::optional< std::size_t > getElementID() const
std::optional< unsigned > getIntegrationPoint() const
bool isEvalOrderCorrectRT()
void evalAllInOrder(Functions &fs, Tuples &... ts)
std::tuple< ElasticTangentStiffnessModel< DisplacementDim >, BiotModel, SolidCompressibilityModel< DisplacementDim, SolidConstitutiveRelation< DisplacementDim > >, SaturationModel< DisplacementDim >, BishopsModel, BishopsPrevModel, PorosityModel< DisplacementDim >, SwellingModel< DisplacementDim >, SolidThermalExpansionModel< DisplacementDim >, SolidMechanicsModel< DisplacementDim >, LiquidDensityModel< DisplacementDim >, SolidDensityModel< DisplacementDim >, GravityModel< DisplacementDim >, LiquidViscosityModel< DisplacementDim >, TransportPorosityModel< DisplacementDim >, PermeabilityModel< DisplacementDim >, ThermoOsmosisModel< DisplacementDim >, DarcyLawModel< DisplacementDim >, TRMHeatStorageAndFluxModel< DisplacementDim >, TRMVaporDiffusionModel< DisplacementDim >, FluidThermalExpansionModel< DisplacementDim >, TRMStorageModel< DisplacementDim >, EqPModel< DisplacementDim >, EqTModel< DisplacementDim > > ConstitutiveModels
Constitutive models used for assembly.
std::tuple< DarcyLawData< DisplacementDim >, LiquidDensityData, LiquidViscosityData, SolidDensityData, PermeabilityData< DisplacementDim > > OutputData
Data that is needed for output purposes, but not directly for the assembly.
PrevStateOf< StatefulData< DisplacementDim > > StatefulDataPrev
std::tuple< SaturationData, PorosityData, TransportPorosityData, StrainData< DisplacementDim >, SwellingDataStateful< DisplacementDim >, MechanicalStrainData< DisplacementDim >, EffectiveStressData< DisplacementDim > > StatefulData
Data whose state must be tracked by the TRM process.
static bool checkCorrectModelEvalOrder()
std::tuple< SolidMechanicsDataStateless< DisplacementDim >, TotalStressData< DisplacementDim >, GravityData< DisplacementDim >, TRMHeatStorageAndFluxData< DisplacementDim >, TRMVaporDiffusionData< DisplacementDim >, TRMStorageData, EqPData< DisplacementDim >, EqTData< DisplacementDim >, ThermoOsmosisData< DisplacementDim > > ConstitutiveData
Data that is needed for the equation system assembly.
std::tuple< SwellingDataStateless< DisplacementDim >, ElasticTangentStiffnessData< DisplacementDim >, BiotData, SolidCompressibilityData, SaturationDataDeriv, BishopsData, PrevState< BishopsData >, SolidThermalExpansionData< DisplacementDim >, FluidThermalExpansionData, EquivalentPlasticStrainData > ConstitutiveTempData
KV::KelvinVectorType< DisplacementDim > KelvinVector
void init(ConstitutiveModels< DisplacementDim > &models, double const t, double const dt, ParameterLib::SpatialPosition const &x_position, MediaData const &media_data, TemperatureData< DisplacementDim > const &T_data, StatefulData< DisplacementDim > &state, StatefulDataPrev< DisplacementDim > &prev_state) const
void eval(ConstitutiveModels< DisplacementDim > &models, double const t, double const dt, ParameterLib::SpatialPosition const &x_position, MaterialPropertyLib::Medium const &medium, TemperatureData< DisplacementDim > const &T_data, CapillaryPressureData< DisplacementDim > const &p_cap_data, KelvinVector< DisplacementDim > const &eps_arg, StatefulData< DisplacementDim > &state, StatefulDataPrev< DisplacementDim > const &prev_state, MaterialStateData< DisplacementDim > &mat_state, ConstitutiveTempData< DisplacementDim > &tmp, OutputData< DisplacementDim > &out, ConstitutiveData< DisplacementDim > &cd) const
Evaluate the constitutive setting.
KelvinMatrix< DisplacementDim > C_el