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

Section handlers for [CONTROLS] and [REPORT]. More...

#include "ControlsHandler.hpp"
#include "../Tokenizer.hpp"
#include "../../core/SimulationContext.hpp"
#include "../../data/InfraData.hpp"
#include <string>
Include dependency graph for ControlsHandler.cpp:

Namespaces

namespace  openswmm
 
namespace  openswmm::input
 

Functions

void openswmm::input::handle_controls (SimulationContext &ctx, const std::vector< std::string > &lines)
 
void openswmm::input::handle_report (SimulationContext &ctx, const std::vector< std::string > &lines)
 

Detailed Description

Section handlers for [CONTROLS] and [REPORT].

[CONTROLS] format

RULE R1
IF NODE J1 DEPTH > 5.0
THEN PUMP P1 STATUS = ON
ELSE PUMP P1 STATUS = OFF
PRIORITY 5
RULE R2
IF SIMULATION TIME > 3600
THEN ORIFICE O1 SETTING = 0.5
@ ORIFICE
Orifice link.
Definition enums.h:133
@ PUMP
Pump link.
Definition enums.h:131
@ NODE
Node.
Definition enums.h:59

[REPORT] format

SUBCATCHMENTS ALL
NODES ALL
LINKS ALL
INPUT NO
CONTINUITY YES
FLOWSTATS YES
CONTROLS NO
@ ALL
All option.
Definition enums.h:1222
@ NO
No option.
Definition enums.h:1208
@ YES
Yes option.
Definition enums.h:1210
See also
Legacy reference: src/solver/input.c — readControl(), readReport()
Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License\n MIT License