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

Functions

int writeInpFile (const SimulationContext &ctx, const std::string &path)
 Write the full model to a SWMM .inp file.
 

Function Documentation

◆ writeInpFile()

int openswmm::inp_writer::writeInpFile ( const SimulationContext ctx,
const std::string &  path 
)

Write the full model to a SWMM .inp file.

Sections written (in order): [TITLE], [OPTIONS], [RAINGAGES], [SUBCATCHMENTS], [SUBAREAS], [INFILTRATION], [JUNCTIONS], [OUTFALLS], [STORAGE], [DIVIDERS], [CONDUITS], [PUMPS], [ORIFICES], [WEIRS], [OUTLETS], [XSECTIONS], [TRANSECTS], [LOSSES], [CONTROLS], [INFLOWS], [DWF], [RDII], [POLLUTANTS], [LANDUSES], [BUILDUP], [WASHOFF], [TREATMENT], [TIMESERIES], [CURVES], [PATTERNS], [USER_FLAGS], [PLUGINS], [COORDINATES], [MAP]

Parameters
ctxSimulation context with all model data.
pathOutput file path.
Returns
0 on success, -1 on file error.
Here is the call graph for this function:
Here is the caller graph for this function: