KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
geo_mechanics_application_constants.h
Go to the documentation of this file.
1 // KRATOS___
2 // // ) )
3 // // ___ ___
4 // // ____ //___) ) // ) )
5 // // / / // // / /
6 // ((____/ / ((____ ((___/ / MECHANICS
7 //
8 // License: geo_mechanics_application/license.txt
9 //
10 // Main authors: Vahid Galavi
11 //
12 
13 #pragma once
14 
15 // Project includes
16 #include "includes/define.h"
17 
18 namespace Kratos
19 {
20  /* Contants used in GeoMechanicsApplication */
21  // The size type definition
22  using SizeType = std::size_t;
23 
24  // Static definition of the dimension
25  constexpr SizeType N_DIM_3D = 3;
26  constexpr SizeType N_DIM_2D = 2;
27  constexpr SizeType N_DIM_1D = 1;
28 
29  // Limits
30  constexpr double TINY = 1.0e-60;
31  constexpr double LARGE = 1.0e10;
32 
33  // factor for pore pressure calculations: 1: mechanical sign convention, -1: soil mechanics sign convention
34  constexpr double PORE_PRESSURE_SIGN_FACTOR = 1.0;
35 
36  // Static definition of the size of stress tensor (n x n)
39 
40  // Static definition of the VoigtSize
41  constexpr SizeType VOIGT_SIZE_3D = 6;
47 
48  // DOF indices (3D):
49  enum indexDOF3D: int{ INDEX_X,
52 
53  // stress/strain vector indices (3D):
60 
61  // stress/strain vector indices (2D plane strain):
66 
67  // stress/strain vector indices (2D plane stress):
71 
72  // stress/strain vector indices (2D axisymmetric):
77 
78  // stress/strain vector indices (2D interface):
81 
82  // stress/strain vector indices (3D interface):
86 
87  // stress/strain vector indices 2D beam:
91  // DOF indices 2D beam:
95 
96  // Heat vector indices:
97  enum class indexThermalFlux : int {
98  X, Y, Z
99  };
100 
101 }
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
constexpr SizeType STRESS_TENSOR_SIZE_3D
Definition: geo_mechanics_application_constants.h:38
constexpr SizeType N_DIM_3D
Definition: geo_mechanics_application_constants.h:25
constexpr double LARGE
Definition: geo_mechanics_application_constants.h:31
constexpr SizeType VOIGT_SIZE_2D_PLANE_STRAIN
Definition: geo_mechanics_application_constants.h:43
constexpr SizeType N_DIM_2D
Definition: geo_mechanics_application_constants.h:26
indexDOF2DBeam
Definition: geo_mechanics_application_constants.h:92
@ INDEX_2D_BEAM_Y
Definition: geo_mechanics_application_constants.h:93
@ INDEX_2D_BEAM_X
Definition: geo_mechanics_application_constants.h:92
@ INDEX_2D_BEAM_T
Definition: geo_mechanics_application_constants.h:94
indexStress2DPlaneStress
Definition: geo_mechanics_application_constants.h:68
@ INDEX_2D_PLANE_STRESS_YY
Definition: geo_mechanics_application_constants.h:69
@ INDEX_2D_PLANE_STRESS_XX
Definition: geo_mechanics_application_constants.h:68
@ INDEX_2D_PLANE_STRESS_XY
Definition: geo_mechanics_application_constants.h:70
indexThermalFlux
Definition: geo_mechanics_application_constants.h:97
indexStress2DAxisymmetric
Definition: geo_mechanics_application_constants.h:73
@ INDEX_2D_AXI_SYMMETRIC_XX
Definition: geo_mechanics_application_constants.h:73
@ INDEX_2D_AXI_SYMMETRIC_RR
Definition: geo_mechanics_application_constants.h:75
@ INDEX_2D_AXI_SYMMETRIC_YY
Definition: geo_mechanics_application_constants.h:74
@ INDEX_2D_AXI_SYMMETRIC_XY
Definition: geo_mechanics_application_constants.h:76
constexpr double PORE_PRESSURE_SIGN_FACTOR
Definition: geo_mechanics_application_constants.h:34
constexpr SizeType VOIGT_SIZE_2D_INTERFACE
Definition: geo_mechanics_application_constants.h:45
indexDOF3D
Definition: geo_mechanics_application_constants.h:49
@ INDEX_Z
Definition: geo_mechanics_application_constants.h:51
@ INDEX_Y
Definition: geo_mechanics_application_constants.h:50
@ INDEX_X
Definition: geo_mechanics_application_constants.h:49
constexpr SizeType VOIGT_SIZE_3D_INTERFACE
Definition: geo_mechanics_application_constants.h:46
std::size_t SizeType
The definition of the size type.
Definition: mortar_classes.h:43
constexpr SizeType N_DIM_1D
Definition: geo_mechanics_application_constants.h:27
indexStress2DBeam
Definition: geo_mechanics_application_constants.h:88
@ INDEX_2D_BEAM_YY
Definition: geo_mechanics_application_constants.h:89
@ INDEX_2D_BEAM_XX
Definition: geo_mechanics_application_constants.h:88
@ INDEX_2D_BEAM_XY
Definition: geo_mechanics_application_constants.h:90
constexpr SizeType VOIGT_SIZE_3D
Definition: geo_mechanics_application_constants.h:41
constexpr SizeType VOIGT_SIZE_2D_AXISYMMETRIC
Definition: geo_mechanics_application_constants.h:44
constexpr SizeType STRESS_TENSOR_SIZE_2D
Definition: geo_mechanics_application_constants.h:37
REACTION_CHECK_STIFFNESS_FACTOR int
Definition: contact_structural_mechanics_application_variables.h:75
indexStress2DInterface
Definition: geo_mechanics_application_constants.h:79
@ INDEX_2D_INTERFACE_ZZ
Definition: geo_mechanics_application_constants.h:80
@ INDEX_2D_INTERFACE_XZ
Definition: geo_mechanics_application_constants.h:79
indexStress3D
Definition: geo_mechanics_application_constants.h:54
@ INDEX_3D_ZZ
Definition: geo_mechanics_application_constants.h:56
@ INDEX_3D_XX
Definition: geo_mechanics_application_constants.h:54
@ INDEX_3D_XZ
Definition: geo_mechanics_application_constants.h:59
@ INDEX_3D_XY
Definition: geo_mechanics_application_constants.h:57
@ INDEX_3D_YY
Definition: geo_mechanics_application_constants.h:55
@ INDEX_3D_YZ
Definition: geo_mechanics_application_constants.h:58
constexpr SizeType VOIGT_SIZE_2D_PLANE_STRESS
Definition: geo_mechanics_application_constants.h:42
indexStress2DPlaneStrain
Definition: geo_mechanics_application_constants.h:62
@ INDEX_2D_PLANE_STRAIN_XX
Definition: geo_mechanics_application_constants.h:62
@ INDEX_2D_PLANE_STRAIN_ZZ
Definition: geo_mechanics_application_constants.h:64
@ INDEX_2D_PLANE_STRAIN_YY
Definition: geo_mechanics_application_constants.h:63
@ INDEX_2D_PLANE_STRAIN_XY
Definition: geo_mechanics_application_constants.h:65
constexpr double TINY
Definition: geo_mechanics_application_constants.h:30
indexStress3DInterface
Definition: geo_mechanics_application_constants.h:83
@ INDEX_3D_INTERFACE_ZZ
Definition: geo_mechanics_application_constants.h:85
@ INDEX_3D_INTERFACE_XZ
Definition: geo_mechanics_application_constants.h:83
@ INDEX_3D_INTERFACE_YZ
Definition: geo_mechanics_application_constants.h:84