![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
Namespaces | |
| namespace | detail |
Functions | |
| bool | hasClosedForm (int type) |
| Identify shapes with an analytic area/width and direct or quadrature perimeter here. | |
| bool | isPolynomialOpen (int type) |
| Identify open sections represented by quadratic area and linear perimeter. | |
| double | areaOfDepth (const XSectParams &xs, double h) |
| Evaluate per-barrel flow area for the FV closure builder. | |
| double | widthOfDepth (const XSectParams &xs, double h) |
| Evaluate per-barrel top width including the invert boundary value. | |
| double | perimeterOfDepth (const XSectParams &xs, double h) |
| Evaluate per-barrel wetted perimeter for FV geometry sampling. | |
| double | hydRadOfDepth (const XSectParams &xs, double h) |
| Evaluate per-barrel hydraulic radius for the FV closure builder. | |
Variables | |
| constexpr double | kPi = 3.14159265358979323846 |
| constexpr double | kRectAlfMax = 0.97 |
|
inline |
Evaluate per-barrel flow area for the FV closure builder.
Uses exact analytic formulas for supported primitives; all other shapes dispatch to the legacy evaluator using the shape-defining profiles. Requires valid supported non-DUMMY geometry for fallback. No slot or barrel multiplier is included.
| [in] | xs | Borrowed initialized per-barrel native-ft geometry with positive y_full and valid shape coefficients/profile tables. No pointers are retained. |
| [in] | h | Finite depth in ft; values above y_full are clamped before geometry evaluation. |
|
inline |
Identify shapes with an analytic area/width and direct or quadrature perimeter here.
| [in] | type | Kernel XSectShape numeric identifier; not the storage XsectShape numbering. |
|
inline |
Evaluate per-barrel hydraulic radius for the FV closure builder.
Analytic shapes use area/perimeter from this header. Other shapes return the legacy hydraulic radius directly, preserving composite transect conveyance rather than substituting a geometric perimeter. No slot/barrel scaling is included.
| [in] | xs | Borrowed initialized per-barrel native-ft geometry with positive y_full and valid shape coefficients/profile tables. No pointers are retained. |
| [in] | h | Finite depth in ft; values above y_full are clamped before geometry evaluation. |
|
inline |
Identify open sections represented by quadratic area and linear perimeter.
| [in] | type | Kernel XSectShape numeric identifier. |
|
inline |
Evaluate per-barrel wetted perimeter for FV geometry sampling.
Closed rectangles ramp the roof contribution over the final 3 percent of full area. Filled circles include the flat sediment surface; open rectangles honor ignored-side count. POWERFUNC uses adaptive side-arc integration plus a tiny-invert chord approximation. Other non-analytic shapes use legacy A/R, returning zero if R<=0. No numerical status is reported.
| [in] | xs | Borrowed initialized per-barrel native-ft geometry with positive y_full and valid shape coefficients/profile tables. No pointers are retained. |
| [in] | h | Finite depth in ft; values above y_full are clamped before geometry evaluation. |
|
inline |
Evaluate per-barrel top width including the invert boundary value.
Rectangles retain wall width at the crown and invert. Circular crown width is zero; filled-circular invert width is the sediment chord. Unsupported analytic shapes use the legacy evaluator. Slot extension and barrel factors are added by the mesh builder.
| [in] | xs | Borrowed initialized per-barrel native-ft geometry with positive y_full and valid shape coefficients/profile tables. No pointers are retained. |
| [in] | h | Finite depth in ft; values above y_full are clamped before geometry evaluation. |
|
inlineconstexpr |
|
inlineconstexpr |
Legacy RECT_ALFMAX (xsect.c): the filling fraction above which a closed rectangle's wetted perimeter is ramped toward the full-pipe value, so R(h) reaches r_full continuously instead of jumping at the crown.