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::TetgenVolumeMesher Class Reference

This class performs the (constrained) Delaunay meshing of the internal volume given a surface discretized in terms of triangular conditions. More...

#include <tetgen_volume_mesher.h>

Collaboration diagram for Kratos::TetgenVolumeMesher:

Public Member Functions

Type Definitions
 KRATOS_CLASS_POINTER_DEFINITION (TetgenVolumeMesher)
 Pointer definition of TetgenVolumeMesher. More...
 
Life Cycle
 TetgenVolumeMesher (ModelPart &rmodel_part)
 Default constructor. More...
 
virtual ~TetgenVolumeMesher ()=default
 Destructor. More...
 
void AddHole (double x, double y, double z)
 
void GenerateMesh (std::string settings, std::string ElementName)
 
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...
 

Detailed Description

This class performs the (constrained) Delaunay meshing of the internal volume given a surface discretized in terms of triangular conditions.

This class performs the meshing of the internal volume given a surface discretized in terms of triangular conditions. Meshing is performed using the Tetgen mesher by Hang Si

Constructor & Destructor Documentation

◆ TetgenVolumeMesher()

Kratos::TetgenVolumeMesher::TetgenVolumeMesher ( ModelPart rmodel_part)
inline

Default constructor.

◆ ~TetgenVolumeMesher()

virtual Kratos::TetgenVolumeMesher::~TetgenVolumeMesher ( )
virtualdefault

Destructor.

Member Function Documentation

◆ AddHole()

void Kratos::TetgenVolumeMesher::AddHole ( double  x,
double  y,
double  z 
)
inline

This function is designed to add volumes, to carve out cavities inside a domain. The user is expected to manually prescribe the position of the cavities. As many "Holes" as needed can be prescribed"

Parameters
x- x coordinate of the cavity
y- y coordinate of the cavity
z- z coordinate of the cavity

◆ GenerateMesh()

void Kratos::TetgenVolumeMesher::GenerateMesh ( std::string  settings,
std::string  ElementName 
)
inline

This function performs the actual meshing. The conditions used to define the surface will be mantained in the final mesh. The user is expected to prescribe the command line settings to be used accordin to the Tetgen manual. WARNING: please note that YY is needed between the parameters

Parameters
settings- string containing the command line settings
ElementName- name of the type of elements to be created
please note that the element type given should be registered in the Kratos

◆ Info()

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

Turn back information as a string.

◆ KRATOS_CLASS_POINTER_DEFINITION()

Kratos::TetgenVolumeMesher::KRATOS_CLASS_POINTER_DEFINITION ( TetgenVolumeMesher  )

Pointer definition of TetgenVolumeMesher.

◆ PrintData()

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

Print object's data.

◆ PrintInfo()

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

Print information about this object.


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