OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
openswmm::climate::ClimateState Struct Reference

#include <Climate.hpp>

Collaboration diagram for openswmm::climate::ClimateState:

Public Attributes

double temperature = 70.0
 Air temperature (deg F)
 
double temp_range = 0.0
 Daily temperature range (deg F)
 
double evap_rate = 0.0
 Evaporation rate (ft/sec)
 
double wind_speed = 0.0
 Wind speed (mph)
 
double humidity = 50.0
 Relative humidity (%)
 
double gamma = 0.0
 Psychrometric constant.
 
double ea = 0.0
 Saturation vapor pressure.
 
double latitude = 0.0
 Latitude (degrees)
 
double elev = 0.0
 Site elevation above sea level (ft)
 
double monthly_evap [12] = {}
 
double adjust_evap [12] = {1,1,1,1,1,1,1,1,1,1,1,1}
 
double adjust_temp [12] = {0,0,0,0,0,0,0,0,0,0,0,0}
 
double adjust_rain [12] = {1,1,1,1,1,1,1,1,1,1,1,1}
 
double adjust_hydcon [12] = {1,1,1,1,1,1,1,1,1,1,1,1}
 Infiltration conductivity multipliers.
 
EvapMethod evap_method = EvapMethod::CONSTANT
 
double infil_factor = 1.0
 
MovingAvg7 temp_ma
 
double recovery_factor = 1.0
 
int temp_ts_index = -1
 Temperature timeseries table index.
 
int evap_ts_index = -1
 Evaporation timeseries table index.
 
int recovery_pat_index = -1
 Recovery pattern index in ctx.patterns.
 
double tmin_daily = 0.0
 Current day's minimum temperature (deg F)
 
double tmax_daily = 0.0
 Current day's maximum temperature (deg F)
 
double prev_tmax = 0.0
 Previous day's maximum temperature (deg F)
 
double hrsr = 6.0
 Sunrise hour (time of min temp), 0-24.
 
double hrss = 15.0
 Sunset-3 hour (time of max temp), 0-24.
 
double hrday = 10.5
 Mid-hour between hrsr and hrss.
 
double dhrdy = -9.0
 hrsr - hrss (negative)
 
double dydif = 15.0
 24 + hrsr - hrss (hours from max to next min)
 
double dtlong = 0.0
 Longitude correction (hrs); 0 = solar time.
 
bool has_minmax = false
 True when tmin_daily/tmax_daily are valid.
 
int last_temp_doy = -1
 Day-of-year when hrsr/hrss were last computed.
 

Member Data Documentation

◆ adjust_evap

double openswmm::climate::ClimateState::adjust_evap[12] = {1,1,1,1,1,1,1,1,1,1,1,1}

◆ adjust_hydcon

double openswmm::climate::ClimateState::adjust_hydcon[12] = {1,1,1,1,1,1,1,1,1,1,1,1}

Infiltration conductivity multipliers.

◆ adjust_rain

double openswmm::climate::ClimateState::adjust_rain[12] = {1,1,1,1,1,1,1,1,1,1,1,1}

◆ adjust_temp

double openswmm::climate::ClimateState::adjust_temp[12] = {0,0,0,0,0,0,0,0,0,0,0,0}

◆ dhrdy

double openswmm::climate::ClimateState::dhrdy = -9.0

hrsr - hrss (negative)

◆ dtlong

double openswmm::climate::ClimateState::dtlong = 0.0

Longitude correction (hrs); 0 = solar time.

◆ dydif

double openswmm::climate::ClimateState::dydif = 15.0

24 + hrsr - hrss (hours from max to next min)

◆ ea

double openswmm::climate::ClimateState::ea = 0.0

Saturation vapor pressure.

◆ elev

double openswmm::climate::ClimateState::elev = 0.0

Site elevation above sea level (ft)

◆ evap_method

EvapMethod openswmm::climate::ClimateState::evap_method = EvapMethod::CONSTANT

◆ evap_rate

double openswmm::climate::ClimateState::evap_rate = 0.0

Evaporation rate (ft/sec)

◆ evap_ts_index

int openswmm::climate::ClimateState::evap_ts_index = -1

Evaporation timeseries table index.

◆ gamma

double openswmm::climate::ClimateState::gamma = 0.0

Psychrometric constant.

◆ has_minmax

bool openswmm::climate::ClimateState::has_minmax = false

True when tmin_daily/tmax_daily are valid.

◆ hrday

double openswmm::climate::ClimateState::hrday = 10.5

Mid-hour between hrsr and hrss.

◆ hrsr

double openswmm::climate::ClimateState::hrsr = 6.0

Sunrise hour (time of min temp), 0-24.

◆ hrss

double openswmm::climate::ClimateState::hrss = 15.0

Sunset-3 hour (time of max temp), 0-24.

◆ humidity

double openswmm::climate::ClimateState::humidity = 50.0

Relative humidity (%)

◆ infil_factor

double openswmm::climate::ClimateState::infil_factor = 1.0

◆ last_temp_doy

int openswmm::climate::ClimateState::last_temp_doy = -1

Day-of-year when hrsr/hrss were last computed.

◆ latitude

double openswmm::climate::ClimateState::latitude = 0.0

Latitude (degrees)

◆ monthly_evap

double openswmm::climate::ClimateState::monthly_evap[12] = {}

◆ prev_tmax

double openswmm::climate::ClimateState::prev_tmax = 0.0

Previous day's maximum temperature (deg F)

◆ recovery_factor

double openswmm::climate::ClimateState::recovery_factor = 1.0

◆ recovery_pat_index

int openswmm::climate::ClimateState::recovery_pat_index = -1

Recovery pattern index in ctx.patterns.

◆ temp_ma

MovingAvg7 openswmm::climate::ClimateState::temp_ma

◆ temp_range

double openswmm::climate::ClimateState::temp_range = 0.0

Daily temperature range (deg F)

◆ temp_ts_index

int openswmm::climate::ClimateState::temp_ts_index = -1

Temperature timeseries table index.

◆ temperature

double openswmm::climate::ClimateState::temperature = 70.0

Air temperature (deg F)

◆ tmax_daily

double openswmm::climate::ClimateState::tmax_daily = 0.0

Current day's maximum temperature (deg F)

◆ tmin_daily

double openswmm::climate::ClimateState::tmin_daily = 0.0

Current day's minimum temperature (deg F)

◆ wind_speed

double openswmm::climate::ClimateState::wind_speed = 0.0

Wind speed (mph)


The documentation for this struct was generated from the following file: