OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
Climate.cpp File Reference

Climate processing — numerically identical to legacy climate.c. More...

#include "Climate.hpp"
#include "../core/Constants.hpp"
#include "../core/UnitConversion.hpp"
#include <cmath>
#include <algorithm>
Include dependency graph for Climate.cpp:

Namespaces

namespace  openswmm
 
namespace  openswmm::climate
 

Functions

double openswmm::climate::hargreaves (double latitude, int day_of_year, double t_avg, double t_range)
 Estimate potential evapotranspiration using Hargreaves radiation/temperature.
 
void openswmm::climate::updateDailyClimate (ClimateState &state, int day_of_year, int month)
 Update scalar evaporation and snow-related atmospheric coefficients.
 
void openswmm::climate::batchDistributeEvap (double evap_rate, const double *ponded_depth, double *evap_out, int n, double dt)
 Bound one scalar evaporation rate by each ponded-water supply rate.
 
void openswmm::climate::updateTempTimes (ClimateState &state, int doy)
 Derive daily sinusoidal temperature timing from latitude and season.
 
double openswmm::climate::getSubdailyTemp (const ClimateState &state, double hour)
 Evaluate the three-segment native diurnal temperature curve.
 

Detailed Description

Climate processing — numerically identical to legacy climate.c.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License
Apache-2.0