![]() |
OpenSWMM Engine
6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
|
Namespaces | |
| namespace | equilibrium |
| namespace | force_restore |
Functions | |
| int | equilibriumStep (double dt, double *input, double *site, double *state, double *parameters, double *output, double dust, double fresh, double cv=.2, double cir=.5, double fraction=-1) |
| Run one equilibrium-temperature UEB reference interval with padded arrays. | |
| int | forceRestoreStep (double dt, double *input, double *site, double *state, double *temperatures, double *averages, int count, double *parameters, double *output, double dust, double surface_mean, double bulk_mean, double cv=.2, double cir=.5, double fraction=-1) |
| Run one modified-force-restore UEB reference interval with padded arrays. | |
| int openswmm::surface::ueb_reference::equilibriumStep | ( | double | dt, |
| double * | input, | ||
| double * | site, | ||
| double * | state, | ||
| double * | parameters, | ||
| double * | output, | ||
| double | dust, | ||
| double | fresh, | ||
| double | cv = .2, | ||
| double | cir = .5, | ||
| double | fraction = -1 ) |
Run one equilibrium-temperature UEB reference interval with padded arrays.
| dt | Positive duration hours, already bounded/qualified by the point adapter. | |
| input | Borrowed meteorology buffer pointing at logical input[8]: seven values (Celsius air temperature, precipitation m/h, wind m/s, humidity fraction, shortwave and longwave kJ/(m2 h), cosine). Eight allocated leading padding doubles are required. | |
| site | Borrowed five values starting after one allocated padding double: forest fraction, effective snow drift/catch, pressure Pa, ground heat kJ/(m2 h), optical extinction depth m. Caller guarantees finite physical ranges. | |
| [in,out] | state | Five native values after one allocated padding double: energy kJ/m2, SWE m, dimensionless optical age, current/total refreezing depths m. |
| parameters | Borrowed formulation-specific parameter table after one allocated padding double; layout must match the reference method and point adapter. | |
| [out] | output | Writable diagnostic/flux table after one allocated padding double. Slots 1..13: rain/snow m/h, albedo, sensible/latent kJ/(m2 h), signed sublimation m/h, liquid m/h, outgoing melt/net energy kJ/(m2 h), net water m/h, bulk/surface Celsius, net radiation kJ/(m2 h). Fluxes are rates, not integrated interval amounts. |
| dust | Dimensionless optical-age impurity contribution, finite nonnegative. | |
| fresh | New-snow reset depth m; see formulation-specific behavior. | |
| cv | Visible-band fractional optical-age response in [0,1]. | |
| cir | Near-infrared fractional optical-age response in [0,1]. | |
| fraction | -1 uses temperature rain/snow partition; [0,1] prescribes snow share. |
| int openswmm::surface::ueb_reference::forceRestoreStep | ( | double | dt, |
| double * | input, | ||
| double * | site, | ||
| double * | state, | ||
| double * | temperatures, | ||
| double * | averages, | ||
| int | count, | ||
| double * | parameters, | ||
| double * | output, | ||
| double | dust, | ||
| double | surface_mean, | ||
| double | bulk_mean, | ||
| double | cv = .2, | ||
| double | cir = .5, | ||
| double | fraction = -1 ) |
Run one modified-force-restore UEB reference interval with padded arrays.
| dt | Positive duration hours, already bounded/qualified by the point adapter. | |
| input | Borrowed meteorology buffer pointing at logical input[8]: seven values (Celsius air temperature, precipitation m/h, wind m/s, humidity fraction, shortwave and longwave kJ/(m2 h), cosine). Eight allocated leading padding doubles are required. | |
| site | Borrowed five values starting after one allocated padding double: forest fraction, effective snow drift/catch, pressure Pa, ground heat kJ/(m2 h), optical extinction depth m. Caller guarantees finite physical ranges. | |
| [in,out] | state | Five native values after one allocated padding double: energy kJ/m2, SWE m, dimensionless optical age, current/total refreezing depths m. |
| parameters | Borrowed formulation-specific parameter table after one allocated padding double; layout must match the reference method and point adapter. | |
| [out] | output | Writable diagnostic/flux table after one allocated padding double. Slots 1..13: rain/snow m/h, albedo, sensible/latent kJ/(m2 h), signed sublimation m/h, liquid m/h, outgoing melt/net energy kJ/(m2 h), net water m/h, bulk/surface Celsius, net radiation kJ/(m2 h). Fluxes are rates, not integrated interval amounts. |
| dust | Dimensionless optical-age impurity contribution, finite nonnegative. | |
| cv | Visible-band fractional optical-age response in [0,1]. | |
| cir | Near-infrared fractional optical-age response in [0,1]. | |
| fraction | -1 uses temperature rain/snow partition; [0,1] prescribes snow share. |
| [in,out] | temperatures | Chronological surface Celsius history after one allocated padding double; count entries, shifted and appended by the reference. |
| [in,out] | averages | Same-sized/padded bulk Celsius history, similarly updated. |
| count | Positive history entry count; both arrays must provide count values. | |
| surface_mean | Duration-weighted preceding 24-hour surface Celsius supplied by the point owner, not recomputed from potentially irregular history samples. | |
| bulk_mean | Corresponding duration-weighted bulk Celsius. Parameters have 22 entries in the exact ueb::step order; output needs 14 entries, with slot 14 surface melt m/h. Uses method flag four, separate incoming radiation and evolving albedo. Parameter slot 21 controls optical age reset (zero resets on any snowfall). All five inventory entries and both history buffers can change. Caller supplies private candidates; these wrappers do not interpret diagnostic return as failure. |