OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
openswmm::transport::heat::SolarPosition Struct Reference

Sun geometry at one instant. The SPA swap point's return type. More...

#include <SolarRadiation.hpp>

Collaboration diagram for openswmm::transport::heat::SolarPosition:

Public Attributes

double declination_deg = 0.0
 Solar declination, +N.
 
double eq_time_min = 0.0
 Equation of time, minutes.
 
double hour_angle_deg = 0.0
 Solar hour angle, 0 at solar noon.
 
double zenith_deg = 90.0
 Solar zenith angle.
 
double cos_zenith = 0.0
 Clamped at 0 below the horizon.
 
double elevation_deg = 0.0
 
double eccentricity = 1.0
 Earth–sun distance correction E0 = (r0/r)², dimensionless.
 

Detailed Description

Sun geometry at one instant. The SPA swap point's return type.

Angles in DEGREES. cos_zenith is carried alongside zenith_deg because every downstream consumer wants the cosine and rounding a degree value back through cos twice is how a night-time cos_zenith acquires a small positive value.

Member Data Documentation

◆ cos_zenith

double openswmm::transport::heat::SolarPosition::cos_zenith = 0.0

Clamped at 0 below the horizon.

◆ declination_deg

double openswmm::transport::heat::SolarPosition::declination_deg = 0.0

Solar declination, +N.

◆ eccentricity

double openswmm::transport::heat::SolarPosition::eccentricity = 1.0

Earth–sun distance correction E0 = (r0/r)², dimensionless.

◆ elevation_deg

double openswmm::transport::heat::SolarPosition::elevation_deg = 0.0

90 − zenith (may be negative)

◆ eq_time_min

double openswmm::transport::heat::SolarPosition::eq_time_min = 0.0

Equation of time, minutes.

◆ hour_angle_deg

double openswmm::transport::heat::SolarPosition::hour_angle_deg = 0.0

Solar hour angle, 0 at solar noon.

◆ zenith_deg

double openswmm::transport::heat::SolarPosition::zenith_deg = 90.0

Solar zenith angle.


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