Polyhedral Mesh Reference
Co-simulation between Simcenter STAR-CCM+ and partner code through the Simcenter STAR-CCM+ API allows for surface-to-surface and volume-to-volume coupling.
For more information on these coupling options, see Co-Simulation Interface and Exchanged Fields.
When the Simcenter STAR-CCM+ API asks your program to fill the mesh, provide the mesh data identified in the sections below. This mesh must be well formed since it will be imported into the Simcenter STAR-CCM+ simulation.
Surface Mesh
For surface-to-surface coupling, provide the following data:
String Identifier | Data Type | Length |
---|---|---|
NumberOfFaces | Integer | Single value |
NumberOfVertices | Integer | Single value |
NumberOfDimensions | Integer | Single value |
Coordinates | Double Array | NumberOfVertices * NumberOfDimensions |
VertexIds | Integer Array | NumberOfVertices |
FaceVertexList | Integer Array | Sum over all faces(Face Vertex Count + 1) |
The FaceVertexList is a ragged array whose sequence follows the pattern:
[<Num Vertices on Face 0>, V0, V1, V2,..., <Num Vertices on Face 1>, V0, V1, V2, ...]
The diagram below illustrates the relationship between the arrays. After constructing the mesh, your program should call the API function notifyOutgoingMeshesReady().

Volume Mesh
For volume-to-volume coupling, provide the following data:
String Identifier | Data Type | Length |
---|---|---|
NumberOfCells | Integer | Single value |
NumberOfVertices | Integer | Single value |
NumberOfInteriorFaces | Integer | Single value |
NumberOfBoundaryFaces | Integer | Single value |
NumberOfDimensions | Integer | Single value |
Coordinates | Double Array | NumberOfVertices * NumberOfDimensions |
VertexIds | Integer Array | NumberOfVertices |
InteriorFaceCellIndexList | Integer Array | NumberOfInteriorFaces * 2 |
InteriorFaceVertexList | Integer Array | Sum over all interior faces (Face Vertex Count + 1) |
BoundaryFaceCellIndexList | Integer Array | NumberOfBoundaryFaces * 2 |
BoundaryFaceVertexList | Integer Array | Sum over all boundary faces (Face Vertex Count + 1) |

where nullIndex = max unsigned int.