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.
|
Short class definition. More...
#include <mesher_utilities.hpp>
Classes | |
struct | MeshContainer |
struct | MeshingInfoParameters |
struct | MeshingParameters |
struct | RefineBodyInfo |
struct | RefineBoundaryInfo |
struct | RefiningInfoParameters |
struct | RefiningParameters |
Public Member Functions | |
Life Cycle | |
MesherUtilities () | |
Default constructor. More... | |
virtual | ~MesherUtilities () |
Destructor. More... | |
Input and output | |
virtual std::string | Info () const |
Turn back information as a string. More... | |
virtual void | PrintInfo (std::ostream &rOStream) const |
Print information about this object. More... | |
virtual void | PrintData (std::ostream &rOStream) const |
Print object's data. More... | |
Operations | |
void | SetModelPartNameToElements (ModelPart &rModelPart) |
void | SetModelPartNameToConditions (ModelPart &rModelPart) |
void | SetModelPartNameToNodes (ModelPart &rModelPart) |
void | SetFlagsToNodes (ModelPart &rModelPart, const std::vector< Flags > rControlFlags, const std::vector< Flags > rAssignFlags) |
double | ComputeModelPartVolume (ModelPart &rModelPart) |
bool | CheckSubdomain (Geometry< Node > &rGeometry) |
bool | CheckRigidOuterCentre (Geometry< Node > &rGeometry) |
bool | CheckInnerCentre (Geometry< Node > &rGeometry) |
bool | CheckOuterCentre (Geometry< Node > &rGeometry, double &rOffsetFactor, bool &rSelfContact) |
bool | CheckSliver (Geometry< Node > &rGeometry) |
ContactElementType | CheckContactElement (Geometry< Node > &rGeometry, std::vector< int > &rSlaveVertices) |
double | GetAndCompareSideLenghts (Geometry< Node > &rGeometry, double &rMaximumSideLength, double &rMinimumSideLength) |
bool | CheckGeometryShape (Geometry< Node > &rGeometry, int &rShape) |
double & | ComputeRadius (double &rRadius, double &rVolume, std::vector< Vector > &rVertices, const unsigned int &dimension) |
bool | AlphaShape (double AlphaParameter, Geometry< Node > &rGeometry, const unsigned int dimension) |
bool | AlphaShape (double AlphaParameter, Geometry< Node > &rGeometry, const unsigned int dimension, const double MeanMeshSize) |
bool | ShrankAlphaShape (double AlphaParameter, Geometry< Node > &rGeometry, double &rOffsetFactor, const unsigned int dimension) |
double | FindBoundaryH (Node &BoundaryPoint) |
void | CheckParticles (ModelPart &rModelPart) |
bool | CheckRelativeVelocities (Geometry< Node > &rGeometry, const double &rRelativeFactor) |
bool | CheckVolumeDecrease (GeometryType &rVertices, const unsigned int &rDimension, const double &rTolerance, double &VolumeChange) |
double | GetMovedVolume (GeometryType &rVertices, const unsigned int &rDimension, double MovementFactor) |
double | GetDeformationGradientDeterminant (GeometryType &rVertices, const unsigned int &rDimension) |
void | DefineMeshSizeInTransitionZones2D (MeshingParameters &rMeshingVariables, double currentTime, array_1d< double, 3 > NodeCoordinates, double &meanMeshSize, bool &insideTransitionZone) |
void | DefineMeshSizeInTransitionZones3D (MeshingParameters &rMeshingVariables, double currentTime, array_1d< double, 3 > NodeCoordinates, double &meanMeshSize, bool &insideTransitionZone) |
bool | CheckConditionInBox (Condition::Pointer &pCondition, SpatialBoundingBox &rRefiningBox, ProcessInfo &rCurrentProcessInfo) |
bool | CheckElementInBox (Element::Pointer &pElement, SpatialBoundingBox &rRefiningBox, ProcessInfo &rCurrentProcessInfo) |
bool | CheckVerticesInBox (Geometry< Node > &rGeometry, SpatialBoundingBox &rRefiningBox, ProcessInfo &rCurrentProcessInfo) |
Condition::Pointer | FindMasterCondition (Condition::Pointer &pCondition, ModelPart::ConditionsContainerType &rModelConditions, bool &condition_found) |
Condition::Pointer | FindMasterCondition (Condition::Pointer &pCondition, PointType &pSlaveNode, ModelPart::ConditionsContainerType &rModelConditions, bool &condition_found) |
bool | CheckContactActive (GeometryType &rConditionGeometry, bool &rSemiActiveContact, std::vector< bool > &rSemiActiveNodes) |
bool | CheckContactCurvature (GeometryType &rConditionGeometry, std::vector< array_1d< double, 3 >> &rContactNormals) |
double | CheckCriticalRadius (ModelPart &rModelPart, double rCriticalRadius) |
double | GetMeanRadius (ModelPart &rModelPart, double &rCriticalRadius) |
bool | FindCondition (Geometry< Node > &rConditionGeometry, Geometry< Node > &rGeometry, DenseMatrix< unsigned int > &lpofa, DenseVector< unsigned int > &lnofa, unsigned int &iface) |
void | SetNodes (ModelPart &rModelPart, MeshingParameters &rMeshingVariables) |
void | SetElements (ModelPart &rModelPart, MeshingParameters &rMeshingVariables) |
static double | CalculateSideLength (PointType &P1, PointType &P2) |
static double | CalculateBoundarySize (Geometry< Node > &rGeometry) |
static double | CalculateTriangleRadius (Geometry< Node > &rGeometry) |
static double | CalculateTetrahedronRadius (Geometry< Node > &rGeometry) |
static double | CalculateElementRadius (Geometry< Node > &rGeometry) |
static double | CalculateElementRadius (Geometry< Node > &rGeometry, double &rDomainSize) |
static double | CalculateTriangleArea (const double x0, const double y0, const double x1, const double y1, const double x2, const double y2) |
static double | CalculateTriangleRadius (const double x0, const double y0, const double x1, const double y1, const double x2, const double y2, double &Area) |
static double | CalculateTetrahedronVolume (const double x0, const double y0, const double z0, const double x1, const double y1, const double z1, const double x2, const double y2, const double z2, const double x3, const double y3, const double z3) |
static double | CalculateTetrahedronRadius (const double x0, const double y0, const double z0, const double x1, const double y1, const double z1, const double x2, const double y2, const double z2, const double x3, const double y3, const double z3, double &Volume) |
static double | CalculateDeterminant (const double x0, const double y0, const double z0, const double x1, const double y1, const double z1, const double x2, const double y2, const double z2) |
static double | CalculateAverageSideLength (const double x0, const double y0, const double x1, const double y1, const double x2, const double y2) |
static bool | CalculatePosition (const std::vector< std::vector< double >> &rPointCoordinates, const std::vector< double > &rCenter, std::vector< double > &rShapeFunctionsN) |
static bool | CalculatePosition (const double &x0, const double &y0, const double &z0, const double &x1, const double &y1, const double &z1, const double &x2, const double &y2, const double &z2, const double &x3, const double &y3, const double &z3, const double &xc, const double &yc, const double &zc, std::vector< double > &rShapeFunctionsN) |
static bool | CalculatePosition (const double &x0, const double &y0, const double &x1, const double &y1, const double &x2, const double &y2, const double &xc, const double &yc, std::vector< double > &rShapeFunctionsN) |
static unsigned int | GetMaxNodeId (ModelPart &rModelPart) |
static double | CalculateModelPartVolume (ModelPart &rModelPart) |
static unsigned int | GetMaxConditionId (ModelPart &rModelPart) |
static unsigned int | GetMaxElementId (ModelPart &rModelPart) |
Short class definition.
Detail class definition.
typedef Node::Pointer Kratos::MesherUtilities::PointPointerType |
typedef std::vector<PointPointerType> Kratos::MesherUtilities::PointPointerVector |
typedef ModelPart::MeshType::GeometryType::PointsArrayType Kratos::MesherUtilities::PointsArrayType |
typedef MeshDataTransferUtilities::TransferParameters Kratos::MesherUtilities::TransferParametersType |
|
inline |
Default constructor.
|
inlinevirtual |
Destructor.
bool Kratos::MesherUtilities::AlphaShape | ( | double | AlphaParameter, |
Geometry< Node > & | rGeometry, | ||
const unsigned int | dimension | ||
) |
bool Kratos::MesherUtilities::AlphaShape | ( | double | AlphaParameter, |
Geometry< Node > & | rGeometry, | ||
const unsigned int | dimension, | ||
const double | MeanMeshSize | ||
) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
bool Kratos::MesherUtilities::CheckConditionInBox | ( | Condition::Pointer & | pCondition, |
SpatialBoundingBox & | rRefiningBox, | ||
ProcessInfo & | rCurrentProcessInfo | ||
) |
bool Kratos::MesherUtilities::CheckContactActive | ( | GeometryType & | rConditionGeometry, |
bool & | rSemiActiveContact, | ||
std::vector< bool > & | rSemiActiveNodes | ||
) |
bool Kratos::MesherUtilities::CheckContactCurvature | ( | GeometryType & | rConditionGeometry, |
std::vector< array_1d< double, 3 >> & | rContactNormals | ||
) |
MesherUtilities::ContactElementType Kratos::MesherUtilities::CheckContactElement | ( | Geometry< Node > & | rGeometry, |
std::vector< int > & | rSlaveVertices | ||
) |
double Kratos::MesherUtilities::CheckCriticalRadius | ( | ModelPart & | rModelPart, |
double | rCriticalRadius | ||
) |
bool Kratos::MesherUtilities::CheckElementInBox | ( | Element::Pointer & | pElement, |
SpatialBoundingBox & | rRefiningBox, | ||
ProcessInfo & | rCurrentProcessInfo | ||
) |
bool Kratos::MesherUtilities::CheckOuterCentre | ( | Geometry< Node > & | rGeometry, |
double & | rOffsetFactor, | ||
bool & | rSelfContact | ||
) |
void Kratos::MesherUtilities::CheckParticles | ( | ModelPart & | rModelPart | ) |
bool Kratos::MesherUtilities::CheckRelativeVelocities | ( | Geometry< Node > & | rGeometry, |
const double & | rRelativeFactor | ||
) |
bool Kratos::MesherUtilities::CheckVerticesInBox | ( | Geometry< Node > & | rGeometry, |
SpatialBoundingBox & | rRefiningBox, | ||
ProcessInfo & | rCurrentProcessInfo | ||
) |
bool Kratos::MesherUtilities::CheckVolumeDecrease | ( | GeometryType & | rVertices, |
const unsigned int & | rDimension, | ||
const double & | rTolerance, | ||
double & | VolumeChange | ||
) |
double & Kratos::MesherUtilities::ComputeRadius | ( | double & | rRadius, |
double & | rVolume, | ||
std::vector< Vector > & | rVertices, | ||
const unsigned int & | dimension | ||
) |
void Kratos::MesherUtilities::DefineMeshSizeInTransitionZones2D | ( | MeshingParameters & | rMeshingVariables, |
double | currentTime, | ||
array_1d< double, 3 > | NodeCoordinates, | ||
double & | meanMeshSize, | ||
bool & | insideTransitionZone | ||
) |
void Kratos::MesherUtilities::DefineMeshSizeInTransitionZones3D | ( | MeshingParameters & | rMeshingVariables, |
double | currentTime, | ||
array_1d< double, 3 > | NodeCoordinates, | ||
double & | meanMeshSize, | ||
bool & | insideTransitionZone | ||
) |
bool Kratos::MesherUtilities::FindCondition | ( | Geometry< Node > & | rConditionGeometry, |
Geometry< Node > & | rGeometry, | ||
DenseMatrix< unsigned int > & | lpofa, | ||
DenseVector< unsigned int > & | lnofa, | ||
unsigned int & | iface | ||
) |
Condition::Pointer Kratos::MesherUtilities::FindMasterCondition | ( | Condition::Pointer & | pCondition, |
ModelPart::ConditionsContainerType & | rModelConditions, | ||
bool & | condition_found | ||
) |
Condition::Pointer Kratos::MesherUtilities::FindMasterCondition | ( | Condition::Pointer & | pCondition, |
PointType & | pSlaveNode, | ||
ModelPart::ConditionsContainerType & | rModelConditions, | ||
bool & | condition_found | ||
) |
double Kratos::MesherUtilities::GetAndCompareSideLenghts | ( | Geometry< Node > & | rGeometry, |
double & | rMaximumSideLength, | ||
double & | rMinimumSideLength | ||
) |
double Kratos::MesherUtilities::GetDeformationGradientDeterminant | ( | GeometryType & | rVertices, |
const unsigned int & | rDimension | ||
) |
|
inlinestatic |
double Kratos::MesherUtilities::GetMovedVolume | ( | GeometryType & | rVertices, |
const unsigned int & | rDimension, | ||
double | MovementFactor | ||
) |
|
inlinevirtual |
Turn back information as a string.
Kratos::MesherUtilities::KRATOS_CLASS_POINTER_DEFINITION | ( | MesherUtilities | ) |
Pointer definition of MesherUtilities.
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | BOUNDARIES_SEARCH | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | CONSTRAINED | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | CONTACT_SEARCH | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | FINALIZE_MESHER_INPUT | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | INITIALIZE_MESHER_INPUT | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | KEEP_ISOLATED_NODES | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | MESH_SMOOTHING | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | NEIGHBOURS_SEARCH | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | PASS_ALPHA_SHAPE | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | RECONNECT | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | REFINE | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | REFINE_ADD_NODES | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | REFINE_BOUNDARY | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | REFINE_BOUNDARY_ON_DISTANCE | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | REFINE_BOUNDARY_ON_ERROR | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | REFINE_BOUNDARY_ON_THRESHOLD | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | REFINE_ELEMENTS | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | REFINE_ELEMENTS_ON_DISTANCE | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | REFINE_ELEMENTS_ON_ERROR | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | REFINE_ELEMENTS_ON_THRESHOLD | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | REFINE_INSERT_NODES | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | REFINE_WALL_CORNER | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | REMESH | ) |
Flags related to the meshing parameters
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | REMOVE_BOUNDARY_NODES | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | REMOVE_BOUNDARY_NODES_ON_DISTANCE | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | REMOVE_BOUNDARY_NODES_ON_ERROR | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | REMOVE_BOUNDARY_NODES_ON_THRESHOLD | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | REMOVE_NODES | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | REMOVE_NODES_ON_DISTANCE | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | REMOVE_NODES_ON_ERROR | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | REMOVE_NODES_ON_THRESHOLD | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | SELECT_TESSELLATION_ELEMENTS | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | SET_DOF | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | TRANSFER | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | TRANSFER_KRATOS_ELEMENTS_TO_MESHER | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | TRANSFER_KRATOS_FACES_TO_MESHER | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | TRANSFER_KRATOS_NEIGHBOURS_TO_MESHER | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | TRANSFER_KRATOS_NODES_TO_MESHER | ) |
Kratos::MesherUtilities::KRATOS_DEFINE_LOCAL_FLAG | ( | VARIABLES_SMOOTHING | ) |
|
inlinevirtual |
Print object's data.
|
inlinevirtual |
Print information about this object.
void Kratos::MesherUtilities::SetElements | ( | ModelPart & | rModelPart, |
MeshingParameters & | rMeshingVariables | ||
) |
Set Elements to mesh
void Kratos::MesherUtilities::SetFlagsToNodes | ( | ModelPart & | rModelPart, |
const std::vector< Flags > | rControlFlags, | ||
const std::vector< Flags > | rAssignFlags | ||
) |
void Kratos::MesherUtilities::SetModelPartNameToConditions | ( | ModelPart & | rModelPart | ) |
void Kratos::MesherUtilities::SetModelPartNameToElements | ( | ModelPart & | rModelPart | ) |
void Kratos::MesherUtilities::SetModelPartNameToNodes | ( | ModelPart & | rModelPart | ) |
void Kratos::MesherUtilities::SetNodes | ( | ModelPart & | rModelPart, |
MeshingParameters & | rMeshingVariables | ||
) |
Set Nodes to mesh
bool Kratos::MesherUtilities::ShrankAlphaShape | ( | double | AlphaParameter, |
Geometry< Node > & | rGeometry, | ||
double & | rOffsetFactor, | ||
const unsigned int | dimension | ||
) |