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

Macros

#define _CRT_SECURE_NO_DEPRECATE
 

Enumerations

enum  GWstates {
  THETA ,
  LOWERDEPTH
}
 
enum  GWvariables {
  gwvHGW ,
  gwvHSW ,
  gwvHCB ,
  gwvHGS ,
  gwvKS ,
  gwvK ,
  gwvTHETA ,
  gwvPHI ,
  gwvFI ,
  gwvFU ,
  gwvA ,
  gwvMAX
}
 

Functions

int gwater_readAquiferParams (int aquiferIndex, char *tok[], int ntoks)
 Reads aquifer parameter values from line of input data.
 
int gwater_readGroundwaterParams (char *tok[], int ntoks)
 Reads groundwater inflow parameters for a subcatchment from a line of input data.
 
int gwater_readFlowExpression (char *tok[], int ntoks)
 Reads mathematical expression for lateral or deep groundwater flow for a subcatchment from a line of input data.
 
void gwater_deleteFlowExpression (int subcatchIndex)
 Veletes a subcatchment's custom groundwater flow expressions.
 
void gwater_validateAquifer (int aquiferIndex)
 Validates groundwater aquifer properties.
 
void gwater_validate (int subcatchIndex)
 Validates groundwater parameters for a subcatchment.
 
void gwater_initState (int subcatchIndex)
 Initializes state of subcatchment's groundwater.
 
void gwater_getState (int subcatchIndex, double x[])
 Retrieves state of subcatchment's groundwater.
 
void gwater_setState (int subcatchIndex, double x[])
 Assigns values to a subcatchment's groundwater state.
 
double gwater_getVolume (int subcatchIndex)
 Finds volume of groundwater stored in upper & lower zones.
 
void gwater_getGroundwater (int j, double evap, double infil, double tStep)
 Computes groundwater flow for a subcatchment.
 

Macro Definition Documentation

◆ _CRT_SECURE_NO_DEPRECATE

#define _CRT_SECURE_NO_DEPRECATE

Enumeration Type Documentation

◆ GWstates

enum GWstates
Enumerator
THETA 
LOWERDEPTH 

◆ GWvariables

Enumerator
gwvHGW 
gwvHSW 
gwvHCB 
gwvHGS 
gwvKS 
gwvK 
gwvTHETA 
gwvPHI 
gwvFI 
gwvFU 
gwvA 
gwvMAX