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.
|
A utility to rotate the local contributions of certain nodes to the system matrix, which is required to apply slip conditions in arbitrary directions. More...
#include <compressible_element_rotation_utility.h>
Public Member Functions | |
Life Cycle | |
CompressibleElementRotationUtility (const unsigned int DomainSize, const Kratos::Flags &rFlag=SLIP) | |
Constructor. More... | |
~CompressibleElementRotationUtility () override | |
Destructor. More... | |
Operations | |
void | Rotate (TLocalMatrixType &rLocalMatrix, TLocalVectorType &rLocalVector, GeometryType &rGeometry) const override |
Rotate the local system contributions so that they are oriented with each node's normal. More... | |
void | Rotate (TLocalVectorType &rLocalVector, GeometryType &rGeometry) const override |
RHS only version of Rotate. More... | |
void | ApplySlipCondition (TLocalMatrixType &rLocalMatrix, TLocalVectorType &rLocalVector, GeometryType &rGeometry) const override |
Apply slip boundary conditions to the rotated local contributions. More... | |
void | ApplySlipCondition (TLocalVectorType &rLocalVector, GeometryType &rGeometry) const override |
RHS only version of ApplySlipCondition. More... | |
void | RotateVelocities (ModelPart &rModelPart) const override |
Transform nodal velocities to the rotated coordinates (aligned with each node's normal) More... | |
void | RecoverVelocities (ModelPart &rModelPart) const override |
Transform nodal velocities from the rotated system to the original one. More... | |
Input and output | |
std::string | Info () const override |
Turn back information as a string. More... | |
void | PrintInfo (std::ostream &rOStream) const override |
Print information about this object. More... | |
void | PrintData (std::ostream &rOStream) const override |
Print object's data. More... | |
Public Member Functions inherited from Kratos::CoordinateTransformationUtils< TLocalMatrixType, TLocalVectorType, double > | |
CoordinateTransformationUtils (const unsigned int DomainSize, const unsigned int NumRowsPerNode, const Kratos::Flags &rSelectionFlag=SLIP) | |
Constructor. More... | |
virtual | ~CoordinateTransformationUtils () |
Destructor. More... | |
virtual void | CalculateRotationOperatorPure (TLocalMatrixType &rRotationMatrix, const GeometryType::PointType &rThisPoint) const |
Calculates rotation operator for given point. More... | |
void | LocalRotationOperatorPure (BoundedMatrix< double, 3, 3 > &rRot, const GeometryType::PointType &rThisPoint) const |
void | LocalRotationOperatorPure (BoundedMatrix< double, 2, 2 > &rRot, const GeometryType::PointType &rThisPoint) const |
virtual void | CalculateRotationOperatorPureShapeSensitivities (TLocalMatrixType &rRotationMatrixShapeDerivative, const std::size_t DerivativeNodeIndex, const std::size_t DerivativeDirectionIndex, const GeometryType::PointType &rThisPoint) const |
Calculates rotation nodal matrix shape sensitivities. More... | |
virtual void | CalculateRotationOperatorPureShapeSensitivities (BoundedMatrix< double, 2, 2 > &rOutput, const std::size_t DerivativeNodeIndex, const std::size_t DerivativeDirectionIndex, const GeometryType::PointType &rThisPoint) const |
Calculate 2d rotation nodal matrix shape sensitivities. More... | |
virtual void | CalculateRotationOperatorPureShapeSensitivities (BoundedMatrix< double, 3, 3 > &rOutput, const std::size_t DerivativeNodeIndex, const std::size_t DerivativeDirectionIndex, const GeometryType::PointType &rThisPoint) const |
Calculate 3d rotation nodal matrix shape sensitivities. More... | |
KRATOS_CLASS_POINTER_DEFINITION (CoordinateTransformationUtils) | |
Pointer definition of CoordinateTransformationUtils. More... | |
Type Definitions | |
typedef Node | NodeType |
typedef Geometry< Node > | GeometryType |
KRATOS_CLASS_POINTER_DEFINITION (CompressibleElementRotationUtility) | |
Pointer definition of CompressibleElementRotationUtility. More... | |
Additional Inherited Members | |
Public Types inherited from Kratos::CoordinateTransformationUtils< TLocalMatrixType, TLocalVectorType, double > | |
typedef Node | NodeType |
typedef Geometry< Node > | GeometryType |
Protected Member Functions inherited from Kratos::CoordinateTransformationUtils< TLocalMatrixType, TLocalVectorType, double > | |
void | RotateAux (TLocalMatrixType &rLocalMatrix, TLocalVectorType &rLocalVector, GeometryType &rGeometry) const |
void | RotateAuxPure (TLocalMatrixType &rLocalMatrix, TLocalVectorType &rLocalVector, GeometryType &rGeometry) const |
void | LocalRotationOperator2D (BoundedMatrix< double, TBlockSize, TBlockSize > &rRot, GeometryType::PointType &rThisPoint) const |
void | LocalRotationOperator3D (BoundedMatrix< double, TBlockSize, TBlockSize > &rRot, GeometryType::PointType &rThisPoint) const |
bool | IsSlip (const Node &rNode) const |
double | Normalize (TVectorType &rThis) const |
Normalize a vector. More... | |
unsigned int | GetDomainSize () const |
unsigned int | GetBlockSize () const |
A utility to rotate the local contributions of certain nodes to the system matrix, which is required to apply slip conditions in arbitrary directions.
typedef Geometry< Node > Kratos::CompressibleElementRotationUtility< TLocalMatrixType, TLocalVectorType >::GeometryType |
typedef Node Kratos::CompressibleElementRotationUtility< TLocalMatrixType, TLocalVectorType >::NodeType |
|
inline |
Constructor.
DomainSize | Number of space dimensions (2 or 3) |
NumRowsPerNode | Number of matrix or vector rows associated to each node. Velocity DOFs are assumed to be the first mDomainSize rows in each block of rows. |
rFlag | Flag used to mark nodes nodes where local system contributions will be rotated. All nodes with rFlag == true will be rotated. |
Zero | The zero value for the variable. |
|
inlineoverride |
Destructor.
|
inlineoverridevirtual |
Apply slip boundary conditions to the rotated local contributions.
This function takes the local system contributions rotated so each node's velocities are expressed using a base oriented with its normal and imposes that the normal velocity is equal to the mesh velocity in the normal direction.
Reimplemented from Kratos::CoordinateTransformationUtils< TLocalMatrixType, TLocalVectorType, double >.
|
inlineoverridevirtual |
RHS only version of ApplySlipCondition.
Reimplemented from Kratos::CoordinateTransformationUtils< TLocalMatrixType, TLocalVectorType, double >.
|
inlineoverridevirtual |
Turn back information as a string.
Reimplemented from Kratos::CoordinateTransformationUtils< TLocalMatrixType, TLocalVectorType, double >.
Kratos::CompressibleElementRotationUtility< TLocalMatrixType, TLocalVectorType >::KRATOS_CLASS_POINTER_DEFINITION | ( | CompressibleElementRotationUtility< TLocalMatrixType, TLocalVectorType > | ) |
Pointer definition of CompressibleElementRotationUtility.
|
inlineoverridevirtual |
Print object's data.
Reimplemented from Kratos::CoordinateTransformationUtils< TLocalMatrixType, TLocalVectorType, double >.
|
inlineoverridevirtual |
Print information about this object.
Reimplemented from Kratos::CoordinateTransformationUtils< TLocalMatrixType, TLocalVectorType, double >.
|
inlineoverridevirtual |
Transform nodal velocities from the rotated system to the original one.
Reimplemented from Kratos::CoordinateTransformationUtils< TLocalMatrixType, TLocalVectorType, double >.
|
inlineoverridevirtual |
Rotate the local system contributions so that they are oriented with each node's normal.
rLocalMatrix | Local system matrix |
rLocalVector | Local RHS vector |
rGeometry | A reference to the element's (or condition's) geometry |
Reimplemented from Kratos::CoordinateTransformationUtils< TLocalMatrixType, TLocalVectorType, double >.
|
inlineoverridevirtual |
RHS only version of Rotate.
Reimplemented from Kratos::CoordinateTransformationUtils< TLocalMatrixType, TLocalVectorType, double >.
|
inlineoverridevirtual |
Transform nodal velocities to the rotated coordinates (aligned with each node's normal)
Reimplemented from Kratos::CoordinateTransformationUtils< TLocalMatrixType, TLocalVectorType, double >.