OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
inlet.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------
2// inlet.h
3//
4// Project: EPA SWMM5
5// Version: 5.2
6// Date: 11/01/21 (Build 5.2.0)
7// Author: L. Rossman
8//
9// Street/Channel Inlet Functions
10//
11//-----------------------------------------------------------------------------
12
22
23#ifndef INLET_H
24#define INLET_H
25
26typedef struct TInlet TInlet;
27
28int inlet_create(int nInlets);
29void inlet_delete();
30int inlet_readDesignParams(char* tok[], int ntoks);
31int inlet_readUsageParams(char* tok[], int ntoks);
32void inlet_validate();
33
34void inlet_findCapturedFlows(double tStep);
37
39double inlet_capturedFlow(int link);
40
41#endif
void inlet_delete()
Frees all memory allocated for inlet analysis.
Definition inlet.c:304
int inlet_readDesignParams(char *tok[], int ntoks)
Extracts a set of inlet design parameters from a tokenized line of the [INLETS] section of a SWMM inp...
Definition inlet.c:330
double inlet_capturedFlow(int link)
Gets the current flow captured by an inlet.
Definition inlet.c:764
int inlet_readUsageParams(char *tok[], int ntoks)
Extracts inlet usage parameters from a tokenized line of the [INLET_USAGE] section of a SWMM input fi...
Definition inlet.c:379
void inlet_adjustQualInflows()
Adjusts accumulated flow rates and pollutant mass inflows at each inlet's bypass and capture nodes af...
Definition inlet.c:636
void inlet_findCapturedFlows(double tStep)
Computes flow captured by each inlet and adjusts the lateral flows of the inlet's bypass and capture ...
Definition inlet.c:545
void inlet_writeStatsReport()
Writes table of street & inlet flow statistics to SWMM's report file.
Definition inlet.c:739
void inlet_adjustQualOutflows()
Adjusts mass balance totals after a complete routing step has been taken so as not to treat inlet tra...
Definition inlet.c:682
void inlet_validate()
Checks that inlets have been assigned to conduits with proper cross section shapes and counts the num...
Definition inlet.c:466
int inlet_create(int nInlets)
Allocate and initialize inlet designs and per-node inlet-flow storage.
Definition inlet.c:266
Definition inlet.c:94