20#ifndef OPENSWMM_ROUTING_HPP
21#define OPENSWMM_ROUTING_HPP
30struct SimulationContext;
84 double fixed_step,
double courant)
const;
Flow divider node logic — cutoff, overflow, tabular, weir.
Dynamic wave routing solver — batch-oriented St. Venant equations.
Kinematic wave routing solver — batch-oriented design.
Cross-section geometry — unified batch + per-element API.
Top-level routing orchestrator.
Definition Routing.hpp:53
double getAdaptiveStep(const SimulationContext &ctx, double fixed_step, double courant) const
Compute adaptive timestep (DW only).
Definition Routing.cpp:246
const XSectGroups & xsectGroups() const
Access the shape-grouped xsect manager.
Definition Routing.hpp:87
void init(SimulationContext &ctx, RouteModel model)
Initialise the router for the given model.
Definition Routing.cpp:27
int step(SimulationContext &ctx, double dt)
Execute one routing timestep.
Definition Routing.cpp:156
void setDWNumThreads(int n)
Set the DWSolver OpenMP thread count (delegates to DWSolver::setNumThreads).
Definition Routing.hpp:90
Shape-grouped cross-section manager for batch computation.
Definition XSectBatch.hpp:193
Dynamic wave solver — operates on entire link/node system.
Definition DynamicWave.hpp:90
void setNumThreads(int n)
Set the number of OpenMP threads for parallel loops.
Definition DynamicWave.cpp:180
Kinematic wave solver state.
Definition KinematicWave.hpp:58
Definition Controls.cpp:24
@ KINWAVE
Kinematic wave approximation.
@ STEADY
Steady-state (no routing)
@ DYNWAVE
Dynamic wave (full Saint-Venant)
RouteModel
Definition Routing.hpp:36
@ DYNWAVE
Dynamic wave (St. Venant)
Central, reentrant simulation context.
Definition SimulationContext.hpp:141
Definition Divider.hpp:41