Input and output¶
-
struct GmshElementDef¶
- #include <gmsh.hpp>
Definition of one Gmsh element type mapped to the solvcon mesh representation.
It carries the spatial dimension, the node count, the solvcon cell type number, and the node ordering (mmcl) that rearranges Gmsh nodes into the solvcon cell order. by_id() returns the definition for a given Gmsh element type id.
-
class Gmsh : public solvcon::NumberBase<int32_t, double>¶
- #include <gmsh.hpp>
Reader that parses a Gmsh MSH text mesh into a solvcon StaticMesh.
Only the ASCII MSH format version 2.2 is supported. Construct it with the file contents as a string, then call to_block() to build the mesh. A finite state machine walks the MeshFormat, PhysicalNames, Nodes, and Elements sections in order. Node and element indices are converted from the Gmsh 1-based numbering to the solvcon 0-based numbering.
-
class Plot3d : public solvcon::NumberBase<int32_t, double>¶
- #include <plot3d.hpp>
Parser that converts Plot3D structured grid data into a StaticMesh.
The grid is read from an in-memory string holding one or more blocks. Node coordinates are parsed per block, indexed by the per-block x, y, and z shapes, and assembled into hexahedron elements to build the mesh.
-
class OasisDevice¶
- #include <oasis_device.hpp>
OASIS device converts coordinates information to OASIS format.
OasisDevice class store rectangles or polygons as OASIS format, the implementation based on OASIS specification, convert coordinates information (xy) to OASIS geometry format. The format are represented as byte-continuations. LSB present that the next bytes is belonging the group or not.
-
class OasisRecordPoly¶
- #include <oasis_device.hpp>
Convert vertex information to OASIS polygon record bytes.
-
class OasisRecordRect¶
- #include <oasis_device.hpp>
Convert rectangle information to OASIS rectangle record bytes.