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

Short class definition. More...

#include <triangular_mesh_2D_mesher.hpp>

Inheritance diagram for Kratos::TriangularMesh2DMesher:
Collaboration diagram for Kratos::TriangularMesh2DMesher:

Public Member Functions

Life Cycle
 TriangularMesh2DMesher ()
 Default constructor. More...
 
 TriangularMesh2DMesher (TriangularMesh2DMesher const &rOther)
 Copy constructor. More...
 
virtual ~TriangularMesh2DMesher ()
 Destructor. 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::Mesher
 Mesher ()
 Default constructor. More...
 
 Mesher (Mesher const &rOther)
 Copy constructor. More...
 
virtual ~Mesher ()
 Destructor. More...
 
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)
 
 KRATOS_CLASS_POINTER_DEFINITION (Mesher)
 Pointer definition of Mesher. More...
 

Protected Types

enum  TriangleErrors { INPUT_MEMORY_ERROR =1 , INTERNAL_ERROR =2 , INVALID_GEOMETRY_ERROR =3 }
 

Protected Member Functions

Protected Operations
void Generate (ModelPart &rModelPart, MeshingParametersType &rMeshingVariables) override
 
int GenerateTessellation (MeshingParametersType &rMeshingVariables, struct triangulateio &in, struct triangulateio &out)
 
- Protected Member Functions inherited from Kratos::Mesher
Mesheroperator= (Mesher const &rOther)
 Assignment operator. More...
 
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 SetElementNeighbours (ModelPart &rModelPart, MeshingParametersType &rMeshingVariables)
 
virtual void RecoverBoundaryPosition (ModelPart &rModelPart, MeshingParametersType &rMeshingVariables)
 

Type Definitions

typedef MesherUtilities::MeshingInfoParameters InfoParametersType
 
typedef MesherUtilities::MeshingParameters MeshingParametersType
 
typedef MesherUtilities::RefiningParameters RefineParametersType
 
 KRATOS_CLASS_POINTER_DEFINITION (TriangularMesh2DMesher)
 Pointer definition of TriGenCDT. More...
 

Additional Inherited Members

- Public Types inherited from Kratos::Mesher
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
 
- Protected Attributes inherited from Kratos::Mesher
MeshingParametersType::Pointer mpMeshingVariables
 
std::vector< MesherProcess::Pointer > mPreMeshingProcesses
 
std::vector< MesherProcess::Pointer > mPostMeshingProcesses
 
MesherUtilities::Pointer mpMesherUtilities
 
MeshDataTransferUtilities::Pointer mpDataTransferUtilities
 
int mEchoLevel
 

Detailed Description

Short class definition.

Detail class definition.

Member Typedef Documentation

◆ InfoParametersType

◆ MeshingParametersType

◆ RefineParametersType

Member Enumeration Documentation

◆ TriangleErrors

Enumerator
INPUT_MEMORY_ERROR 
INTERNAL_ERROR 
INVALID_GEOMETRY_ERROR 

Constructor & Destructor Documentation

◆ TriangularMesh2DMesher() [1/2]

Kratos::TriangularMesh2DMesher::TriangularMesh2DMesher ( )
inline

Default constructor.

◆ TriangularMesh2DMesher() [2/2]

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

Copy constructor.

◆ ~TriangularMesh2DMesher()

virtual Kratos::TriangularMesh2DMesher::~TriangularMesh2DMesher ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ Generate()

void Kratos::TriangularMesh2DMesher::Generate ( ModelPart rModelPart,
MeshingParametersType rMeshingVariables 
)
overrideprotectedvirtual

Mesher :: Delaunay Tessellation

Reimplemented from Kratos::Mesher.

◆ GenerateTessellation()

int Kratos::TriangularMesh2DMesher::GenerateTessellation ( MeshingParametersType rMeshingVariables,
struct triangulateio &  in,
struct triangulateio &  out 
)
protected

◆ Info()

std::string Kratos::TriangularMesh2DMesher::Info ( ) const
inlineoverridevirtual

Turn back information as a string.

Reimplemented from Kratos::Mesher.

◆ KRATOS_CLASS_POINTER_DEFINITION()

Kratos::TriangularMesh2DMesher::KRATOS_CLASS_POINTER_DEFINITION ( TriangularMesh2DMesher  )

Pointer definition of TriGenCDT.

◆ PrintData()

void Kratos::TriangularMesh2DMesher::PrintData ( std::ostream &  rOStream) const
inlineoverridevirtual

Print object's data.

Reimplemented from Kratos::Mesher.

◆ PrintInfo()

void Kratos::TriangularMesh2DMesher::PrintInfo ( std::ostream &  rOStream) const
inlineoverridevirtual

Print information about this object.

Reimplemented from Kratos::Mesher.


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