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

RDII interface file — use/save pre-computed RDII inflows. More...

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

Go to the source code of this file.

Classes

class  openswmm::rdii_iface::RdiiInterfaceFile
 RDII interface file manager (USE = read/override, SAVE = export). More...
 

Namespaces

namespace  openswmm
 
namespace  openswmm::rdii_iface
 

Detailed Description

RDII interface file — use/save pre-computed RDII inflows.

[FILES] USE RDII <file> bypasses the internal unit-hydrograph computation entirely (legacy rdii_openRdii() skips createRdiiFile() when Frdii.mode == USE_FILE); the file's flows become the RDII inflows during routing. SAVE RDII <file> exports the internally computed RDII flows.

Two legacy formats are supported for reading, auto-detected:

  • Binary ("SWMM5-RDII" stamp): header = stamp, RdiiStep (int32), NumRdiiNodes (int32), node indices (int32 × N); records = date (float64 OADate) + flows (float32 × N, cfs).
  • Text ("SWMM5 Interface File"): title, step, constituent count, "FLOW <units>", node count, node names, headings, then rows name yr mon day hr min sec flow (flow in declared units).

Writing uses the binary format (legacy SAVE parity).

Lookup is step-aligned, NOT interpolated: a record's flows apply on [date, date + step) — legacy rdii_getNumRdiiFlows().

Note
Legacy reference: src/legacy/engine/rdii.c
Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n MIT License