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.
geometrical_transformation_utilities.h
Go to the documentation of this file.
1 // | / |
2 // ' / __| _` | __| _ \ __|
3 // . \ | ( | | ( |\__ `
4 // _|\_\_| \__,_|\__|\___/ ____/
5 // Multi-Physics
6 //
7 // License: BSD License
8 // Kratos default license: kratos/license.txt
9 //
10 // Main authors: Aditya Ghantasala
11 // Re-factor: Vicente Mataix Ferrandiz
12 //
13 
14 #if !defined(KRATOS_GEOMETRICAL_TRANSFORMATION_UTILITIES)
15 #define KRATOS_GEOMETRICAL_TRANSFORMATION_UTILITIES
16 
17 // System includes
18 
19 // External includes
20 
21 // Project includes
22 #include "includes/define.h"
24 
25 namespace Kratos
26 {
29 
33 
37 
41 
45 
53 {
54  typedef std::size_t IndexType;
55  typedef Matrix MatrixType;
56  typedef Vector VectorType;
57 
64  void KRATOS_API(KRATOS_CORE) CalculateTranslationMatrix(
65  const double Modulus,
66  MatrixType& rMatrix,
67  const DenseVector<double>& rDirOfTranslation
68  );
69 
78  void KRATOS_API(KRATOS_CORE) CalculateRotationMatrix(
79  const double Theta,
80  MatrixType& rMatrix,
81  const DenseVector<double>& rAxisOfRotationVector,
82  const DenseVector<double>& rCenterOfRotation
83  );
84 
85 }; // namespace GeometricalTransformationUtilities
86 } // namespace Kratos
87 #endif /* KRATOS_GEOMETRICAL_TRANSFORMATION_UTILITIES defined */
#define KRATOS_API(...)
Definition: kratos_export_api.h:40
This namespace includes several utilities necessaries for transformation (translation and rotation)
void CalculateTranslationMatrix(const double Modulus, MatrixType &rMatrix, const DenseVector< double > &rDirOfTranslation)
Calculate the transformation matrix which translates the given vector along mDirOfTranslation by mDis...
Definition: geometrical_transformation_utilities.cpp:26
std::size_t IndexType
Definition: geometrical_transformation_utilities.h:54
Vector VectorType
Definition: geometrical_transformation_utilities.h:56
Matrix MatrixType
Definition: geometrical_transformation_utilities.h:55
void CalculateRotationMatrix(const double Theta, MatrixType &rMatrix, const DenseVector< double > &rAxisOfRotationVector, const DenseVector< double > &rCenterOfRotation)
Calculate the transformation matrix which rotates the given vector around mAxisOfRotationVector and m...
Definition: geometrical_transformation_utilities.cpp:41
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21