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.
List of all members
Kratos::Mesher Class Reference

Short class definition. More...

#include <mesher.hpp>

Inheritance diagram for Kratos::Mesher:
Collaboration diagram for Kratos::Mesher:

Public Member Functions

Life Cycle
 Mesher ()
 Default constructor. More...
 
 Mesher (Mesher const &rOther)
 Copy constructor. More...
 
virtual ~Mesher ()
 Destructor. More...
 
Operations
void Initialize ()
 
virtual void SetEchoLevel (int Level)
 
int GetEchoLevel ()
 
void SetMeshingParameters (MeshingParametersType::Pointer &rMeshingParameters)
 
void SetPreMeshingProcess (MesherProcess::Pointer pPreMeshingProcess)
 
void SetPostMeshingProcess (MesherProcess::Pointer pPostMeshingProcess)
 
void SetPreMeshingProcessVector (std::vector< MesherProcess::Pointer > &rPreMeshingProcessVector)
 
void SetPostMeshingProcessVector (std::vector< MesherProcess::Pointer > &rPostMeshingProcessVector)
 
void SetMesherUtilities (MesherUtilities::Pointer rMesherUtilities)
 
void SetDataTransferUtilities (MeshDataTransferUtilities::Pointer rDataTransferUtilities)
 
virtual void InitializeMesher (ModelPart &rModelPart)
 
virtual void ExecuteMeshing (ModelPart &rModelPart)
 
virtual void FinalizeMesher (ModelPart &rModelPart)
 
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...
 

Protected Member Functions

Protected Operators
Mesheroperator= (Mesher const &rOther)
 Assignment operator. More...
 
Protected Operations
virtual void StartEcho (ModelPart &rSubModelPart, std::string GenerationMessage)
 
virtual void EndEcho (ModelPart &rSubModelPart, std::string GenerationMessage)
 
virtual void SetNodes (ModelPart &rModelPart, MeshingParametersType &rMeshingVariables)
 
virtual void SetElements (ModelPart &rModelPart, MeshingParametersType &rMeshingVariables)
 
virtual void SetNeighbours (ModelPart &rModelPart, MeshingParametersType &rMeshingVariables)
 
virtual void ExecutePreMeshingProcesses ()
 
virtual void ExecutePostMeshingProcesses ()
 
virtual void Generate (ModelPart &rModelPart, MeshingParametersType &rMeshingVariables)
 
virtual void SetElementNeighbours (ModelPart &rModelPart, MeshingParametersType &rMeshingVariables)
 
virtual void RecoverBoundaryPosition (ModelPart &rModelPart, MeshingParametersType &rMeshingVariables)
 

Protected Attributes

Protected member Variables
MeshingParametersType::Pointer mpMeshingVariables
 
std::vector< MesherProcess::Pointer > mPreMeshingProcesses
 
std::vector< MesherProcess::Pointer > mPostMeshingProcesses
 
MesherUtilities::Pointer mpMesherUtilities
 
MeshDataTransferUtilities::Pointer mpDataTransferUtilities
 
int mEchoLevel
 

Type Definitions

typedef std::size_t SizeType
 
typedef std::size_t IndexType
 
typedef MesherUtilities::MeshingInfoParameters InfoParametersType
 
typedef MesherUtilities::MeshingParameters MeshingParametersType
 
typedef MesherUtilities::RefiningParameters RefineParametersType
 
typedef GlobalPointersVector< NodeNodeWeakPtrVectorType
 
typedef GlobalPointersVector< ElementElementWeakPtrVectorType
 
typedef GlobalPointersVector< ConditionConditionWeakPtrVectorType
 
 KRATOS_CLASS_POINTER_DEFINITION (Mesher)
 Pointer definition of Mesher. More...
 

Detailed Description

Short class definition.

Detail class definition.

Member Typedef Documentation

◆ ConditionWeakPtrVectorType

◆ ElementWeakPtrVectorType

◆ IndexType

typedef std::size_t Kratos::Mesher::IndexType

◆ InfoParametersType

◆ MeshingParametersType

◆ NodeWeakPtrVectorType

◆ RefineParametersType

◆ SizeType

typedef std::size_t Kratos::Mesher::SizeType

Constructor & Destructor Documentation

◆ Mesher() [1/2]

Kratos::Mesher::Mesher ( )
inline

Default constructor.

◆ Mesher() [2/2]

Kratos::Mesher::Mesher ( Mesher const &  rOther)
inline

Copy constructor.

◆ ~Mesher()

virtual Kratos::Mesher::~Mesher ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ EndEcho()

void Kratos::Mesher::EndEcho ( ModelPart rSubModelPart,
std::string  GenerationMessage 
)
protectedvirtual

Mesher :: End Echo

◆ ExecuteMeshing()

void Kratos::Mesher::ExecuteMeshing ( ModelPart rModelPart)
virtual

Mesh Generation :: Remesh all ModelPart

◆ ExecutePostMeshingProcesses()

void Kratos::Mesher::ExecutePostMeshingProcesses ( )
protectedvirtual

Mesher :: Process to be done at the end of the Generation

◆ ExecutePreMeshingProcesses()

void Kratos::Mesher::ExecutePreMeshingProcesses ( )
protectedvirtual

Mesher :: Process to be done at the begining of the Generation

◆ FinalizeMesher()

void Kratos::Mesher::FinalizeMesher ( ModelPart rModelPart)
virtual

Mesher :: Finalize

◆ Generate()

virtual void Kratos::Mesher::Generate ( ModelPart rModelPart,
MeshingParametersType rMeshingVariables 
)
inlineprotectedvirtual

Mesher :: Delaunay Tessellation

Reimplemented in Kratos::TriangularMesh2DMesher, and Kratos::TetrahedralMesh3DMesher.

◆ GetEchoLevel()

int Kratos::Mesher::GetEchoLevel ( )
inline

◆ Info()

virtual std::string Kratos::Mesher::Info ( ) const
inlinevirtual

◆ Initialize()

void Kratos::Mesher::Initialize ( )

Called to initialize the mesher Must be called before any calculation is done

◆ InitializeMesher()

void Kratos::Mesher::InitializeMesher ( ModelPart rModelPart)
virtual

Mesher :: Initilize

◆ KRATOS_CLASS_POINTER_DEFINITION()

Kratos::Mesher::KRATOS_CLASS_POINTER_DEFINITION ( Mesher  )

Pointer definition of Mesher.

◆ operator=()

Mesher& Kratos::Mesher::operator= ( Mesher const &  rOther)
protected

Assignment operator.

◆ PrintData()

virtual void Kratos::Mesher::PrintData ( std::ostream &  rOStream) const
inlinevirtual

◆ PrintInfo()

virtual void Kratos::Mesher::PrintInfo ( std::ostream &  rOStream) const
inlinevirtual

◆ RecoverBoundaryPosition()

void Kratos::Mesher::RecoverBoundaryPosition ( ModelPart rModelPart,
MeshingParametersType rMeshingVariables 
)
protectedvirtual

Mesher :: Recover Boundary Position

◆ SetDataTransferUtilities()

void Kratos::Mesher::SetDataTransferUtilities ( MeshDataTransferUtilities::Pointer  rDataTransferUtilities)

Transfer utilities are given to the mesher

◆ SetEchoLevel()

virtual void Kratos::Mesher::SetEchoLevel ( int  Level)
inlinevirtual

level of echo for the mesh mesher

◆ SetElementNeighbours()

void Kratos::Mesher::SetElementNeighbours ( ModelPart rModelPart,
MeshingParametersType rMeshingVariables 
)
protectedvirtual

◆ SetElements()

void Kratos::Mesher::SetElements ( ModelPart rModelPart,
MeshingParametersType rMeshingVariables 
)
protectedvirtual

Mesher :: Set Elements to mesh

◆ SetMesherUtilities()

void Kratos::Mesher::SetMesherUtilities ( MesherUtilities::Pointer  rMesherUtilities)

Utilities for the mesher are given to the mesher

◆ SetMeshingParameters()

void Kratos::Mesher::SetMeshingParameters ( MeshingParametersType::Pointer &  rMeshingParameters)

Remesh information is given to the mesher

◆ SetNeighbours()

void Kratos::Mesher::SetNeighbours ( ModelPart rModelPart,
MeshingParametersType rMeshingVariables 
)
protectedvirtual

Mesher :: Set Elements to mesh

◆ SetNodes()

void Kratos::Mesher::SetNodes ( ModelPart rModelPart,
MeshingParametersType rMeshingVariables 
)
protectedvirtual

Mesher :: Set Nodes to mesh

◆ SetPostMeshingProcess()

void Kratos::Mesher::SetPostMeshingProcess ( MesherProcess::Pointer  pPostMeshingProcess)

◆ SetPostMeshingProcessVector()

void Kratos::Mesher::SetPostMeshingProcessVector ( std::vector< MesherProcess::Pointer > &  rPostMeshingProcessVector)

◆ SetPreMeshingProcess()

void Kratos::Mesher::SetPreMeshingProcess ( MesherProcess::Pointer  pPreMeshingProcess)

Pre and Post meshing processes are given to the mesher

◆ SetPreMeshingProcessVector()

void Kratos::Mesher::SetPreMeshingProcessVector ( std::vector< MesherProcess::Pointer > &  rPreMeshingProcessVector)

◆ StartEcho()

void Kratos::Mesher::StartEcho ( ModelPart rSubModelPart,
std::string  GenerationMessage 
)
protectedvirtual

Mesher :: Start Echo

Member Data Documentation

◆ mEchoLevel

int Kratos::Mesher::mEchoLevel
protected

◆ mpDataTransferUtilities

MeshDataTransferUtilities::Pointer Kratos::Mesher::mpDataTransferUtilities
protected

◆ mpMesherUtilities

MesherUtilities::Pointer Kratos::Mesher::mpMesherUtilities
protected

◆ mpMeshingVariables

MeshingParametersType::Pointer Kratos::Mesher::mpMeshingVariables
protected

◆ mPostMeshingProcesses

std::vector<MesherProcess::Pointer> Kratos::Mesher::mPostMeshingProcesses
protected

◆ mPreMeshingProcesses

std::vector<MesherProcess::Pointer> Kratos::Mesher::mPreMeshingProcesses
protected

The documentation for this class was generated from the following files: