OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
RunoffInterface.hpp File Reference

Runoff interface file — save/load pre-computed runoff results. More...

#include <string>
#include <vector>
#include <cstdio>
Include dependency graph for RunoffInterface.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openswmm::runoff_iface::RunoffInterfaceFile
 Runoff interface file manager. More...
 

Namespaces

namespace  openswmm
 
namespace  openswmm::runoff_iface
 

Detailed Description

Runoff interface file — save/load pre-computed runoff results.

Binary file format (matching legacy runoff.c): Header:

  • File stamp: "SWMM5-RUNOFF" (12 bytes)
  • nSubcatch (int32)
  • nPollut (int32)
  • flowUnits (int32)
  • maxSteps (int32, updated at close) Per timestep:
  • tStep (float32, seconds)
  • Per subcatchment:
    • rainfall, snow_depth, evap, infil, runoff, gw_flow, gw_elev, soil_moist (8 float32)
    • washoff concentration per pollutant (nPollut float32)
Note
Legacy reference: src/legacy/engine/runoff.c
Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n MIT License