Skip to main content

System Coupling C++ library 2024 R2

sysc::VolumeMesh Class Reference

Last update: 17.07.2025

Provide a volume mesh access class. More...

#include <VolumeMesh.hpp>

Public Member Functions

 VolumeMesh (NodeData nodeData, CellData cellData)
 Provide a constructor for element-based volume mesh.
 
 VolumeMesh (NodeData nodeData, FaceData faceData, CellData cellData)
 Provide a constructor for face-based volume mesh.
 
 VolumeMesh ()=default
 Provide a default constructor.
 
 VolumeMesh (const VolumeMesh &)=default
 Provide a copy-constructor.
 
 VolumeMesh (VolumeMesh &&)=default
 Provide a move-constructor.
 
VolumeMeshoperator= (const VolumeMesh &)=default
 Provide a copy-assign operator.
 
VolumeMeshoperator= (VolumeMesh &&)=default
 Provide a move-assign operator.
 
const NodeDatagetNodeData () const noexcept
 Get node data.
 
const FaceDatagetFaceData () const noexcept
 Get face data.
 
const CellDatagetCellData () const noexcept
 Get cell data.
 
MeshValidityStatus checkMeshValidity () const
 Provide a method to perform simple mesh validity checks.
 
 VolumeMesh (NodeData nodeData, ElementTypeData faceTypeData, ElementNodeCountData faceNodeCountData, ElementNodeConnectivityData faceNodeConnectivityData, FaceCellConnectivityData faceCellConnectivityData, CellIdData cellIdData, ElementTypeData cellTypeData, ElementNodeConnectivityData cellNodeConnectivityData)
 For internal use only.
 
std::size_t getNumNodes () const noexcept
 Provide a method to get the number of nodes for this mesh.
 
std::size_t getNumCells () const noexcept
 Get the number of cells.
 
OutputIntegerData getNodeIds () const noexcept
 Provide a method to access node ids array.
 
OutputVectorData getNodeCoords () const noexcept
 Provide a method to access node coordinates array.
 
ElementTypeData getFaceTypes () const noexcept
 Get face types.
 
OutputIntegerData getFaceNodeCounts () const noexcept
 Provide a method to access face node counts array.
 
OutputIntegerData getFaceNodeIds () const noexcept
 Provide a method to access face node ids array.
 
OutputIntegerData getCell0Ids () const noexcept
 Provide a method to access cell 0 ids array.
 
OutputIntegerData getCell1Ids () const noexcept
 Provide a method to access cell 1 ids array.
 
CellIdData getCellIds () const noexcept
 Provide a method to access cell ids array.
 
ElementTypeData getCellTypes () const noexcept
 Provide a method to access cell types data.
 
ElementNodeConnectivityData getCellNodeConnectivity () const noexcept
 Access cell-to-node connectivity data.
 
 VolumeMesh (NodeData nodeData, ElementTypeData cellTypes, ElementNodeConnectivityData cellNodeIds)
 Provide a constructor for element-based volume mesh.
 
 VolumeMesh (NodeData nodeData, ElementNodeCountData faceNodeCounts, ElementNodeConnectivityData faceNodeIds, FaceCellConnectivityData faceToCellConnectivity, CellIdData cellIds)
 Provide a constructor for face-based volume mesh.
 

Public Attributes

std::int64_t connectivityStamp {0}
 Mesh connectivity stamp. Update whenever re-meshing happens.
 
std::int64_t coordinatesStamp {0}
 Nodal coordinates stamp. Update whenever nodal coordinates get updated.
 
std::int64_t partitioningStamp {0}
 Partitioning stamp. Update whenever the mesh is re-partitioned.
 

Detailed Description

Provide a volume mesh access class.

Provides read-only access to the volume mesh for a given region.

Definition at line 26 of file VolumeMesh.hpp.

Member Function Documentation

◆ checkMeshValidity()

MeshValidityStatus sysc::VolumeMesh::checkMeshValidity ( ) const

Provide a method to perform simple mesh validity checks.

See SystemCoupling::checkMeshValidity for more details.

Member Data Documentation

◆ connectivityStamp

std::int64_t sysc::VolumeMesh::connectivityStamp {0}

Mesh connectivity stamp. Update whenever re-meshing happens.

Definition at line 29 of file VolumeMesh.hpp.

29{0};

◆ coordinatesStamp

std::int64_t sysc::VolumeMesh::coordinatesStamp {0}

Nodal coordinates stamp. Update whenever nodal coordinates get updated.

Definition at line 32 of file VolumeMesh.hpp.

32{0};

◆ partitioningStamp

std::int64_t sysc::VolumeMesh::partitioningStamp {0}

Partitioning stamp. Update whenever the mesh is re-partitioned.

Definition at line 35 of file VolumeMesh.hpp.

35{0};

Connect with Ansys