OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
openswmm::twoD::GwUnitFactors Struct Reference

Project-unit → SI multipliers for the four kinds of aquifer number. More...

#include <SubsurfaceData.hpp>

Collaboration diagram for openswmm::twoD::GwUnitFactors:

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²
 

Detailed Description

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.)

Member Data Documentation

◆ area

double openswmm::twoD::GwUnitFactors::area = 1.0

ft² → m², or m² → m²

◆ inv_len

double openswmm::twoD::GwUnitFactors::inv_len = 1.0

1/ft → 1/m, or 1/m → 1/m

◆ length

double openswmm::twoD::GwUnitFactors::length = 1.0

ft → m, or m → m

◆ rate

double openswmm::twoD::GwUnitFactors::rate = 1.0

in/hr → m/s, or mm/hr → m/s


The documentation for this struct was generated from the following file: