SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
wateragesourcesdialog.h File Reference

Editor for [WATER_AGE_SOURCES] — per-pathway initial water ages (GUI plan §3.4 / G3g, subplan Y3). More...

#include <openswmm/engine/openswmm_engine.h>
#include <QDialog>
Include dependency graph for wateragesourcesdialog.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  OpenSWMMVis::WaterAgeSourcesDialog
 Non-modal editor for the water-age source table. More...
 

Namespaces

namespace  OpenSWMMVis
 

Detailed Description

Editor for [WATER_AGE_SOURCES] — per-pathway initial water ages (GUI plan §3.4 / G3g, subplan Y3).

Water age enters the model at seven source pathways (rainfall, DWF, groundwater, RDII, external inflow, routing-interface file, and the initial network state). Each carries a GLOBAL age in hours, and the DWF / external-inflow pathways additionally take per-NODE overrides — the scope rule the engine's parser enforces and swmm_water_age_set_override mirrors.

Negative ages are legal (engine D-NS1): a negative source age extracts age-volume, making water read younger, clamped so age never falls below zero. The editor therefore accepts negatives and says what they mean rather than validating them away.

The engine handle IS the model (GUI plan §2): edits are read from and written to openswmm_water_age.h directly, with no intermediate registry. The dialog is deliberately dependency-light — Qt Widgets plus that one engine ABI — which is what lets a test link and drive it (the ClimatologyDialog precedent; contrast SimulationOptionsDialog, whose link closure no test can satisfy, tests/gui/CMakeLists.txt:1996).

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