OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
climate.c File Reference

Climate related functions. More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "headers.h"
Include dependency graph for climate.c:

Classes

struct  TMovAve
 Structure for moving average of daily temperatures. More...
 

Macros

#define _CRT_SECURE_NO_DEPRECATE
 Define to prevent deprecation warnings from MS Visual C++ compilers.
 

Enumerations

enum  ClimateFileFormats {
  UNKNOWN_FORMAT ,
  USER_PREPARED ,
  GHCND ,
  TD3200 ,
  DLY0204
}
 
enum  ClimateVarType {
  TMIN ,
  TMAX ,
  EVAP ,
  WIND
}
 
enum  WindSpeedType {
  WDMV ,
  AWND
}
 
enum  TempUnitsType {
  DEG_C10 ,
  DEG_C ,
  DEG_F
}
 

Functions

int climate_readParams (char *tok[], int ntoks)
 
int climate_readEvapParams (char *tok[], int ntoks)
 
int climate_readAdjustments (char *tok[], int ntoks)
 
void climate_validate ()
 
void climate_openFile ()
 
void climate_initState ()
 
void climate_setState (DateTime theDate)
 
DateTime climate_getNextEvapDate ()
 

Detailed Description

Climate related functions.

Author
L. Rossman
Date
Created: 2021-11-01
Last edited: 2024-12-23

Climate related functions.

Update History

  • Build 5.1.007:
    • NCDC GHCN climate file format added.
    • Monthly adjustments for temperature, evaporation & rainfall added.
  • Build 5.1.008:
    • Monthly adjustments for hyd. conductivity added.
    • Time series evaporation rates can now vary within a day.
    • Evaporation rates are now properly updated when only flow routing is being simulated.
  • Build 5.1.010:
    • Hargreaves evaporation now computed using 7-day average temperatures.
  • Build 5.1.011:
    • Monthly adjustment for hyd. conductivity <= 0 is ignored.
  • Build 5.1.013:
    • Reads names of monthly adjustment patterns for various parameters of a subcatchment from the [ADJUSTMENTS] section of input file.
  • Build 5.2.0:
    • Reads temperature units for use with GHCND climate files.
    • Support added for relative file names.

Macro Definition Documentation

◆ _CRT_SECURE_NO_DEPRECATE

#define _CRT_SECURE_NO_DEPRECATE

Define to prevent deprecation warnings from MS Visual C++ compilers.