![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
Functions | |
| OPENSWMM_POND_HD double | area (double x, double a_eq, double band) |
| Pond surface area at depth x above the rim. | |
| OPENSWMM_POND_HD double | volume (double x, double a_eq, double band) |
| Pond volume held between the rim and depth x above it. | |
| OPENSWMM_POND_HD double | depthForVolume (double v, double a_eq, double band) |
| Depth above the rim at which the pond holds v (inverse of volume()). | |
| OPENSWMM_POND_HD double | equalizeCap (double dh, double window, double a1) |
| Head-equalisation cap on one exchange (the generalised Rubinato Eq. 10 limiter). The 1D head is frozen for the coupling window T while the 2D cell is re-evaluated every substep against its live head, so the only head an exchange can carry past the other within the window is the 1D node's: |Q| ≤ |Δh|·A1/T. (The first form also charged the coupling cell for the whole window, |Δh|/(T(1/A1 + 1/A2)); that scaled the cap with the cell's area and choked the exchange wherever cells are smaller than the structure, while the drain/spill churn it removes is the 1D side's.) Returns the largest admissible |Q|; +∞ when the area or window is unknown. | |
| OPENSWMM_POND_HD double openswmm::twoD::pond::area | ( | double | x, |
| double | a_eq, | ||
| double | band ) |
Pond surface area at depth x above the rim.
| [in] | x | Finite depth above the rim; nonpositive values return zero. |
| [in] | a_eq | Finite nonnegative full pond area, in consistent length units squared. |
| [in] | band | Finite ramp depth in the same length units; nonpositive selects the abrupt legacy step. |
| OPENSWMM_POND_HD double openswmm::twoD::pond::depthForVolume | ( | double | v, |
| double | a_eq, | ||
| double | band ) |
Depth above the rim at which the pond holds v (inverse of volume()).
| [in] | v | Pond volume in consistent cubic length units; nonpositive volume or area returns zero. |
| [in] | a_eq | Finite nonnegative full pond area, in consistent length units squared. |
| [in] | band | Finite ramp depth in the same length units; nonpositive selects the abrupt legacy step. |
| OPENSWMM_POND_HD double openswmm::twoD::pond::equalizeCap | ( | double | dh, |
| double | window, | ||
| double | a1 ) |
Head-equalisation cap on one exchange (the generalised Rubinato Eq. 10 limiter). The 1D head is frozen for the coupling window T while the 2D cell is re-evaluated every substep against its live head, so the only head an exchange can carry past the other within the window is the 1D node's: |Q| ≤ |Δh|·A1/T. (The first form also charged the coupling cell for the whole window, |Δh|/(T(1/A1 + 1/A2)); that scaled the cap with the cell's area and choked the exchange wherever cells are smaller than the structure, while the drain/spill churn it removes is the 1D side's.) Returns the largest admissible |Q|; +∞ when the area or window is unknown.
| [in] | dh | Finite surface-minus-node head difference in consistent length units; sign is ignored. |
| [in] | window | Coupling window in seconds; nonpositive means unavailable. |
| [in] | a1 | Finite effective 1D node area in squared length units; nonpositive means unavailable. |
| OPENSWMM_POND_HD double openswmm::twoD::pond::volume | ( | double | x, |
| double | a_eq, | ||
| double | band ) |
Pond volume held between the rim and depth x above it.
| [in] | x | Finite depth above the rim; nonpositive values return zero. |
| [in] | a_eq | Finite nonnegative full pond area, in consistent length units squared. |
| [in] | band | Finite ramp depth in the same length units; nonpositive selects the abrupt legacy step. |