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.
Typedefs | Functions
Kratos::GeometricalTransformationUtilities Namespace Reference

Typedefs

typedef std::size_t IndexType
 
typedef Matrix MatrixType
 
typedef Vector VectorType
 

Functions

void CalculateTranslationMatrix (const double Modulus, MatrixType &rMatrix, const DenseVector< double > &rDirOfTranslation)
 Calculate the transformation matrix which translates the given vector along mDirOfTranslation by mDistance. More...
 
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 mCenterOfRotation by provided Theta and stores the result in rMatrix The following code is generated from MATLAB and is adapted here. More...
 

Typedef Documentation

◆ IndexType

◆ MatrixType

◆ VectorType

Function Documentation

◆ CalculateRotationMatrix()

void Kratos::GeometricalTransformationUtilities::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 mCenterOfRotation by provided Theta and stores the result in rMatrix The following code is generated from MATLAB and is adapted here.

See also
http://paulbourke.net/geometry/rotate/
Parameters
ThetaIt is the angle of rotation about mAxisOfRotationVector and mCenterOfRotation.
rMatrixIt is the transformation matrix which will be calculated in this function. This should be of correct size (4x4).
rAxisOfRotationVectorThe axis rotation vector
rCenterOfRotationThe center of rotation

◆ CalculateTranslationMatrix()

void Kratos::GeometricalTransformationUtilities::CalculateTranslationMatrix ( const double  Modulus,
MatrixType rMatrix,
const DenseVector< double > &  rDirOfTranslation 
)

Calculate the transformation matrix which translates the given vector along mDirOfTranslation by mDistance.

Parameters
ModulusIt is the magnitude by which the translation should happen in the direction of mDirOfTranslation.
rMatrixIt is the transformation matrix which will be calculated in this function. This should be of correct size (4x4).
rDirOfTranslationDirection of translation