OGS
ProcessLib::TH2M::ConstitutiveRelations::PermeabilityModel< DisplacementDim > Struct Template Reference

Detailed Description

template<int DisplacementDim>
struct ProcessLib::TH2M::ConstitutiveRelations::PermeabilityModel< DisplacementDim >

Definition at line 24 of file PermeabilityModel.h.

#include <PermeabilityModel.h>

Public Member Functions

void eval (SpaceTimeData const &x_t, MediaData const &media_data, SaturationData const &S_L_data, CapillaryPressureData const &p_cap, TemperatureData const &T_data, TotalStressData< DisplacementDim > const &total_stress_data, StrainData< DisplacementDim > const &eps_data, EquivalentPlasticStrainData const &equivalent_plastic_strain, PermeabilityData< DisplacementDim > &out) const
 

Member Function Documentation

◆ eval()

template<int DisplacementDim>
void ProcessLib::TH2M::ConstitutiveRelations::PermeabilityModel< DisplacementDim >::eval ( SpaceTimeData const & x_t,
MediaData const & media_data,
SaturationData const & S_L_data,
CapillaryPressureData const & p_cap,
TemperatureData const & T_data,
TotalStressData< DisplacementDim > const & total_stress_data,
StrainData< DisplacementDim > const & eps_data,
EquivalentPlasticStrainData const & equivalent_plastic_strain,
PermeabilityData< DisplacementDim > & out ) const

Definition at line 19 of file PermeabilityModel.cpp.

27{
28 namespace MPL = MaterialPropertyLib;
29
30 static constexpr int kelvin_vector_size =
33
34 auto const& medium = media_data.medium;
35
36 MPL::VariableArray variables;
37 variables.liquid_saturation = S_L_data.S_L;
38 variables.temperature = T_data.T;
39 variables.capillary_pressure = p_cap();
40
41 out.k_rel_G =
42 medium
43 .property(MPL::PropertyType::relative_permeability_nonwetting_phase)
44 .template value<double>(variables, x_t.x, x_t.t, x_t.dt);
45
46 out.dk_rel_G_dS_L =
47 medium[MPL::PropertyType::relative_permeability_nonwetting_phase]
48 .template dValue<double>(variables,
49 MPL::Variable::liquid_saturation, x_t.x,
50 x_t.t, x_t.dt);
51
52 out.k_rel_L = medium.property(MPL::PropertyType::relative_permeability)
53 .template value<double>(variables, x_t.x, x_t.t, x_t.dt);
54
55 out.dk_rel_L_dS_L = medium[MPL::PropertyType::relative_permeability]
56 .template dValue<double>(
57 variables, MPL::Variable::liquid_saturation,
58 x_t.x, x_t.t, x_t.dt);
59
60 // For stress dependent permeability.
61 variables.total_stress =
63 total_stress_data.sigma_total);
64
66
67 variables.volumetric_strain = Invariants::trace(eps_data.eps);
68
69 out.Ki = MPL::formEigenTensor<DisplacementDim>(
70 medium.property(MPL::PropertyType::permeability)
71 .value(variables, x_t.x, x_t.t, x_t.dt));
72}
Eigen::Matrix< double, 4, 1 > kelvinVectorToSymmetricTensor(Eigen::Matrix< double, 4, 1, Eigen::ColMajor, 4, 1 > const &v)
constexpr int kelvin_vector_dimensions(int const displacement_dim)
Kelvin vector dimensions for given displacement dimension.

References MaterialPropertyLib::VariableArray::capillary_pressure, ProcessLib::TH2M::ConstitutiveRelations::PermeabilityData< DisplacementDim >::dk_rel_G_dS_L, ProcessLib::TH2M::ConstitutiveRelations::PermeabilityData< DisplacementDim >::dk_rel_L_dS_L, ProcessLib::ConstitutiveRelations::SpaceTimeData::dt, ProcessLib::ConstitutiveRelations::StrainData< DisplacementDim >::eps, MaterialPropertyLib::VariableArray::equivalent_plastic_strain, ProcessLib::TH2M::ConstitutiveRelations::PermeabilityData< DisplacementDim >::k_rel_G, ProcessLib::TH2M::ConstitutiveRelations::PermeabilityData< DisplacementDim >::k_rel_L, MathLib::KelvinVector::kelvin_vector_dimensions(), MathLib::KelvinVector::kelvinVectorToSymmetricTensor(), ProcessLib::TH2M::ConstitutiveRelations::PermeabilityData< DisplacementDim >::Ki, MaterialPropertyLib::VariableArray::liquid_saturation, ProcessLib::TH2M::ConstitutiveRelations::MediaData::medium, ProcessLib::TH2M::ConstitutiveRelations::SaturationData::S_L, ProcessLib::TH2M::ConstitutiveRelations::TotalStressData< DisplacementDim >::sigma_total, ProcessLib::ConstitutiveRelations::SpaceTimeData::t, ProcessLib::TH2M::ConstitutiveRelations::TemperatureData::T, MaterialPropertyLib::VariableArray::temperature, MaterialPropertyLib::VariableArray::total_stress, MaterialPropertyLib::VariableArray::volumetric_strain, and ProcessLib::ConstitutiveRelations::SpaceTimeData::x.


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