Solar-Geometry
- WRFSolarGeometry
model
atmospheric_radiation
wrf_solar
WRF's solar geometry for the radiation schemes: the declination and eccentricity-corrected solar constant of SUBROUTINE radconst and the cosine of the solar zenith angle of SUBROUTINE calc_coszen (with the equation-of-time correction), phys/module_radiation_driver.F (WRF 4.8), as called by radiation_driver at xtime + radt/2. Algebraic in the model time: the only time dependence is through the parameters xtime and julian, which a consumer advances with the clock and MUST keep in step, julian = julian0 + xtime/1440 wrapped at 1 January (WRF resets both from its clock each step; julian drives the declination, eccentricity and equation of time, xtime + gmt the time of day). It supplies DudhiaSW's csza (WRF coszen) and solcon in place of prescribed values. The EarthSciModels standard-library lib/solar.esm is NOT reused: it evaluates the Spencer declination series and a NOAA fractional-year angle, whereas radconst uses a single-sine declination with a 23.5 degree obliquity and day 80 as the equinox, and calc_coszen phases its equation of time on julian - 0.5; at the reference column's start (1999-10-22 19 UTC, 37.6 N 96.7 W) the two declinations differ by 0.022 rad and the cosines by 0.017, so WRF-derived tests could not be added to lib/solar.esm either. Not transcribed: the solar-eclipse obscuration (sw_eclipse, off by default) and the slope-radiation hour-angle use (slope_rad).
- WRFSolarParameters
model
atmospheric_radiation
wrf_solar
Constants of WRF's solar geometry: the in-line literals of SUBROUTINE radconst and SUBROUTINE calc_coszen in phys/module_radiation_driver.F (WRF 4.8), plus DPD, the degrees-per-day constant of share/module_model_constants.F:74, which lib/wrf_constants.esm does not (yet) carry. Mounted by WRFSolarGeometry as subsystem `par`, which holds every physical and empirical constant (obliquity, equinox day, Fourier coefficients, solar constant, minutes per day/hour, degrees per hour, ...); only structural literals stay inline in the geometry: the harmonic multiplier 2 of cos(2 orbit_angle), sin(2 day_angle) and the like, the half-step radt/2, and the -1/1 bounds of the coszen clamp. Values are the nominal decimal values of the Fortran source; WRF evaluates them in single precision (default REAL), which the reference tests' rel 1e-5 tolerance absorbs.