#include <Snow.hpp>
|
| void | init (int n_subcatch) |
| |
| void | execute (SimulationContext &ctx, double dt, double temp, double wind, double rainfall, double gamma=0.0, double ea=0.0) |
| | Compute snowmelt for all subcatchments (batch).
|
| |
| void | setMeltCoeffs (int day_of_year) |
| | Update seasonal melt coefficients based on day of year.
|
| |
| void | plowSnow (SimulationContext &ctx, double dt, double snowfall) |
| | Snow plowing — redistribute excess snow between subareas.
|
| |
| SnowSoA & | state () |
| |
◆ execute()
| void openswmm::snow::SnowSolver::execute |
( |
SimulationContext & |
ctx, |
|
|
double |
dt, |
|
|
double |
temp, |
|
|
double |
wind, |
|
|
double |
rainfall, |
|
|
double |
gamma = 0.0, |
|
|
double |
ea = 0.0 |
|
) |
| |
Compute snowmelt for all subcatchments (batch).
For each subcatchment × subarea:
- Batch ATI update (vectorisable)
- Batch cold content update (vectorisable)
- Batch degree-day or rain-on-snow melt (vectorisable)
- Batch snow accumulation from snowfall (vectorisable)
- Batch free water routing (vectorisable)
- Parameters
-
| ctx | Simulation context. |
| dt | Timestep (seconds). |
| temp | Air temperature (deg F, scalar — broadcast). |
| wind | Wind speed (mph, scalar — broadcast). |
| rainfall | Current rainfall rate (ft/sec, scalar — broadcast). |
| gamma | Psychrometric constant from climate (deg F^-1). |
| ea | Saturation vapor pressure from climate (in Hg). |
◆ init()
| void openswmm::snow::SnowSolver::init |
( |
int |
n_subcatch | ) |
|
◆ plowSnow()
| void openswmm::snow::SnowSolver::plowSnow |
( |
SimulationContext & |
ctx, |
|
|
double |
dt, |
|
|
double |
snowfall |
|
) |
| |
Snow plowing — redistribute excess snow between subareas.
- Parameters
-
| ctx | Simulation context (for subcatchment areas). |
| dt | Timestep (seconds). |
| snowfall | Snowfall rate (ft/sec). |
- Note
- Legacy reference: snow.c — snow_plowSnow()
◆ setMeltCoeffs()
| void openswmm::snow::SnowSolver::setMeltCoeffs |
( |
int |
day_of_year | ) |
|
Update seasonal melt coefficients based on day of year.
- Parameters
-
| day_of_year | Day of year (1-365). |
- Note
- Legacy reference: snow.c — snow_setMeltCoeffs()
◆ state()
| SnowSoA & openswmm::snow::SnowSolver::state |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following files:
- /home/runner/work/openswmm.engine/openswmm.engine/src/engine/hydrology/Snow.hpp
- /home/runner/work/openswmm.engine/openswmm.engine/src/engine/hydrology/Snow.cpp