![]() |
OpenSWMM Engine
6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
|
Namespaces | |
| namespace | ode |
Variables | |
| constexpr double | GRAVITY = 32.2 |
| constexpr double | SQRT_GRAVITY = 5.67450438786 |
| sqrt(GRAVITY) — precomputed to avoid per-element std::sqrt in Froude calc. | |
| constexpr double | INV_SQRT_GRAVITY = 0.17622692584 |
| 1.0 / sqrt(GRAVITY) — multiply instead of divide in Froude computation. | |
| constexpr double | PI = 3.141592654 |
| Pi. | |
| constexpr double | PHI = 1.486 |
| constexpr double | MEXP = 5.0 / 3.0 |
| constexpr double | VISCOS = 1.1e-5 |
| Kinematic viscosity of water at 20°C (ft²/sec). | |
| constexpr double | SEC_PER_DAY = 86400.0 |
| Seconds per day. | |
| constexpr double | FT_PER_IN = 1.0 / 12.0 |
| Feet per inch. | |
| constexpr double | IN_PER_FT = 12.0 |
| Inches per foot. | |
| constexpr double | FUDGE = 0.0001 |
| constexpr double | MIN_SURFAREA = 12.566 |
| constexpr double | MIN_DELTA_Z = 0.001 |
| Minimum elevation drop for conduit slope computation (ft). | |
| constexpr double | XTOL = 0.001 |
| constexpr double | TINY = 1.0e-6 |
| Small positive number for underflow protection. | |
| constexpr double | OMEGA = 0.5 |
| constexpr double | DEFAULT_HEAD_TOL = 0.005 |
| constexpr int | DEFAULT_MAX_TRIALS = 8 |
| constexpr double | MAX_VELOCITY = 50.0 |
| constexpr double | MIN_TIMESTEP = 0.001 |
| constexpr double | EXTRAN_CROWN_CUTOFF = 0.96 |
| constexpr double | SLOT_CROWN_CUTOFF = 0.985257 |
| Preissmann slot crown cutoff fraction. | |
| constexpr double | SLOT_WIDTH_FACTOR = 0.001 |
| Preissmann slot width factor (slot_width = y_full * this factor). | |
| constexpr double | MIN_LINK_FLOW = 0.001 |
| Minimum orifice/weir flow threshold. | |
| constexpr double | RECT_ALFMAX = 0.97 |
| Maximum alpha fraction for rectangular shapes. | |
| constexpr double | TRAP_ALFMAX = 0.98 |
| Maximum alpha fraction for trapezoidal shapes. | |
| constexpr int | N_TRANSECT_TBL = 51 |
| Transect discretization table size. | |
| constexpr int | MAX_SHAPES = 26 |
| Maximum number of cross-section shape types. | |
| constexpr int | N_FLOW_CLASSES = 7 |
| Number of flow classification bins. | |
| constexpr int | MAX_PAST_RAIN = 48 |
| Maximum past rain hours tracked per gage. | |
| constexpr int | N_TIME_BINS = 5 |
| Number of time step histogram bins. | |
| constexpr int | DATE_DELTA = 693594 |
|
constexpr |
Delphi-style date offset used by legacy datetime encoding.
|
constexpr |
|
constexpr |
|
constexpr |
EXTRAN surcharge crown cutoff fraction (depth/full_depth). Above this, the Preissmann slot or surcharge algorithm activates.
|
constexpr |
Feet per inch.
|
constexpr |
|
constexpr |
|
constexpr |
Inches per foot.
|
constexpr |
1.0 / sqrt(GRAVITY) — multiply instead of divide in Froude computation.
|
constexpr |
Maximum past rain hours tracked per gage.
|
constexpr |
Maximum number of cross-section shape types.
|
constexpr |
Maximum conduit velocity (ft/s) — prevents numerical blowup.
|
constexpr |
|
constexpr |
Minimum elevation drop for conduit slope computation (ft).
|
constexpr |
Minimum orifice/weir flow threshold.
|
constexpr |
Default minimum surface area (ft²) — approximately a 4-ft diameter manhole.
|
constexpr |
Absolute minimum routing timestep (s).
|
constexpr |
Number of flow classification bins.
|
constexpr |
Number of time step histogram bins.
|
constexpr |
Transect discretization table size.
|
constexpr |
|
constexpr |
|
constexpr |
Pi.
|
constexpr |
Maximum alpha fraction for rectangular shapes.
|
constexpr |
Seconds per day.
|
constexpr |
Preissmann slot crown cutoff fraction.
|
constexpr |
Preissmann slot width factor (slot_width = y_full * this factor).
|
constexpr |
sqrt(GRAVITY) — precomputed to avoid per-element std::sqrt in Froude calc.
|
constexpr |
Small positive number for underflow protection.
|
constexpr |
Maximum alpha fraction for trapezoidal shapes.
|
constexpr |
Kinematic viscosity of water at 20°C (ft²/sec).