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 |
Holds the Netgen mesh. Also provides interface to work with it.
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.
|
inline |
Returns the pointer to the implementation object.
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.
void cadex::Mesh_NetgenMeshDS::RefineUniform | ( | ) |
Performs mesh refinement.
Refines mesh by splitting elements into eight childs.
bool cadex::Mesh_NetgenMeshDS::SetFaceBCIndex | ( | const ModelData_Face & | theFace, |
int | theBCIndex | ||
) |
Sets a boundary condition index for a face.
Indices must be >= 1.
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.
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!