![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
Project-unit → SI multipliers for the four kinds of aquifer number. More...
#include <SubsurfaceData.hpp>
Public Attributes | |
| double | length = 1.0 |
| ft → m, or m → m | |
| double | rate = 1.0 |
| in/hr → m/s, or mm/hr → m/s | |
| double | inv_len = 1.0 |
| 1/ft → 1/m, or 1/m → 1/m | |
| double | area = 1.0 |
| ft² → m², or m² → m² | |
Project-unit → SI multipliers for the four kinds of aquifer number.
The authored SubsurfaceConfig is never converted in place. It stays in the user's units for its whole life, and the SI values exist only in SubsurfaceState, where the kernel needs them. That is what makes the writer trivial and correct: it writes the rows it parsed, unchanged, so a load-and-save with no edits is byte-identical and no double-conversion is reachable. (An earlier shape converted the config and let the writer invert; a hotstart re-initialize then converted twice and shrank every aquifer by 3.28×. The state/config split removes the bug rather than guarding it with a flag.)
| double openswmm::twoD::GwUnitFactors::area = 1.0 |
ft² → m², or m² → m²
| double openswmm::twoD::GwUnitFactors::inv_len = 1.0 |
1/ft → 1/m, or 1/m → 1/m
| double openswmm::twoD::GwUnitFactors::length = 1.0 |
ft → m, or m → m
| double openswmm::twoD::GwUnitFactors::rate = 1.0 |
in/hr → m/s, or mm/hr → m/s