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

Macros

#define _CRT_SECURE_NO_DEPRECATE
 

Enumerations

enum  SnowKeywords {
  SNOW_PLOWABLE ,
  SNOW_IMPERV ,
  SNOW_PERV ,
  SNOW_REMOVAL
}
 

Functions

int snow_readMeltParams (char *tok[], int ntoks)
 Reads snowmelt parameters from a tokenized line of input data.
 
int snow_createSnowpack (int subcatchIndex, int snowIndex)
 Creates a snowpack object for a subcatchment.
 
void snow_initSnowpack (int subcatchIndex)
 Initializes state of a subcatchment's snowpack.
 
void snow_initSnowmelt (int snowIndex)
 Initializes values in a snowmelt parameter set.
 
void snow_validateSnowmelt (int snowIndex)
 Checks for valid values in a snowmelt parameter set.
 
void snow_getState (int i, int j, double x[])
 Retrieves the current state of a snowpack object.
 
void snow_setState (int subcatchIndex, int subAreaIndex, double x[])
 Sets the current state of a snowpack object.
 
void snow_setMeltCoeffs (int snowIndex, double season)
 Sets values of snowmelt coefficients for a particular time of year.
 
void snow_plowSnow (int subcatchIndex, double tStep)
 Adds new snow to subcatchment and plows it between sub-areas.
 
double snow_getSnowMelt (int subcatchIndex, double rainfall, double snowfall, double tStep, double netPrecip[])
 Modifies rainfall input to subcatchment's subareas based on possible snow melt and updates snow depth over entire subcatchment.
 
double snow_getSnowCover (int subcatchIndex)
 Computes volume of snow on a subcatchment.
 

Macro Definition Documentation

◆ _CRT_SECURE_NO_DEPRECATE

#define _CRT_SECURE_NO_DEPRECATE

Enumeration Type Documentation

◆ SnowKeywords

Enumerator
SNOW_PLOWABLE 
SNOW_IMPERV 
SNOW_PERV 
SNOW_REMOVAL