OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
BoundaryData.hpp File Reference

Structure-of-Arrays (SoA) storage for 2D mesh boundary conditions. More...

#include <vector>
#include <cstdint>
Include dependency graph for BoundaryData.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  openswmm::twoD::BoundaryData
 SoA storage for per-edge boundary conditions. More...
 

Namespaces

namespace  openswmm
 
namespace  openswmm::twoD
 

Enumerations

enum class  openswmm::twoD::BoundaryType : int8_t {
  openswmm::twoD::WALL = 0 ,
  openswmm::twoD::NORMAL_FLOW = 1 ,
  openswmm::twoD::SPECIFIED_STAGE = 2 ,
  openswmm::twoD::SPECIFIED_FLOW = 3 ,
  openswmm::twoD::RATING_CURVE = 4
}
 Boundary condition types for 2D mesh edges. More...
 

Detailed Description

Structure-of-Arrays (SoA) storage for 2D mesh boundary conditions.

Stores per-edge boundary condition type, parameters, and cumulative flux tracking. Arrays are flat 2D [tri * 3 + edge_local], sized to n_triangles * 3 (matching edge_flux, edge_length, etc.).

Boundary types:

  • WALL: Zero-flux (default). No water crosses the boundary.
  • NORMAL_FLOW: Manning outflow based on bed slope at the edge.
  • SPECIFIED_STAGE: Prescribed water surface elevation (constant or time-varying via timeseries).
See also
TWO_DIMENSIONAL_SURFACE_ROUTING_IMPLEMENTATION_STRATEGY.md
Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n MIT License