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

Classes

struct  LidList
 
struct  LidGroup
 

Macros

#define _CRT_SECURE_NO_DEPRECATE
 
#define ERR_PAVE_LAYER   " - check pavement layer parameters"
 
#define ERR_SOIL_LAYER   " - check soil layer parameters"
 
#define ERR_STOR_LAYER   " - check storage layer parameters"
 
#define ERR_SWALE_SURF   " - check swale surface parameters"
 
#define ERR_GREEN_AMPT   " - check subcatchment Green-Ampt parameters"
 
#define ERR_DRAIN_OFFSET   " - drain offset exceeds storage height"
 
#define ERR_DRAIN_HEADS   " - invalid drain open/closed heads"
 
#define ERR_SWALE_WIDTH   " - invalid swale width"
 

Typedefs

typedef struct LidList TLidList
 
typedef struct LidGroupTLidGroup
 

Enumerations

enum  LidLayerTypes {
  SURF ,
  SOIL ,
  STOR ,
  PAVE ,
  DRAINMAT ,
  DRAIN ,
  REMOVALS
}
 

Functions

void lid_create (int lidCount, int subcatchCount)
 
void lid_delete ()
 
int lid_readProcParams (char *toks[], int ntoks)
 
int lid_readGroupParams (char *toks[], int ntoks)
 
void lid_writeSummary ()
 
void lid_validate ()
 
void lid_initState ()
 
void lid_setOldGroupState (int j)
 
double lid_getPervArea (int j)
 
double lid_getFlowToPerv (int j)
 
double lid_getStoredVolume (int j)
 
double lid_getDrainFlow (int j, int timePeriod)
 
void lid_addDrainLoads (int j, double c[], double tStep)
 
void lid_addDrainRunon (int j)
 
void lid_addDrainInflow (int j, double f)
 
void lid_getRunoff (int j, double tStep)
 
void lid_writeWaterBalance ()
 

Variables

char * LidLayerWords []
 
char * LidTypeWords []
 
double Vevap
 
double Vpevap
 
double Vinfil
 
double VlidInfil
 
double VlidIn
 
double VlidOut
 
double VlidDrain
 
double VlidReturn
 
char HasWetLids
 

Macro Definition Documentation

◆ _CRT_SECURE_NO_DEPRECATE

#define _CRT_SECURE_NO_DEPRECATE

◆ ERR_DRAIN_HEADS

#define ERR_DRAIN_HEADS   " - invalid drain open/closed heads"

◆ ERR_DRAIN_OFFSET

#define ERR_DRAIN_OFFSET   " - drain offset exceeds storage height"

◆ ERR_GREEN_AMPT

#define ERR_GREEN_AMPT   " - check subcatchment Green-Ampt parameters"

◆ ERR_PAVE_LAYER

#define ERR_PAVE_LAYER   " - check pavement layer parameters"

◆ ERR_SOIL_LAYER

#define ERR_SOIL_LAYER   " - check soil layer parameters"

◆ ERR_STOR_LAYER

#define ERR_STOR_LAYER   " - check storage layer parameters"

◆ ERR_SWALE_SURF

#define ERR_SWALE_SURF   " - check swale surface parameters"

◆ ERR_SWALE_WIDTH

#define ERR_SWALE_WIDTH   " - invalid swale width"

Typedef Documentation

◆ TLidGroup

typedef struct LidGroup* TLidGroup

◆ TLidList

typedef struct LidList TLidList

Enumeration Type Documentation

◆ LidLayerTypes

Enumerator
SURF 
SOIL 
STOR 
PAVE 
DRAINMAT 
DRAIN 
REMOVALS 

Function Documentation

◆ lid_addDrainInflow()

void lid_addDrainInflow ( int  j,
double  f 
)
Here is the call graph for this function:

◆ lid_addDrainLoads()

void lid_addDrainLoads ( int  j,
double  c[],
double  tStep 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lid_addDrainRunon()

void lid_addDrainRunon ( int  j)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lid_create()

void lid_create ( int  lidCount,
int  subcatchCount 
)

◆ lid_delete()

void lid_delete ( void  )

◆ lid_getDrainFlow()

double lid_getDrainFlow ( int  j,
int  timePeriod 
)
Here is the caller graph for this function:

◆ lid_getFlowToPerv()

double lid_getFlowToPerv ( int  j)
Here is the caller graph for this function:

◆ lid_getPervArea()

double lid_getPervArea ( int  j)
Here is the caller graph for this function:

◆ lid_getRunoff()

void lid_getRunoff ( int  j,
double  tStep 
)
Here is the caller graph for this function:

◆ lid_getStoredVolume()

double lid_getStoredVolume ( int  j)
Here is the caller graph for this function:

◆ lid_initState()

void lid_initState ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lid_readGroupParams()

int lid_readGroupParams ( char *  toks[],
int  ntoks 
)
Here is the call graph for this function:

◆ lid_readProcParams()

int lid_readProcParams ( char *  toks[],
int  ntoks 
)
Here is the call graph for this function:

◆ lid_setOldGroupState()

void lid_setOldGroupState ( int  j)
Here is the caller graph for this function:

◆ lid_validate()

void lid_validate ( void  )
Here is the caller graph for this function:

◆ lid_writeSummary()

void lid_writeSummary ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lid_writeWaterBalance()

void lid_writeWaterBalance ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ HasWetLids

char HasWetLids
extern

◆ LidLayerWords

char* LidLayerWords[]
Initial value:
=
{"SURFACE", "SOIL", "STORAGE", "PAVEMENT", "DRAINMAT", "DRAIN",
"REMOVALS", NULL}

Note: DRAINMAT must be placed before DRAIN so the two keywords can be distinguished from one another when parsing a line of input.

◆ LidTypeWords

char* LidTypeWords[]
Initial value:
=
{"BC",
"RG",
"GR",
"IT",
"PP",
"RB",
"VS",
"RD",
NULL}

◆ Vevap

double Vevap
extern

◆ Vinfil

double Vinfil
extern

◆ VlidDrain

double VlidDrain
extern

◆ VlidIn

double VlidIn
extern

◆ VlidInfil

double VlidInfil
extern

◆ VlidOut

double VlidOut
extern

◆ VlidReturn

double VlidReturn
extern

◆ Vpevap

double Vpevap
extern