OGS
Base.h
Go to the documentation of this file.
1
11#pragma once
12
13#include "BaseLib/StrongType.h"
19
21{
22
24namespace KV = MathLib::KelvinVector;
25
26template <int DisplacementDim>
28
29template <int DisplacementDim>
31
32template <int DisplacementDim>
33using GlobalDimVector = Eigen::Vector<double, DisplacementDim>;
34
35template <int DisplacementDim>
37 Eigen::Matrix<double, DisplacementDim, DisplacementDim, Eigen::RowMajor>;
38
40template <int D>
45
47template <int D>
52
54{
56 : medium{medium},
57 liquid{medium.phase("AqueousLiquid")},
58 solid{medium.phase("Solid")}
59 {
60 }
61
65};
66
68
69template <int DisplacementDim>
71{
72 double p_cap;
73 double p_cap_prev;
74 Eigen::Vector<double, DisplacementDim> grad_p_cap;
75};
76} // namespace ProcessLib::RichardsMechanics
Eigen::Matrix< double, kelvin_vector_dimensions(DisplacementDim), 1, Eigen::ColMajor > KelvinVectorType
Eigen::Matrix< double, kelvin_vector_dimensions(DisplacementDim), kelvin_vector_dimensions(DisplacementDim), Eigen::RowMajor > KelvinMatrixType
static constexpr double nan
Convenience alias for not a number.
Definition Base.h:80
Eigen::Vector< double, DisplacementDim > GlobalDimVector
Definition Base.h:33
Eigen::Matrix< double, DisplacementDim, DisplacementDim, Eigen::RowMajor > GlobalDimMatrix
Definition Base.h:36
KV::KelvinMatrixType< DisplacementDim > KelvinMatrix
Definition Base.h:30
KV::KelvinVectorType< DisplacementDim > KelvinVector
Definition Base.h:27
constexpr GlobalDimMatrix< D > DMnan()
Used to set a D x D matrix to all not-a-number.
Definition Base.h:48
constexpr GlobalDimVector< D > DVnan()
Used to set a D dimensional vector to all not-a-number.
Definition Base.h:41
Eigen::Vector< double, DisplacementDim > grad_p_cap
Definition Base.h:74
MediaData(MaterialPropertyLib::Medium const &medium)
Definition Base.h:55
MaterialPropertyLib::Medium const & medium
Definition Base.h:62
MaterialPropertyLib::Phase const & solid
Definition Base.h:64
MaterialPropertyLib::Phase const & liquid
Definition Base.h:63