OGS
ProcessLib::ThermoRichardsMechanics::TransportPorosityModel< DisplacementDim > Struct Template Reference

Detailed Description

template<int DisplacementDim>
struct ProcessLib::ThermoRichardsMechanics::TransportPorosityModel< DisplacementDim >

Definition at line 33 of file TransportPorosity.h.

#include <TransportPorosity.h>

Public Member Functions

void eval (SpaceTimeData const &x_t, MediaData const &media_data, SolidCompressibilityData const &solid_compressibility_data, BishopsData const &bishops_data, PrevState< BishopsData > const &bishops_data_prev, CapillaryPressureData< DisplacementDim > const &p_cap_data, PorosityData const &poro_data, StrainData< DisplacementDim > const &eps_data, PrevState< StrainData< DisplacementDim > > const &eps_prev_data, PrevState< TransportPorosityData > const &transport_poro_data_prev, TransportPorosityData &transport_poro_data) const
 

Member Function Documentation

◆ eval()

template<int DisplacementDim>
void ProcessLib::ThermoRichardsMechanics::TransportPorosityModel< DisplacementDim >::eval ( SpaceTimeData const & x_t,
MediaData const & media_data,
SolidCompressibilityData const & solid_compressibility_data,
BishopsData const & bishops_data,
PrevState< BishopsData > const & bishops_data_prev,
CapillaryPressureData< DisplacementDim > const & p_cap_data,
PorosityData const & poro_data,
StrainData< DisplacementDim > const & eps_data,
PrevState< StrainData< DisplacementDim > > const & eps_prev_data,
PrevState< TransportPorosityData > const & transport_poro_data_prev,
TransportPorosityData & transport_poro_data ) const

Definition at line 18 of file TransportPorosity.cpp.

28{
29 namespace MPL = MaterialPropertyLib;
30
31 auto const& medium = media_data.medium;
32
33 if (!medium.hasProperty(MPL::PropertyType::transport_porosity))
34 {
35 transport_poro_data.phi = poro_data.phi;
36 return;
37 }
38
39 MPL::VariableArray variables;
40 MPL::VariableArray variables_prev;
41
42 static constexpr int kelvin_vector_size =
45 // Used in
46 // MaterialLib/MPL/Properties/PermeabilityOrthotropicPowerLaw.cpp
47 variables_prev.transport_porosity = transport_poro_data_prev->phi;
48
49 // Used in
50 // MaterialLib/MPL/Properties/TransportPorosityFromMassBalance.cpp
51 variables.grain_compressibility = solid_compressibility_data.beta_SR;
52 // Set volumetric strain rate for the general case without swelling.
53 variables.volumetric_strain = Invariants::trace(eps_data.eps);
54 variables_prev.volumetric_strain = Invariants::trace(eps_prev_data->eps);
55 variables.effective_pore_pressure =
56 -bishops_data.chi_S_L * p_cap_data.p_cap;
57 variables.porosity = poro_data.phi;
58
59 // Used in MaterialLib/MPL/Properties/PorosityFromMassBalance.cpp
60 // and MaterialLib/MPL/Properties/TransportPorosityFromMassBalance.cpp
61 variables_prev.effective_pore_pressure =
62 -bishops_data_prev->chi_S_L * p_cap_data.p_cap_prev;
63
64 transport_poro_data.phi =
65 medium.property(MPL::PropertyType::transport_porosity)
66 .template value<double>(variables, variables_prev, x_t.x, x_t.t,
67 x_t.dt);
68}
constexpr int kelvin_vector_dimensions(int const displacement_dim)
Kelvin vector dimensions for given displacement dimension.

References ProcessLib::ThermoRichardsMechanics::SolidCompressibilityData::beta_SR, ProcessLib::ThermoRichardsMechanics::BishopsData::chi_S_L, ProcessLib::ConstitutiveRelations::SpaceTimeData::dt, MaterialPropertyLib::VariableArray::effective_pore_pressure, ProcessLib::ConstitutiveRelations::StrainData< DisplacementDim >::eps, MaterialPropertyLib::VariableArray::grain_compressibility, MathLib::KelvinVector::kelvin_vector_dimensions(), ProcessLib::ThermoRichardsMechanics::MediaData::medium, ProcessLib::ThermoRichardsMechanics::CapillaryPressureData< DisplacementDim >::p_cap, ProcessLib::ThermoRichardsMechanics::CapillaryPressureData< DisplacementDim >::p_cap_prev, ProcessLib::ThermoRichardsMechanics::PorosityData::phi, ProcessLib::ThermoRichardsMechanics::TransportPorosityData::phi, MaterialPropertyLib::VariableArray::porosity, ProcessLib::ConstitutiveRelations::SpaceTimeData::t, MaterialPropertyLib::VariableArray::transport_porosity, MaterialPropertyLib::VariableArray::volumetric_strain, and ProcessLib::ConstitutiveRelations::SpaceTimeData::x.


The documentation for this struct was generated from the following files: