OGS
MaterialPropertyLib::EmbeddedFracturePermeability< DisplacementDim > Class Template Referencefinal

Detailed Description

template<int DisplacementDim>
class MaterialPropertyLib::EmbeddedFracturePermeability< DisplacementDim >

Permeability model as proposed by Olivella&Alonso.

This property must be a medium property, it computes the permeability in dependence of the strain

The model was proposed in [2] and it was further investigated in [31] .

The model takes the form of

\[ \mathbf{k} = k_\text{m} \mathbf{I} + \frac{b}{a} \left( \frac{b^2}{12} - k_\text{m} \right) \left( \mathbf{I} - \mathbf{M} \right) \]

with

\[ \mathbf{M} = \vec{n} \otimes \vec{n} \]

and

\[ b = b_0 + \Delta b \\ \Delta b = a \langle \varepsilon_\text{n}- \varepsilon_0 \rangle \]

where

\( k_\text{m} \) permeability of undisturbed material
\( b \) fracture aperture
\( b_0 \) initial aperture
\( a \) mean fracture distance
\( \vec{n} \) fracture normal vector
\( \varepsilon_n \) strain in fracture normal direction
\( \varepsilon_0 \) threshold strain

Definition at line 50 of file EmbeddedFracturePermeability.h.

#include <EmbeddedFracturePermeability.h>

Inheritance diagram for MaterialPropertyLib::EmbeddedFracturePermeability< DisplacementDim >:
[legend]
Collaboration diagram for MaterialPropertyLib::EmbeddedFracturePermeability< DisplacementDim >:
[legend]

Public Types

using SymmetricTensor = Eigen::Matrix<double, KelvinVectorSize, 1>
 

Public Member Functions

 EmbeddedFracturePermeability (std::string name, Eigen::Matrix< double, 3, 1 > const fracture_normal, bool const fracture_normal_is_constant, double const intrinsic_permeability, double const initial_aperture, double const mean_fracture_distance, double const threshold_strain, ParameterLib::Parameter< double > const &fracture_rotation_xy, ParameterLib::Parameter< double > const &fracture_rotation_yz, double const jacobian_factor)
 
void checkScale () const override
 
PropertyDataType value (VariableArray const &variable_array, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
 
PropertyDataType dValue (VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
 
- Public Member Functions inherited from MaterialPropertyLib::Property
virtual ~Property ()
 
virtual PropertyDataType initialValue (ParameterLib::SpatialPosition const &pos, double const t) const
 
virtual PropertyDataType value () const
 
virtual PropertyDataType value (VariableArray const &variable_array, VariableArray const &variable_array_prev, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const
 
virtual PropertyDataType dValue (VariableArray const &variable_array, VariableArray const &variable_array_prev, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const
 
virtual PropertyDataType d2Value (VariableArray const &variable_array, Variable const variable1, Variable const variable2, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const
 Default implementation: 2nd derivative of any constant property is zero.
 
virtual void setProperties (std::vector< std::unique_ptr< Phase > > const &phases)
 Default implementation:
 
void setScale (std::variant< Medium *, Phase *, Component * > scale)
 
template<typename T >
initialValue (ParameterLib::SpatialPosition const &pos, double const t) const
 
template<typename T >
value () const
 
template<typename T >
value (VariableArray const &variable_array, VariableArray const &variable_array_prev, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const
 
template<typename T >
value (VariableArray const &variable_array, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const
 
template<typename T >
dValue (VariableArray const &variable_array, VariableArray const &variable_array_prev, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const
 
template<typename T >
dValue (VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const
 
template<typename T >
d2Value (VariableArray const &variable_array, Variable const &variable1, Variable const &variable2, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const
 

Static Public Attributes

static int const KelvinVectorSize
 

Private Attributes

Medium_medium = nullptr
 
Eigen::Matrix< double, 3, 1 > const _n
 
bool const _n_const
 
double const _k
 
double const _b0
 
double const _a
 
double const _e0
 
ParameterLib::Parameter< double > const & _phi_xy
 
ParameterLib::Parameter< double > const & _phi_yz
 
double const _jf
 

Additional Inherited Members

- Protected Attributes inherited from MaterialPropertyLib::Property
std::string name_
 
PropertyDataType value_
 The single value of a property.
 
PropertyDataType dvalue_
 
std::variant< Medium *, Phase *, Component * > scale_
 

Member Typedef Documentation

◆ SymmetricTensor

template<int DisplacementDim>
using MaterialPropertyLib::EmbeddedFracturePermeability< DisplacementDim >::SymmetricTensor = Eigen::Matrix<double, KelvinVectorSize, 1>

Definition at line 79 of file EmbeddedFracturePermeability.h.

Constructor & Destructor Documentation

◆ EmbeddedFracturePermeability()

template<int DisplacementDim>
MaterialPropertyLib::EmbeddedFracturePermeability< DisplacementDim >::EmbeddedFracturePermeability ( std::string name,
Eigen::Matrix< double, 3, 1 > const fracture_normal,
bool const fracture_normal_is_constant,
double const intrinsic_permeability,
double const initial_aperture,
double const mean_fracture_distance,
double const threshold_strain,
ParameterLib::Parameter< double > const & fracture_rotation_xy,
ParameterLib::Parameter< double > const & fracture_rotation_yz,
double const jacobian_factor )

Definition at line 22 of file EmbeddedFracturePermeability.cpp.

33 : _n(fracture_normal),
34 _n_const(fracture_normal_is_constant),
35 _k(intrinsic_permeability),
36 _b0(initial_aperture),
37 _a(mean_fracture_distance),
38 _e0(threshold_strain),
39 _phi_xy(fracture_rotation_xy),
40 _phi_yz(fracture_rotation_yz),
41 _jf(jacobian_factor)
42{
43 name_ = std::move(name);
44}

References MaterialPropertyLib::name, and MaterialPropertyLib::Property::name_.

Member Function Documentation

◆ checkScale()

template<int DisplacementDim>
void MaterialPropertyLib::EmbeddedFracturePermeability< DisplacementDim >::checkScale ( ) const
overridevirtual

Reimplemented from MaterialPropertyLib::Property.

Definition at line 47 of file EmbeddedFracturePermeability.cpp.

48{
49 if (!std::holds_alternative<Medium*>(scale_))
50 {
52 "The property 'EmbeddedFracturePermeability' is "
53 "implemented on the 'medium' scale only.");
54 }
55}
#define OGS_FATAL(...)
Definition Error.h:26
std::variant< Medium *, Phase *, Component * > scale_
Definition Property.h:297

References OGS_FATAL.

◆ dValue()

template<int DisplacementDim>
PropertyDataType MaterialPropertyLib::EmbeddedFracturePermeability< DisplacementDim >::dValue ( VariableArray const & variable_array,
Variable const variable,
ParameterLib::SpatialPosition const & pos,
double const t,
double const dt ) const
overridevirtual

This virtual method will compute the property derivative value based on the variables that are passed as arguments with the default implementation using empty variables array for the previous time step.

The default implementation of this method only returns the property value derivative without altering it.

Reimplemented from MaterialPropertyLib::Property.

Definition at line 97 of file EmbeddedFracturePermeability.cpp.

101{
102 if (variable != Variable::mechanical_strain)
103 {
104 OGS_FATAL(
105 "EmbeddedFracturePermeability::dValue is implemented for "
106 "derivatives with respect to strain only.");
107 }
108
109 Eigen::Matrix<double, 3, 1> const n = [&]
110 {
111 if (_n_const)
112 {
113 return _n;
114 }
115 auto const sigma = formEigenTensor<3>(
116 std::get<SymmetricTensor>(variable_array.total_stress));
117 Eigen::SelfAdjointEigenSolver<Eigen::Matrix<double, 3, 3>> e_s(sigma);
118 return (Eigen::Matrix<double, 3, 1>)e_s.eigenvectors().col(2);
119 }();
120
121 auto const rotMat_xy =
122 Eigen::AngleAxisd(_phi_xy(t, pos)[0], Eigen::Vector3d::UnitZ());
123 auto const rotMat_yz =
124 Eigen::AngleAxisd(_phi_yz(t, pos)[0], Eigen::Vector3d::UnitX());
125
126 Eigen::Matrix<double, 3, 1> const n_r = rotMat_yz * (rotMat_xy * n);
127
130 variable_array.mechanical_strain));
131 double const e_n = (eps * n_r).dot(n_r.transpose());
132 double const H_de = (e_n > _e0) ? 1.0 : 0.0;
133 double const b_f = _b0 + H_de * _a * (e_n - _e0);
134
135 Eigen::Matrix3d const M = n_r * n_r.transpose();
136 return Eigen::MatrixXd(
137 _jf * H_de * (b_f * b_f / 4 - _k) *
139 Eigen::Matrix3d::Identity() - M) *
141}
template Eigen::Matrix< double, 3, 3 > formEigenTensor< 3 >(MaterialPropertyLib::PropertyDataType const &values)
Eigen::Matrix< double, kelvin_vector_dimensions(DisplacementDim), 1, Eigen::ColMajor > KelvinVectorType
Eigen::Matrix< double, 3, 3 > kelvinVectorToTensor(Eigen::Matrix< double, 4, 1, Eigen::ColMajor, 4, 1 > const &v)
KelvinVectorType< DisplacementDim > tensorToKelvin(Eigen::Matrix< double, 3, 3 > const &m)

References MaterialPropertyLib::formEigenTensor< 3 >(), MathLib::KelvinVector::kelvinVectorToTensor(), MaterialPropertyLib::mechanical_strain, MaterialPropertyLib::VariableArray::mechanical_strain, OGS_FATAL, MathLib::KelvinVector::tensorToKelvin(), and MaterialPropertyLib::VariableArray::total_stress.

◆ value()

template<int DisplacementDim>
PropertyDataType MaterialPropertyLib::EmbeddedFracturePermeability< DisplacementDim >::value ( VariableArray const & variable_array,
ParameterLib::SpatialPosition const & pos,
double const t,
double const dt ) const
overridevirtual

This virtual method will compute the property value based on the variables that are passed as arguments with the default implementation using empty variables array for the previous time step.

Reimplemented from MaterialPropertyLib::Property.

Definition at line 58 of file EmbeddedFracturePermeability.cpp.

62{
63 Eigen::Matrix<double, 3, 1> const n = [&]
64 {
65 if (_n_const)
66 {
67 return _n;
68 }
69 auto const sigma = formEigenTensor<3>(
70 std::get<SymmetricTensor>(variable_array.total_stress));
71 Eigen::SelfAdjointEigenSolver<Eigen::Matrix<double, 3, 3>> e_s(sigma);
72 return (Eigen::Matrix<double, 3, 1>)e_s.eigenvectors().col(2);
73 }();
74
75 auto const rotMat_xy =
76 Eigen::AngleAxisd(_phi_xy(t, pos)[0], Eigen::Vector3d::UnitZ());
77 auto const rotMat_yz =
78 Eigen::AngleAxisd(_phi_yz(t, pos)[0], Eigen::Vector3d::UnitX());
79
80 Eigen::Matrix<double, 3, 1> const n_r = rotMat_yz * (rotMat_xy * n);
81
84 variable_array.mechanical_strain));
85 double const e_n = (eps * n_r).dot(n_r.transpose());
86 double const H_de = (e_n > _e0) ? 1.0 : 0.0;
87 double const b_f = _b0 + H_de * _a * (e_n - _e0);
88 double const coeff = H_de * (b_f / _a) * ((b_f * b_f / 12.0) - _k);
89
90 Eigen::Matrix3d I = Eigen::Matrix3d::Identity();
91 return (coeff * (I - n_r * n_r.transpose()) + _k * I)
92 .template topLeftCorner<DisplacementDim, DisplacementDim>()
93 .eval();
94}

References MaterialPropertyLib::formEigenTensor< 3 >(), MathLib::KelvinVector::kelvinVectorToTensor(), MaterialPropertyLib::VariableArray::mechanical_strain, and MaterialPropertyLib::VariableArray::total_stress.

Member Data Documentation

◆ _a

template<int DisplacementDim>
double const MaterialPropertyLib::EmbeddedFracturePermeability< DisplacementDim >::_a
private

Definition at line 58 of file EmbeddedFracturePermeability.h.

◆ _b0

template<int DisplacementDim>
double const MaterialPropertyLib::EmbeddedFracturePermeability< DisplacementDim >::_b0
private

Definition at line 57 of file EmbeddedFracturePermeability.h.

◆ _e0

template<int DisplacementDim>
double const MaterialPropertyLib::EmbeddedFracturePermeability< DisplacementDim >::_e0
private

Definition at line 59 of file EmbeddedFracturePermeability.h.

◆ _jf

template<int DisplacementDim>
double const MaterialPropertyLib::EmbeddedFracturePermeability< DisplacementDim >::_jf
private

Definition at line 62 of file EmbeddedFracturePermeability.h.

◆ _k

template<int DisplacementDim>
double const MaterialPropertyLib::EmbeddedFracturePermeability< DisplacementDim >::_k
private

Definition at line 56 of file EmbeddedFracturePermeability.h.

◆ _medium

template<int DisplacementDim>
Medium* MaterialPropertyLib::EmbeddedFracturePermeability< DisplacementDim >::_medium = nullptr
private

Definition at line 53 of file EmbeddedFracturePermeability.h.

◆ _n

template<int DisplacementDim>
Eigen::Matrix<double, 3, 1> const MaterialPropertyLib::EmbeddedFracturePermeability< DisplacementDim >::_n
private

Definition at line 54 of file EmbeddedFracturePermeability.h.

◆ _n_const

template<int DisplacementDim>
bool const MaterialPropertyLib::EmbeddedFracturePermeability< DisplacementDim >::_n_const
private

Definition at line 55 of file EmbeddedFracturePermeability.h.

◆ _phi_xy

template<int DisplacementDim>
ParameterLib::Parameter<double> const& MaterialPropertyLib::EmbeddedFracturePermeability< DisplacementDim >::_phi_xy
private

Definition at line 60 of file EmbeddedFracturePermeability.h.

◆ _phi_yz

template<int DisplacementDim>
ParameterLib::Parameter<double> const& MaterialPropertyLib::EmbeddedFracturePermeability< DisplacementDim >::_phi_yz
private

Definition at line 61 of file EmbeddedFracturePermeability.h.

◆ KelvinVectorSize

template<int DisplacementDim>
int const MaterialPropertyLib::EmbeddedFracturePermeability< DisplacementDim >::KelvinVectorSize
static
Initial value:
=
constexpr int kelvin_vector_dimensions(int const displacement_dim)
Kelvin vector dimensions for given displacement dimension.

Definition at line 77 of file EmbeddedFracturePermeability.h.


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