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

emit [2D_VERTICES] / [2D_TRIANGLES] / [2D_VERTEX_NODE_MAP] / [2D_TRIANGLE_NODE_MAP] (plus the GG0a [2D_INFILTRATION*] family) sections from a MeshResult + a CouplingMap, and patch them into a SWMM .inp file (replacing existing sections in place). More...

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

Go to the source code of this file.

Classes

struct  mesh::CouplingMap
 1D↔2D coupling map produced by the meshing dialog. More...
 
class  mesh::InpMeshWriter
 Stateless writer that renders a MeshResult plus CouplingMap as SWMM [2D_*] section text and writes or patches it into a .inp and, in External mode, a sidecar .2dm. More...
 
struct  mesh::InpMeshWriter::UnitInfo
 Unit & provenance metadata written as ;; header comments. 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.
 

Enumerations

enum class  mesh::MeshOutputMode {
  mesh::External ,
  mesh::Inline
}
 Output strategy for the four 2D mesh sections. More...
 

Detailed Description

emit [2D_VERTICES] / [2D_TRIANGLES] / [2D_VERTEX_NODE_MAP] / [2D_TRIANGLE_NODE_MAP] (plus the GG0a [2D_INFILTRATION*] family) sections from a MeshResult + a CouplingMap, and patch them into a SWMM .inp file (replacing existing sections in place).

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

Slice AU — emit [2D_VERTICES] / [2D_TRIANGLES] / [2D_VERTEX_NODE_MAP] / [2D_TRIANGLE_NODE_MAP] (plus the GG0a [2D_INFILTRATION*] family) sections from a MeshResult + a CouplingMap, and patch them into a SWMM .inp file (replacing existing sections in place). Format follows openswmm.engine/docs/2dModelStrategy.md §1.4–1.7 and, for infiltration, the engine's InpWriter.cpp emit2DInfilSections().