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

Functions

OPENSWMM_KERNEL_FN double faceDischarge (double hf, double slope, double nf, double s_eps) noexcept
 
OPENSWMM_KERNEL_FN double cellDiffusiveDt (double alpha, double lchar, double h, double n, double slope_abs, double s_eps) noexcept
 

Function Documentation

◆ cellDiffusiveDt()

OPENSWMM_KERNEL_FN double openswmm::twoD::diffusive::cellDiffusiveDt ( double alpha,
double lchar,
double h,
double n,
double slope_abs,
double s_eps )
noexcept

Explicit-diffusion step bound for a cell of characteristic length L, depth h, Manning n and the largest face slope |S| among its faces (floored at s_eps): Δt = α · L² · n · √S / (4 · h^{5/3}). Returns a huge value for a dry cell.

◆ faceDischarge()

OPENSWMM_KERNEL_FN double openswmm::twoD::diffusive::faceDischarge ( double hf,
double slope,
double nf,
double s_eps )
noexcept

Manning quasi-steady face discharge (m²/s, positive L→R) for face depth hf, surface slope S = (η_R − η_L)·inv_dx (positive ⇒ flow R→L), face Manning n_f and slope floor s_eps.