![]() |
The AHA Model
Revision: 17463
Reference implementation 04 (HEDG02_04)
|
Calculate underwater background irradiance at specific depth. More...
Public Member Functions | |
| real(srp) function | light_depth_integer (depth, surface_light, is_stochastic) |
| Calculate underwater light at specific depth given specific surface light. More... | |
| real(srp) function | light_depth_real (depth, surface_light, is_stochastic) |
| Calculate underwater light at specific depth given specific surface light. More... | |
Calculate underwater background irradiance at specific depth.
Underwater light is attenuated following Beer’s law,
where
| real(srp) function the_environment::light_depth::light_depth_integer | ( | integer, intent(in) | depth, |
| real(srp), intent(in), optional | surface_light, | ||
| logical, intent(in), optional | is_stochastic | ||
| ) |
Calculate underwater light at specific depth given specific surface light.
Underwater light is attenuated following Beer’s law,
where
is background irradiance at depth z at time t and K is the attenuation coefficient for downwelling irradiance. The value of K in the old code was set very high to allow the vertical dynamics to take place within 30 depth cells.
| [in] | depth | The integer depth horizon where we get background |
| [in] | surface_light | Irradiance at the surface, normally calculated at specific time point of the model with the the_environment::light_surface() function. If this parameter is absent, surface light at the current time step is obtained. The time step in such case is obtained from commondata::global_time_step_model_current. |
| [in] | is_stochastic | stochastic indicator for the surface light in the_environment::light_surface() function. If this parameter is absent, the default commondata::daylight_stochastic parameter value is used. |
| real(srp) function the_environment::light_depth::light_depth_real | ( | real(srp), intent(in) | depth, |
| real(srp), intent(in), optional | surface_light, | ||
| logical, intent(in), optional | is_stochastic | ||
| ) |
Calculate underwater light at specific depth given specific surface light.
Underwater light is attenuated following Beer’s law,
where
is background irradiance at depth z at time t and K is the attenuation coefficient for downwelling irradiance.
| [in] | depth | The integer depth horizon where we get background. |
| [in] | surface_light | Irradiance at the surface, normally calculated at specific time point of the model with the the_environment::light_surface() function. If this parameter is absent, surface light at the current time step is obtained. The time step in such case is obtained from commondata::global_time_step_model_current. |
| [in] | is_stochastic | stochastic indicator for the surface light in the_environment::light_surface() function. If this parameter is absent, the default commondata::daylight_stochastic parameter value is used. |