Hide menu
Loading...
Searching...
No Matches
cadex::Mesh_NetgenMeshDS Class Reference

Holds the Netgen mesh. Also provides interface to work with it. More...

#include <cadex/Mesh_NetgenMeshDS.hxx>

Public Member Functions

 Mesh_NetgenMeshDS ()
 Constructor.
 
bool SetFaceBCIndex (const ModelData_Face &theFace, int theBCIndex)
 Sets a boundary condition index for a face.
 
bool SetFaceBCIndex (const TopoDS_Face &theFace, int theBCIndex)
 Sets a boundary condition index for a face.
 
void SetNumberOfBCs (size_t theNum)
 Sets an amount of boundary conditions.
 
void SetBCName (int theBCIndex, const Base_String &theName)
 Sets a name for a boundary condition.
 
size_t NumberOfPoints () const
 Returns the amount of points.
 
size_t NumberOfBoundaryFaces () const
 Returns the amount of boundary faces.
 
size_t NumberOfSurfaceElements () const
 Returns the amount of surface elements.
 
size_t NumberOfVolumeElements () const
 Returns the amount of volume elements.
 
void RefineUniform ()
 Performs mesh refinement.
 
void MakeSecondOrder ()
 Performs mesh second order refinement.
 
const std::shared_ptr< internal::Mesh_NetgenMeshDSImpl > & Impl () const
 

Detailed Description

Holds the Netgen mesh. Also provides interface to work with it.

Warning
This class is a part of Advanced Meshers add-on, which is licensed separately from the base CAD Exchanger SDK.

Users can obtain the object of this class from Mesh_SMDS using NetgenMeshDS() and use it as input to Netgen exporters (abaqus, fluent, etc.). Also they can set Boundary Conditions and get some basic information about mesh.

Member Function Documentation

◆ Impl()

const std::shared_ptr< internal::Mesh_NetgenMeshDSImpl > & cadex::Mesh_NetgenMeshDS::Impl ( ) const
inline

Returns the pointer to the implementation object.

Warning
This function is not part of CAD Exchanger API and should not be used.

◆ MakeSecondOrder()

void cadex::Mesh_NetgenMeshDS::MakeSecondOrder ( )

Performs mesh second order refinement.

Converts 4 node elements to 10 node elements. It adds an additional point in the edges of triangles which is projected on the original surface.

◆ RefineUniform()

void cadex::Mesh_NetgenMeshDS::RefineUniform ( )

Performs mesh refinement.

Refines mesh by splitting elements into eight childs.

◆ SetFaceBCIndex() [1/2]

bool cadex::Mesh_NetgenMeshDS::SetFaceBCIndex ( const ModelData_Face theFace,
int  theBCIndex 
)

Sets a boundary condition index for a face.

Indices must be >= 1.

◆ SetFaceBCIndex() [2/2]

bool cadex::Mesh_NetgenMeshDS::SetFaceBCIndex ( const TopoDS_Face &  theFace,
int  theBCIndex 
)

Sets a boundary condition index for a face.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Indices must be >= 1.

◆ SetNumberOfBCs()

void cadex::Mesh_NetgenMeshDS::SetNumberOfBCs ( size_t  theNum)

Sets an amount of boundary conditions.

Use this to pre-allocate the array of boundary conditions names to avoid allocates in future. Attention! It will delete all existing boundary names!