Loading [MathJax]/extensions/tex2jax.js
OGS
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
v
w
z
Enumerations
b
c
d
e
f
g
i
l
m
n
o
p
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
l
m
n
p
r
s
t
v
y
Classes
Class List
Class Index
Class Hierarchy
Files
File List
File Members
All
a
b
c
d
e
f
g
i
k
m
n
o
p
r
s
t
v
w
x
Functions
a
c
d
e
f
g
i
m
o
p
r
s
t
v
w
Variables
Typedefs
Enumerations
Macros
b
c
g
m
n
o
p
r
s
t
▼
OGS
►
OpenGeoSys 6.5.4-382-ge8366d1cd6d source code documentation
►
OGS CTests—Project Files
►
OGS Input File Parameters—Quality Assurance
►
OGS Input File Parameters
BulkMappingDocuPage
Todo List
OGS Input File Parameters—List of incomplete documentation pages
Bibliography
►
Namespaces
►
Classes
▼
Files
▼
File List
►
Applications
►
BaseLib
►
build
►
ChemistryLib
Documentation
►
GeoLib
►
InfoLib
▼
MaterialLib
►
Adsorption
►
Fluid
►
FractureModels
▼
MPL
►
Components
►
Properties
▼
Utils
►
CheckMPLPhasesForSinglePhaseFlow.cpp
►
CheckMPLPhasesForSinglePhaseFlow.h
►
CheckVanGenuchtenExponentRange.cpp
►
CheckVanGenuchtenExponentRange.h
►
FormEffectiveThermalConductivity.cpp
►
FormEffectiveThermalConductivity.h
►
FormEigenTensor.cpp
►
FormEigenTensor.h
►
FormEigenVector.cpp
►
FormEigenVector.h
►
FormKelvinVector.cpp
►
FormKelvinVector.h
►
GetFluidDensityAndViscosity.cpp
►
GetFluidDensityAndViscosity.h
►
GetLiquidThermalExpansivity.cpp
►
GetLiquidThermalExpansivity.h
►
GetSymmetricTensor.cpp
►
GetSymmetricTensor.h
SigmoidFunction.cpp
►
SigmoidFunction.h
►
Tensor.h
►
CheckMaterialSpatialDistributionMap.h
►
Component.cpp
►
Component.h
►
CreateComponent.cpp
►
CreateComponent.h
►
CreateMaterialSpatialDistributionMap.cpp
►
CreateMaterialSpatialDistributionMap.h
►
CreateMedium.cpp
►
CreateMedium.h
►
CreatePhase.cpp
►
CreatePhase.h
►
CreateProperty.cpp
►
CreateProperty.h
MaterialSpatialDistributionMap.cpp
►
MaterialSpatialDistributionMap.h
►
Medium.cpp
►
Medium.h
►
Phase.cpp
►
Phase.h
►
Property.cpp
►
Property.h
►
PropertyType.cpp
►
PropertyType.h
►
VariableType.cpp
►
VariableType.h
►
PorousMedium
►
SolidModels
►
Utils
►
PhysicalConstant.h
►
MathLib
►
MeshGeoToolsLib
►
MeshLib
►
MeshToolsLib
►
NumLib
►
ParameterLib
►
ProcessLib
►
File Members
Tensor.h
Go to the documentation of this file.
1
/*
2
* \file
3
* \copyright
4
* Copyright (c) 2012-2025, OpenGeoSys Community (http://www.opengeosys.org)
5
* Distributed under a Modified BSD License.
6
* See accompanying file LICENSE.txt or
7
* http://www.opengeosys.org/project/license
8
*/
9
10
#pragma once
11
12
#include <Eigen/Core>
13
14
#include "
MaterialLib/MPL/Property.h
"
15
16
namespace
MaterialPropertyLib
17
{
19
constexpr
int
tensorSize
(
int
dim)
20
{
21
if
(dim == 1)
22
{
23
return
3;
// Diagonal entries.
24
}
25
if
(dim == 2)
26
{
27
return
5;
// 2x2 matrix and the 3rd diagonal entry.
28
}
29
if
(dim == 3)
30
{
31
return
9;
// Full 3x3 matrix.
32
}
33
OGS_FATAL
(
"Tensor size for dimension {} is not defined."
, dim);
34
}
19
constexpr
int
tensorSize
(
int
dim) {
…
}
35
51
template
<
int
Dim>
52
using
Tensor
= Eigen::Matrix<double,
tensorSize
(Dim), 1>;
53
54
}
// namespace MaterialPropertyLib
OGS_FATAL
#define OGS_FATAL(...)
Definition
Error.h:26
Property.h
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:21
MaterialPropertyLib::Tensor
Eigen::Matrix< double, tensorSize(Dim), 1 > Tensor
Definition
Tensor.h:52
MaterialPropertyLib::tensorSize
constexpr int tensorSize(int dim)
See Tensor type for details.
Definition
Tensor.h:19
MaterialLib
MPL
Utils
Tensor.h
Generated by
1.12.0