OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
node.c File Reference
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "headers.h"
#include "findroot.h"
Include dependency graph for node.c:

Classes

struct  TStorageVol
 

Macros

#define _CRT_SECURE_NO_DEPRECATE
 

Functions

int node_readParams (int nodeIndex, int type, int k, char *tok[], int ntoks)
 Reads node properties from a tokenized line of input.
 
void node_validate (int nodeIndex)
 Validates a node's properties.
 
void node_initState (int nodeIndex)
 Initializes a node's state variables at start of simulation.
 
void node_setOldHydState (int nodeIndex)
 Replaces a node's old hydraulic state values with new ones.
 
void node_setOldQualState (int nodeIndex)
 Replaces a node's old water quality state values with new ones.
 
void node_initFlows (int nodeIndex, double tStep)
 Initializes a node's inflow/outflow/overflow at start of time step.
 
double node_getDepth (int nodeIndex, double v)
 Computes a node's water depth from its volume.
 
double node_getVolume (int nodeIndex, double depth)
 Computes volume stored at a node from its water depth.
 
double node_getSurfArea (int j, double d)
 Computes surface area of water stored at a node from water depth.
 
double node_getOutflow (int nodeIndex, int linkIndex)
 Computes outflow from node available for inflow into a link.
 
double node_getMaxOutflow (int nodeIndex, double q, double tStep)
 Limits outflow rate from a node with storage volume.
 
double node_getSystemOutflow (int j, int *isFlooded)
 Computes flow rate at outfalls and flooded nodes.
 
void node_getResults (int nodeIndex, double wt, float x[])
 Computes weighted average of old and new results at a node.
 
void node_setOutletDepth (int j, double yNorm, double yCrit, double z)
 Sets water depth at a node that serves as an outlet point.
 
double node_getPondedArea (int nodeIndex, double depth)
 Computes surface area of water at a node based on depth.
 
double node_getLosses (int nodeIndex, double tStep)
 Computes the rates of evaporation and infiltration over a given time step for a node.
 

Macro Definition Documentation

◆ _CRT_SECURE_NO_DEPRECATE

#define _CRT_SECURE_NO_DEPRECATE