![]() |
OpenSWMM Engine
6.0.0-alpha.3
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.3)
|
Global unit conversion factors — matching legacy SWMM Ucf[]/Qcf[]. More...
#include <array>Go to the source code of this file.
Classes | |
| struct | openswmm::ucf::DisplayUnits |
Namespaces | |
| namespace | openswmm |
| namespace | openswmm::ucf |
| namespace | openswmm::ucf::detail |
Enumerations | |
| enum | openswmm::ucf::Quantity { openswmm::ucf::RAINFALL = 0 , openswmm::ucf::RAINDEPTH = 1 , openswmm::ucf::EVAPRATE = 2 , openswmm::ucf::LENGTH = 3 , openswmm::ucf::LANDAREA = 4 , openswmm::ucf::VOLUME = 5 , openswmm::ucf::WINDSPEED = 6 , openswmm::ucf::TEMPERATURE = 7 , openswmm::ucf::MASS = 8 , openswmm::ucf::GWFLOW = 9 , openswmm::ucf::FLOW = 10 } |
Functions | |
| constexpr std::array< std::array< double, 2 >, 10 > | openswmm::ucf::detail::makeUcfInv () |
| constexpr std::array< double, 6 > | openswmm::ucf::detail::makeQcfInv () |
| double | openswmm::ucf::UCF (int quantity, const SimulationOptions &opts) |
| Get unit conversion factor for a quantity. | |
| double | openswmm::ucf::UCF_inv (int quantity, const SimulationOptions &opts) |
| Reciprocal of UCF — multiply display by this to get internal units. | |
| int | openswmm::ucf::getUnitSystem (int flow_units) |
| Determine unit system (0=US, 1=SI) from flow units. | |
Variables | |
| constexpr std::array< std::array< double, 2 >, 10 > | openswmm::ucf::Ucf_inv = detail::makeUcfInv() |
| Reciprocal of Ucf[quantity][unit_system] — multiply display by this → internal. | |
| constexpr std::array< double, 6 > | openswmm::ucf::Qcf_inv = detail::makeQcfInv() |
| Reciprocal of Qcf[flow_units] — multiply display flow by this → cfs. | |
| constexpr const char * | openswmm::ucf::FlowUnitWords [6] |
| Legacy FlowUnitWords — index by FlowUnits enum (CFS,GPM,MGD,CMS,LPS,MLD). | |
Global unit conversion factors — matching legacy SWMM Ucf[]/Qcf[].
Provides static UCF() function and quantity enums identical to legacy SWMM's UCF(u) macro / function. All internal computations use ft, ft², ft³, sec as base units. UCF converts from project display units (in/hr, acres, CFS, etc.) to internal units.
Usage: