Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r64), | intent(in) | :: | W | |||
real(kind=r64), | intent(in) | :: | C |
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.
REAL(r64) FUNCTION VB_SLAT_RADIUS_RATIO(W, C)
!
! AUTHOR ASHRAE 1311-RP
! DATE WRITTEN unknown
! MODIFIED na
!
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! Returns curved slat radius ratio (W / R)
!
! METHODOLOGY EMPLOYED:
! na
!
! REFERENCES:
! na
!
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
REAL(r64), INTENT(IN):: W ! slat tip-to-tip (chord) width (any units; same units as C) must be > 0
REAL(r64), INTENT(IN):: C ! slat crown height (any units, same units as W) must be >= 0
!
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
REAL(r64) :: CX !
! Flow
IF (C <= 0.0d0 .OR. W <= 0.0d0) THEN
! it is flat
VB_SLAT_RADIUS_RATIO = 0.0d0
ELSE
CX = MIN( C, W/2.001d0)
VB_SLAT_RADIUS_RATIO = 2.0d0 * W * CX / (CX*CX + W*W/4)
END IF
RETURN
END FUNCTION VB_SLAT_RADIUS_RATIO