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

Macros

#define _CRT_SECURE_NO_DEPRECATE
 
#define STOPTOL   0.00328
 
#define MINFLOW   2.3e-8
 

Enumerations

enum  LidLayerTypes {
  SURF ,
  SOIL ,
  STOR ,
  PAVE ,
  DRAIN
}
 
enum  LidRptVars {
  SURF_INFLOW ,
  TOTAL_EVAP ,
  SURF_INFIL ,
  PAVE_PERC ,
  SOIL_PERC ,
  STOR_EXFIL ,
  SURF_OUTFLOW ,
  STOR_DRAIN ,
  SURF_DEPTH ,
  PAVE_DEPTH ,
  SOIL_MOIST ,
  STOR_DEPTH ,
  MAX_RPT_VARS
}
 

Functions

void lidproc_initWaterBalance (TLidUnit *lidUnit, double initVol)
 
double lidproc_getOutflow (TLidUnit *lidUnit, TLidProc *lidProc, double inflow, double evap, double infil, double maxInfil, double tStep, double *lidEvap, double *lidInfil, double *lidDrain)
 
void lidproc_saveResults (TLidUnit *lidUnit, double ucfRainfall, double ucfRainDepth)
 

Variables

char HasWetLids
 

Macro Definition Documentation

◆ _CRT_SECURE_NO_DEPRECATE

#define _CRT_SECURE_NO_DEPRECATE

◆ MINFLOW

#define MINFLOW   2.3e-8

◆ STOPTOL

#define STOPTOL   0.00328

Enumeration Type Documentation

◆ LidLayerTypes

Enumerator
SURF 
SOIL 
STOR 
PAVE 
DRAIN 

◆ LidRptVars

enum LidRptVars
Enumerator
SURF_INFLOW 
TOTAL_EVAP 
SURF_INFIL 
PAVE_PERC 
SOIL_PERC 
STOR_EXFIL 
SURF_OUTFLOW 
STOR_DRAIN 
SURF_DEPTH 
PAVE_DEPTH 
SOIL_MOIST 
STOR_DEPTH 
MAX_RPT_VARS 

Function Documentation

◆ lidproc_getOutflow()

double lidproc_getOutflow ( TLidUnit lidUnit,
TLidProc lidProc,
double  inflow,
double  evap,
double  infil,
double  maxInfil,
double  tStep,
double *  lidEvap,
double *  lidInfil,
double *  lidDrain 
)

For debugging only ******************************************** if (i == 0) { fprintf(Frpt.file, "\n WARNING 09: integration failed to converge at %s %s", theDate, theTime); fprintf(Frpt.file, "\n for LID %s placed in subcatchment %s.", theLidProc->ID, theSubcatch->ID); }

Here is the call graph for this function:

◆ lidproc_initWaterBalance()

void lidproc_initWaterBalance ( TLidUnit lidUnit,
double  initVol 
)
Here is the caller graph for this function:

◆ lidproc_saveResults()

void lidproc_saveResults ( TLidUnit lidUnit,
double  ucfRainfall,
double  ucfRainDepth 
)
Here is the call graph for this function:

Variable Documentation

◆ HasWetLids

char HasWetLids
extern