Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r64), | intent(in) | :: | Z |
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
FUNCTION WindSpeedAt(Z) RESULT(LocalWindSpeed)
! FUNCTION INFORMATION:
! AUTHOR Peter Graham Ellis
! DATE WRITTEN January 2006
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! Calculates local wind speed at a given altitude.
! METHODOLOGY EMPLOYED:
! 2005 ASHRAE Fundamentals, Chapter 16, Equation 4. (Different depending on terrain).
! REFERENCES:
! 2005 ASHRAE Fundamentals, Chapter 16, Equation 4. (Different depending on terrain).
! Terrain variables are set in HeatBalanceManager or entered by the user.
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
REAL(r64), INTENT(IN) :: Z ! Height above ground (m)
REAL(r64) :: LocalWindSpeed ! Return result for function (m/s)
IF (Z <= 0.0d0) THEN
LocalWindSpeed = 0.0d0
ELSE IF (SiteWindExp == 0.0d0) THEN
LocalWindSpeed = WindSpeed
ELSE
! [Met] - at meterological Station, Height of measurement is usually 10m above ground
! LocalWindSpeed = Windspeed [Met] * (Wind Boundary LayerThickness [Met]/Height [Met])**Wind Exponent[Met] &
! * (Height above ground / Site Wind Boundary Layer Thickness) ** Site Wind Exponent
!
LocalWindSpeed = WindSpeed * WeatherFileWindModCoeff * (Z / SiteWindBLHeight) ** SiteWindExp
END IF
RETURN
END FUNCTION WindSpeedAt