|
Stellarator and Tokamak Modeling and Meshing Software (STOMMS)
|
|
inline |
| XgcMesh::XgcMesh | ( | std::string | adiosFileName | ) |
XGC Mesh Class. Takes in adios2 file.
| adiosFileName | Adios2 file name containing mesh and related information. |
| std::vector< VertexIdType > XgcMesh::getAdjacentXpoints | ( | SurfaceIdType | privateFaceIndex, |
| PlaneId | planeId | ||
| ) |
Function to take an index of a private region and returns a vector of the adjacent x-points. throws an exception if the passed index is not a private region.
| privateFaceIndex | Index of the private region. |
| planeId | Id of the plane. |
| std::vector< VertexIdType > XgcMesh::getCriticalPoints | ( | PointType | pType, |
| PlaneId | planeId | ||
| ) |
Given the required point type and plane #, return x-points or o-points on the plane.
| pType | desired critical point type (XPoint, OPoint). |
| planeId | Id of the plane. |
| std::vector< EdgeIdType > XgcMesh::getCurveGeometricEdges | ( | CurveIdType | curveId, |
| PlaneId | planeId | ||
| ) |
Given the id of a model curve, and plane #, this function returns all the geometric edges on that model curve.
| curveId | Id of model curve for which model edges will be returned. |
| planeId | Id of the plane. |
| CurveIdType XgcMesh::getCurveIdFromGeometricEdge | ( | EdgeIdType | edgeId, |
| PlaneId | planeId | ||
| ) |
Given the model edge id and plane #, return the curve id on which model edge is classified on.
| edgeId | Model edge id. |
| planeId | Id of the plane. |
| std::vector< CurveIdType > XgcMesh::getCurvesAtRegion | ( | int | physicsRegion, |
| PlaneId | planeId | ||
| ) |
Given the type of physics region, return the indices of flux curves.(Core = 0, SOL = 1, Private_1 = 2, private_2 = 3, ...). As in current implementation of XGC. Change in future as needed.
| physicsRegion | Physics region on which model curves are required. |
| planeId | Id of the plane. |
| std::vector< CurveIdType > XgcMesh::getCurvesForType | ( | CurveType | cType, |
| PlaneId | planeId | ||
| ) |
Given the curveType (closed,open etc.) and plane #, return all flux curves of that type.
| cType | CurveType for which model curves are needed. |
| planeId | Id of the plane. |
| CurveType XgcMesh::getCurveType | ( | CurveIdType | curveId, |
| PlaneId | planeId | ||
| ) |
| GeomIdType XgcMesh::getGeometricClassification | ( | TopoType | topoType, |
| MeshIdType | id, | ||
| PlaneId | planeId | ||
| ) |
Function to return id of the model entity on which mesh entity is classified. This function must be used with the getGeometricTopology to get complete classification information.
| topoType | Topology of the mesh entity for which classification information is needed (e.g TopoType::Vertex for mesh vertices if classification for mesh vertex is needed). |
| id | id of the mesh entity. |
| planeId | Id of the plane. |
| TopoType XgcMesh::getGeometricTopology | ( | TopoType | topoType, |
| MeshIdType | id, | ||
| PlaneId | planeId | ||
| ) |
Function to return model topology of the model entity on which mesh entity is classified. This will return the dimension of the model entity on which mesh entity is classified.
| topoType | Topology of the mesh entity for which classification information is needed (e.g TopoType::Vertex for mesh vertices if classification for mesh vertex is needed). |
| id | id of the mesh entity. |
| planeId | Id of the plane. |
| const PlaneMesh & XgcMesh::getMeshAtPlane | ( | const int & | planeNum | ) |
| std::vector< MeshIdType > XgcMesh::getMeshEntities | ( | TopoType | geomTopoType, |
| GeomIdType | geomId, | ||
| TopoType | meshTopoType, | ||
| bool | includeClosure, | ||
| PlaneId | planeId | ||
| ) |
Reverse Classification.
Given the geometric model id and topology, return the reverse classification for the desired mesh topology.
| geomTopoType | Input geometric topology on which mesh entities are required. |
| geomId | Id of the geometric entity. |
| meshTopoType | Topology of desired mesh entities. |
| includeClosure | set true to get mesh entities on the closure of the model entity. |
| planeId | Id of the plane. |
| std::string XgcMesh::getMeshName | ( | ) |
Function to return mesh name.
| std::vector< GeomIdType > XgcMesh::getModelAdjEnts | ( | TopoType | geomTopoIn, |
| GeomIdType | geomEntId, | ||
| TopoType | geomTopoOut, | ||
| PlaneId | planeId | ||
| ) |
Given the model entity topology, and its geometric id, returns all adjacents entities of dimension geomTopoOut.
| geomTopoType | Input geometric topology on which adjacencies are needed. |
| geomId | Id of the geometric entity. |
| planeId | Id of the plane. |
| std::map< MeshIdType, std::vector< CurveIdType > > XgcMesh::getNonAlignedMeshVerticesOnModelSurface | ( | SurfaceIdType | surfaceId, |
| PlaneId | planeId | ||
| ) |
Given a surface (model face), return all non-aligned mesh vertices on it. The return map contains vertex id as key and vector of flux curves bounding it.
| surfaceId | Index of the model face on which non-aligned mesh vertices are required. |
| planeId | Id of the plane. |
| std::map< MeshIdType, std::vector< CurveIdType > > XgcMesh::getNonAlignedMeshVerticesOnPlane | ( | PlaneId | planeId | ) |
Given just PlaneId, return all non-aligned mesh vertices on it. The return map contains vertex id as key and vector of flux curves bounding it.
| planeId | Id of the plane. |
| int XgcMesh::getNumCurvesAtRegion | ( | int | physicsRegion, |
| PlaneId | planeId | ||
| ) |
Given the type of physics region, return the number of flux curves on it. Core = 0, SOL = 1, Private_1 = 2, private_2 = 3, ...). As in current implementation of XGC. Change in future as needed.
| physicsRegion | Physics region on which model curves are required. |
| planeId | Id of the plane. |
| int XgcMesh::getNumPlanes | ( | ) |
Function to return number of planes in a mesh.
| Omega_h::Mesh XgcMesh::getOmegahMeshatPlane | ( | const int & | planeNum | ) |
Given the plane number, get Omegah mesh at that plane.
| planeNum | Plane Number on which Omega_h mesh is required. |
| SurfaceType XgcMesh::getPhysicsRegionForMeshEnt | ( | TopoType | meshTopoType, |
| MeshIdType | id, | ||
| PlaneId | planeId | ||
| ) |
Given the mesh entity (vertex or face) return the physics regions its classified on. meshTopoType: Topology of mesh entity (TopoType::Vertex, Face allowed). id: id of the mesh entity.
| planeId | Id of the plane. |
| SurfaceType XgcMesh::getPhysicsRegionType | ( | SurfaceIdType | surfaceId, |
| PlaneId | planeId | ||
| ) |
Given the id of a surface and plane #, return physics type of the surface.
| surfaceId | (in): Model face id. |
| planeId | Id of the plane. |