Loading...
Searching...
No Matches
inpmeshreader.h File Reference

Read the [2D_*] mesh sections — [2D_VERTICES], [2D_TRIANGLES], [2D_QUADS] (mixed meshes: quads appended after the triangles, cell index = n_triangles + j; a triangle row after a quad row is an error), [2D_VERTEX_NODE_MAP], [2D_TRIANGLE_NODE_MAP], the per-edge [2D_BOUNDARY_CONDITIONS] / [2D_EDGE_CONVEYANCE] pair and the GG0a per-cell [2D_INFILTRATION_OPTIONS] / [2D_INFILTRATION_DEFAULTS] / [2D_INFILTRATION] family — from a SWMM .inp, resolving the [2D_MESH_FILE] indirection when present. More...

#include "meshresult.h"
#include "meshedgebc.h"
#include <QString>
#include <QVector>
Include dependency graph for inpmeshreader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mesh::InpMeshReadResult
 Outcome of InpMeshReader::read. More...
 
class  mesh::InpMeshReader
 Stateless reader for the [2D_*] mesh sections of a SWMM .inp (inline or via [2D_MESH_FILE]), the counterpart of InpMeshWriter. More...
 

Namespaces

namespace  mesh
 The Qt-facing MeshKit API (meshkit::core_qt, meshkit::model_qt, meshkit::io_qt): mesh value types and cell attributes, the mesh generator, quad regions, matching and cleanup, mesh statistics, and the INP and 2DM mesh codecs.
 

Functions

bool mesh::unitsHeaderIsSI (const QString &unitsHeader)
 Recognize the retained metric-mesh header vocabulary without converting geometry.
 

Detailed Description

Read the [2D_*] mesh sections — [2D_VERTICES], [2D_TRIANGLES], [2D_QUADS] (mixed meshes: quads appended after the triangles, cell index = n_triangles + j; a triangle row after a quad row is an error), [2D_VERTEX_NODE_MAP], [2D_TRIANGLE_NODE_MAP], the per-edge [2D_BOUNDARY_CONDITIONS] / [2D_EDGE_CONVEYANCE] pair and the GG0a per-cell [2D_INFILTRATION_OPTIONS] / [2D_INFILTRATION_DEFAULTS] / [2D_INFILTRATION] family — from a SWMM .inp, resolving the [2D_MESH_FILE] indirection when present.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License
Apache-2.0

Read the [2D_*] mesh sections — [2D_VERTICES], [2D_TRIANGLES], [2D_QUADS] (mixed meshes: quads appended after the triangles, cell index = n_triangles + j; a triangle row after a quad row is an error), [2D_VERTEX_NODE_MAP], [2D_TRIANGLE_NODE_MAP], the per-edge [2D_BOUNDARY_CONDITIONS] / [2D_EDGE_CONVEYANCE] pair and the GG0a per-cell [2D_INFILTRATION_OPTIONS] / [2D_INFILTRATION_DEFAULTS] / [2D_INFILTRATION] family — from a SWMM .inp, resolving the [2D_MESH_FILE] indirection when present. Mirrors the format produced by mesh::InpMeshWriter.