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

Solar radiation inputs and calculations for thermal components. More...

Include dependency graph for SolarRadiation.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  openswmm::transport::heat::SolarPosition
 Sun geometry at one instant. The SPA swap point's return type. More...
 

Namespaces

namespace  openswmm
 
namespace  openswmm::transport
 
namespace  openswmm::transport::heat
 

Functions

SolarPosition openswmm::transport::heat::solarPosition (int day_of_year, double hour_local, double lat_deg, double lon_deg, double tz_hours) noexcept
 Compute Spencer/NOAA sun geometry at a local civil-clock instant.
 
double openswmm::transport::heat::airMass (double zenith_deg) noexcept
 Compute Kasten-Young relative optical air mass.
 
double openswmm::transport::heat::pressureFromElevation (double elevation_m) noexcept
 Estimate standard-atmosphere station pressure from elevation.
 
double openswmm::transport::heat::birdClearSkyGHI (const SolarPosition &pos, double pressure_mb, const SolarConfig &cfg) noexcept
 Estimate clear-sky global horizontal irradiance with Bird-Hulstrom terms.
 
double openswmm::transport::heat::cloudShortwaveFactor (double cloud_fraction, double k, double n) noexcept
 Compute the cloud attenuation multiplier max(0,1-k*C^n).
 
double openswmm::transport::heat::cloudLongwaveFactor (double cloud_fraction, double k_lw) noexcept
 Compute the cloud atmospheric-emissivity multiplier 1+k_lw*C^2.
 
void openswmm::transport::heat::updateSolarForcing (SimulationContext &ctx, double seconds=1)
 Update shared heat shortwave/cloud forcing with mesh radiation disabled.
 

Variables

constexpr double openswmm::transport::heat::kSolarConstant
 Solar constant, W/m² (Bird & Hulstrom 1981; WMO 1982).
 
constexpr double openswmm::transport::heat::kStdPressureMb
 Sea-level standard pressure, millibars — Bird's pressure reference.
 

Detailed Description

Solar radiation inputs and calculations for thermal components.

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