OGS
ConstitutiveSetting.h
Go to the documentation of this file.
1
11#pragma once
12
13#include "ConstitutiveData.h"
14#include "ConstitutiveModels.h"
15
17{
18namespace ConstitutiveStressSaturation_StrainPressureTemperature
19{
20template <int DisplacementDim>
22{
23 void init(ConstitutiveModels<DisplacementDim>&, double const /*t*/,
24 double const /*dt*/, ParameterLib::SpatialPosition const&,
28
30 void eval(ConstitutiveModels<DisplacementDim>& models, double const t,
31 double const dt, ParameterLib::SpatialPosition const& x_position,
32 MaterialPropertyLib::Medium const& medium,
35 KelvinVector<DisplacementDim> const& eps_arg,
37 StatefulDataPrev<DisplacementDim> const& prev_state,
42
45 {
46 return std::get<TotalStressData<DisplacementDim>>(state).sigma_total;
47 }
50 {
51 return std::get<TotalStressData<DisplacementDim>>(state).sigma_total;
52 }
53
60 KelvinVector<DisplacementDim> const& pore_pressure_part)
61 {
62 auto& sigma_total =
63 std::get<TotalStressData<DisplacementDim>>(state).sigma_total;
64 sigma_total.noalias() -= pore_pressure_part;
65
66 (std::get<PrevState<TotalStressData<DisplacementDim>>>(prev_state)
67 ->sigma_total)
68 .noalias() = sigma_total;
69 }
70};
71
72extern template struct ConstitutiveSetting<2>;
73extern template struct ConstitutiveSetting<3>;
74} // namespace ConstitutiveStressSaturation_StrainPressureTemperature
75} // namespace ProcessLib::ThermoRichardsMechanics
std::tuple< SolidMechanicsDataStateless< 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< BiotModel, SolidMechanicsModel< DisplacementDim >, SolidCompressibilityModel< DisplacementDim, SolidConstitutiveRelation< DisplacementDim > >, BishopsModel, BishopsPrevModel, PorosityModel< DisplacementDim >, LiquidDensityModel< DisplacementDim >, SolidDensityModel< DisplacementDim >, GravityModel< DisplacementDim >, LiquidViscosityModel< DisplacementDim >, TransportPorosityModel< DisplacementDim >, PermeabilityModel< DisplacementDim >, ThermoOsmosisModel< DisplacementDim >, DarcyLawModel< DisplacementDim >, TRMHeatStorageAndFluxModel< DisplacementDim >, TRMVaporDiffusionModel< DisplacementDim >, SolidThermalExpansionModel< 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.
std::tuple< BiotData, SolidCompressibilityData, SaturationDataDeriv, BishopsData, PrevState< BishopsData >, SolidThermalExpansionData< DisplacementDim >, FluidThermalExpansionData, EquivalentPlasticStrainData > ConstitutiveTempData
std::tuple< SaturationData, PorosityData, TransportPorosityData, StrainData< DisplacementDim >, TotalStressData< DisplacementDim > > StatefulData
Data whose state must be tracked by the TRM process.
KV::KelvinVectorType< DisplacementDim > KelvinVector
Definition Base.h:26
static KelvinVector< DisplacementDim > const & statefulStress(StatefulData< DisplacementDim > const &state)
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.
static void convertInitialStressType(StatefulData< DisplacementDim > &state, StatefulDataPrev< DisplacementDim > &prev_state, KelvinVector< DisplacementDim > const &pore_pressure_part)
void init(ConstitutiveModels< DisplacementDim > &, double const, double const, ParameterLib::SpatialPosition const &, MediaData const &, TemperatureData< DisplacementDim > const &, StatefulData< DisplacementDim > &, StatefulDataPrev< DisplacementDim > &) const
static KelvinVector< DisplacementDim > & statefulStress(StatefulData< DisplacementDim > &state)