Loading...
Searching...
No Matches
inpmeshreader.cpp 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 "mesh/inpmeshreader.h"
#include "mesh/meshbctype.h"
#include "mesh/meshcellgeom.h"
#include "mesh/meshinfil.h"
#include <QByteArray>
#include <QChar>
#include <QDir>
#include <QFile>
#include <QFileInfo>
#include <QHash>
#include <algorithm>
#include <cerrno>
#include <climits>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <vector>
#include <charconv>
Include dependency graph for inpmeshreader.cpp:

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