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

Structure-of-Arrays (SoA) storage for all link types. More...

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

Go to the source code of this file.

Classes

struct  openswmm::LinkData
 Structure-of-Arrays storage for all links. More...
 

Namespaces

namespace  openswmm
 

Enumerations

enum class  openswmm::LinkType : int8_t {
  openswmm::CONDUIT = 0 ,
  openswmm::PUMP = 1 ,
  openswmm::ORIFICE = 2 ,
  openswmm::WEIR = 3 ,
  openswmm::OUTLET = 4
}
 Link type codes. More...
 
enum class  openswmm::XsectShape : int16_t {
  openswmm::CIRCULAR = 0 ,
  openswmm::FILLED_CIRCULAR = 1 ,
  openswmm::RECT_CLOSED = 2 ,
  openswmm::RECT_OPEN = 3 ,
  openswmm::TRAPEZOIDAL = 4 ,
  openswmm::TRIANGULAR = 5 ,
  openswmm::PARABOLIC = 6 ,
  openswmm::POWER = 7 ,
  openswmm::MODBASKETHANDLE = 8 ,
  openswmm::EGGSHAPED = 9 ,
  openswmm::HORSESHOE = 10 ,
  openswmm::GOTHIC = 11 ,
  openswmm::CATENARY = 12 ,
  openswmm::SEMIELLIPTICAL = 13 ,
  openswmm::BASKETHANDLE = 14 ,
  openswmm::SEMICIRCULAR = 15 ,
  openswmm::RECT_TRIANG = 16 ,
  openswmm::RECT_ROUND = 17 ,
  openswmm::IRREGULAR = 18 ,
  openswmm::CUSTOM = 19 ,
  openswmm::FORCE_MAIN = 20 ,
  openswmm::STREET_XSECT = 21 ,
  openswmm::DUMMY = 22
}
 Conduit cross-section shape code. More...
 
enum class  openswmm::FlowClass : int8_t {
  openswmm::DRY = 0 ,
  openswmm::UP_DRY = 1 ,
  openswmm::DN_DRY = 2 ,
  openswmm::SUBCRITICAL = 3 ,
  openswmm::SUPERCRITICAL = 4 ,
  openswmm::UP_CRITICAL = 5 ,
  openswmm::DN_CRITICAL = 6
}
 Link flow state. More...
 

Detailed Description

Structure-of-Arrays (SoA) storage for all link types.

Replaces the global Link[] array and TLink/TConduit/TPump/ TWeir/TOrifice/TOutlet structs from src/solver/objects.h.

Link types:

  • CONDUIT — open/closed channel or pipe
  • PUMP — pump (fixed or variable speed)
  • ORIFICE — inline or side orifice
  • WEIR — transverse, side-flow, V-notch, or trapezoidal weir
  • OUTLET — flap gate or rating-curve outlet
See also
Legacy reference: src/solver/objects.h — TLink, TConduit, TPump, TWeir, TOrifice
Legacy reference: src/solver/globals.h — Link[], Nlinks[]
Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n MIT License