Residual function used by the internal root-finding step. Reference: Monin-Obukhov momentum-profile inversion in FLXLN2.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real, | intent(in) | :: | u1 |
wind speed at height zu1 [m/s] |
||
| real, | intent(in) | :: | u2 |
wind speed at height zu2 [m/s] |
||
| real, | intent(in) | :: | zu1 |
lower wind measurement height [m] |
||
| real, | intent(in) | :: | zu2 |
upper wind measurement height [m] |
||
| real, | intent(in) | :: | T |
air temperature [C] |
||
| real, | intent(in) | :: | cloud_fraction |
cloud fraction [0..1] |
||
| real, | intent(in) | :: | sinphi |
sine of solar elevation angle [-] |
||
| real, | intent(in) | :: | kin |
incoming shortwave radiation [W/m^2] |