OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
Global Conveyance System Inflow Methods

Global conveyance system inflow methods. More...

Collaboration diagram for Global Conveyance System Inflow Methods:

Functions

int inflow_readExtInflow (char *tok[], int ntoks)
 Reads parameters of a direct external inflow from a line of input.
 
int inflow_readDwfInflow (char *tok[], int ntoks)
 Reads dry weather inflow parameters from line of input data.
 
int inflow_readDwfPattern (char *tok[], int ntoks)
 Reads values of a time pattern from a line of input data.
 
int inflow_setExtInflow (int nodeIndex, int param, int type, int tseries, int basePat, double cf, double baseline, double sf)
 This function assigns property values to the inflow object.
 
void inflow_initDwfInflow (TDwfInflow *inflow)
 Initialzes a dry weather inflow by ordering its time patterns.
 
void inflow_initDwfPattern (int patternIndex)
 Initialzes a dry weather inflow time pattern.
 
double inflow_getExtInflow (TExtInflow *inflow, DateTime aDate)
 Retrieves the value of an external inflow at a specific date and time.
 
double inflow_getDwfInflow (TDwfInflow *inflow, int month, int day, int hour)
 Computes dry weather inflow value at a specific point in time.
 
void inflow_deleteExtInflows (int nodeIndex)
 Deletes all time series inflow data for a node.
 
void inflow_deleteDwfInflows (int nodeIndex)
 Deletes all dry weather inflow data for a node.
 

Detailed Description

Global conveyance system inflow methods.

Function Documentation

◆ inflow_deleteDwfInflows()

void inflow_deleteDwfInflows ( int nodeIndex)

Deletes all dry weather inflow data for a node.

Parameters
[in]nodeIndexNode index

Deletes all dry weather inflow data for a node.

Implementation arguments
  • nodeIndex (in): Valid index into Node whose dwfInflow chain is exclusively owned.
Postcondition
Every chain element is freed. Node[nodeIndex].dwfInflow itself is not reset; the caller must not traverse it or delete the chain again.
Note
Intended for project cleanup, not concurrent use with inflow evaluation.

◆ inflow_deleteExtInflows()

void inflow_deleteExtInflows ( int nodeIndex)

Deletes all time series inflow data for a node.

Parameters
[in]nodeIndexNode index
Implementation arguments
  • nodeIndex (in): Node index

◆ inflow_getDwfInflow()

double inflow_getDwfInflow ( TDwfInflow * inflow,
int month,
int day,
int hour )

Computes dry weather inflow value at a specific point in time.

Parameters
[in]inflowDry weather inflow data structure
[in]monthCurrent month of year for the simulation
[in]dayCurrent day of month for the simulation
[in]hourCurrent hour of day for the simulation
Returns
Returns dry weather inflow value
Implementation arguments
  • inflow (borrowed/value): Dry weather inflow data structure.
  • month (in): Current month of year of simulation.
  • day (in): Current day of week of simulation.
  • hour (in): Current hour of day of simulation.
Returns
Value of dry weather inflow parameter.
Here is the call graph for this function:

◆ inflow_getExtInflow()

double inflow_getExtInflow ( TExtInflow * inflow,
DateTime aDate )

Retrieves the value of an external inflow at a specific date and time.

Parameters
[in]inflowExternal inflow data structure
[in]aDateCurrent simulation date/time
Returns
Returns current value of external inflow parameter
Implementation arguments
  • inflow (in): External inflow data structure
  • aDate (in): Current simulation date/time
    Returns
    Returns current value of external inflow parameter
Here is the call graph for this function:

◆ inflow_initDwfInflow()

void inflow_initDwfInflow ( TDwfInflow * inflow)

Initialzes a dry weather inflow by ordering its time patterns.

Parameters
[in]inflowDry weather inflow object

This function sorts the user-supplied time patterns for a dry weather inflow in the order of the PatternType enumeration (monthly, daily, weekday hourly, weekend hourly) to help speed up pattern processing.

Implementation arguments
  • inflow (in): Dry weather inflow object

This function sorts the user-supplied time patterns for a dry weather inflow in the order of the PatternType enumeration (monthly, daily, weekday hourly, weekend hourly) to help speed up pattern processing.

Here is the caller graph for this function:

◆ inflow_initDwfPattern()

void inflow_initDwfPattern ( int patternIndex)

Initialzes a dry weather inflow time pattern.

Parameters
[in]patternIndexTime pattern index
Implementation arguments
  • patternIndex (in): Time pattern index

◆ inflow_readDwfInflow()

int inflow_readDwfInflow ( char * tok[],
int ntoks )

Reads dry weather inflow parameters from line of input data.

Parameters
[in]tokArray of string tokens
[in]ntoksNumber of tokens
Returns
Error code

Format of data line is: nodeID FLOW/pollutID avgValue (pattern1 pattern2 ... pattern4)

Implementation arguments
  • tok (in): Array of string tokens
  • ntoks (in): Number of tokens
    Returns
    Error code
    Format of data line is: nodeID FLOW/pollutID avgValue (pattern1 pattern2 ... pattern4)
Here is the call graph for this function:

◆ inflow_readDwfPattern()

int inflow_readDwfPattern ( char * tok[],
int ntoks )

Reads values of a time pattern from a line of input data.

Parameters
[in]tokArray of string tokens
[in]ntoksNumber of tokens
Returns
Error code

Format of data line is: patternID patternType value(1) value(2) ... patternID value(n) value(n+1) .... (for continuation lines)

Implementation arguments
  • tok (in): Array of string tokens
  • ntoks (in): Number of tokens
    Returns
    Error code
    Format of data line is: patternID patternType value(1) value(2) ... patternID value(n) value(n+1) .... (for continuation lines)
Here is the call graph for this function:

◆ inflow_readExtInflow()

int inflow_readExtInflow ( char * tok[],
int ntoks )

Reads parameters of a direct external inflow from a line of input.

Parameters
[in]tokArray of string tokens
[in]ntoksNumber of tokens
Returns
Error code

Data formats of data line are: nodeID FLOW tSeriesID (FLOW 1.0 scaleFactor baseline basePat) nodeID pollutID tSeriesID (CONCEN/MASS unitsFactor scaleFactor baseline basePat)

Implementation arguments
  • tok (in): Array of string tokens
  • ntoks (in): Number of tokens
    Returns
    Error code
    Data formats of data line are: nodeID FLOW tSeriesID (FLOW 1.0 scaleFactor baseline basePat) nodeID pollutID tSeriesID (CONCEN/MASS unitsFactor scaleFactor baseline basePat)
Here is the call graph for this function:

◆ inflow_setExtInflow()

int inflow_setExtInflow ( int nodeIndex,
int param,
int type,
int tseries,
int basePat,
double cf,
double baseline,
double sf )

This function assigns property values to the inflow object.

Parameters
[in]nodeIndexNode index
[in]paramParameter code
[in]typeInflow type code
[in]tseriesTime series index
[in]basePatBase pattern index
[in]cfConversion factor
[in]baselineBaseline value
[in]sfScale factor
Returns
Error code
Implementation arguments
  • nodeIndex (in): Node index
  • param (in): Parameter code
  • type (in): Inflow type code
  • tseries (in): Time series index
  • basePat (in): Base pattern index
  • cf (in): Conversion factor
  • baseline (in): Baseline value
  • sf (in): Scale factor
    Returns
    Error code
Here is the call graph for this function:
Here is the caller graph for this function: