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

Section handlers for [SUBCATCHMENTS], [SUBAREAS], and [RAINGAGES]. More...

#include "CatchmentHandler.hpp"
#include "../Tokenizer.hpp"
#include "../../core/SimulationContext.hpp"
#include "../../data/SubcatchData.hpp"
#include "../../data/GageData.hpp"
#include "../../core/charconv_compat.hpp"
#include <charconv>
#include <string>
Include dependency graph for CatchmentHandler.cpp:

Namespaces

namespace  openswmm
 
namespace  openswmm::input
 

Functions

void openswmm::input::handle_subcatchments (SimulationContext &ctx, const std::vector< std::string > &lines)
 Parse [SUBCATCHMENTS] into SubcatchData + subcatch_names.
 
void openswmm::input::handle_subareas (SimulationContext &ctx, const std::vector< std::string > &lines)
 Parse [SUBAREAS] — Manning's n + depression storage for each subcatch.
 
void openswmm::input::handle_infiltration (SimulationContext &ctx, const std::vector< std::string > &lines)
 Parse [INFILTRATION] — Horton/Green-Ampt/CN params per subcatch.
 
void openswmm::input::handle_raingages (SimulationContext &ctx, const std::vector< std::string > &lines)
 Parse [RAINGAGES] into GageData + gage_names.
 

Detailed Description

Section handlers for [SUBCATCHMENTS], [SUBAREAS], and [RAINGAGES].

[SUBCATCHMENTS] format

;; Name Gage Outlet Area %Imperv Width %Slope CurbLen SnowPack
S1 RG1 J1 10.0 50.0 100.0 0.5 0.0
EXTERN TGage * Gage
Definition globals.h:150
EXTERN TOutlet * Outlet
Definition globals.h:163

[SUBAREAS] format

;; Subcatch N-Imperv N-Perv S-Imperv S-Perv PctZero RouteTo PctRouted
S1 0.013 0.1 0.05 0.1 25 OUTLET
EXTERN TSubcatch * Subcatch
Definition globals.h:151
@ OUTLET
Outlet link.
Definition enums.h:137

[RAINGAGES] format

;; Name Format Interval SCF Source
RG1 VOLUME 0:15 1.0 TIMESERIES RAIN1
RG2 VOLUME 0:15 1.0 FILE "rain.csv:EAST_GAGE"
@ VOLUME
Volume.
Definition enums.h:309
int Interval
Definition rain.c:75
See also
Legacy reference: src/solver/input.c — readSubcatch(), readGage()
Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n MIT License