Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | RoughnessIndex | |||
real(kind=r64), | intent(in) | :: | FacePerimeter | |||
real(kind=r64), | intent(in) | :: | FaceArea | |||
real(kind=r64), | intent(in) | :: | WindAtZ | |||
integer, | intent(in) | :: | SurfNum |
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.
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 CalcSparrowLeeward(RoughnessIndex, FacePerimeter, FaceArea, WindAtZ, SurfNum) RESULT (Hf)
! FUNCTION INFORMATION:
! AUTHOR Brent Griffith
! DATE WRITTEN Aug 2010
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! Calculate Sparrow Hf for leeward surfaces
! METHODOLOGY EMPLOYED:
! encapsulate equation as a function
! REFERENCES:
! 1. TARP Reference Manual, "Surface Outside Heat Balances", pp 71ff
! 2. Sparrow, E. M., J. W. Ramsey, and E. A. Mass. 1979. Effect of finite
! width on heat transfer and fluid flow about an inclined rectangular plate.
! Journal of Heat Transfer 101: 204.
! 3. McClellan, T.M. 1996. Investigation of a heat balance cooling load
! procedure with a detailed study of outside heat transfer parameters.
! M.S. Thesis, Department of Mechanical and Industrial Engineering,
! University of Illinois at Urbana-Champaign.
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: RoughnessIndex
REAL(r64), INTENT(IN) :: FacePerimeter
REAL(r64), INTENT(IN) :: FaceArea
REAL(r64), INTENT(IN) :: WindAtZ
INTEGER , INTENT(IN) :: SurfNum
REAL(r64) :: Hf
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
INTEGER, SAVE :: ErrorIndex = 0
IF (FaceArea > 0.d0) THEN
Hf = 2.53d0 * 0.5d0 * RoughnessMultiplier(RoughnessIndex)*(( FacePerimeter * WindAtZ/FaceArea)**0.5d0)
ELSE
IF (ErrorIndex == 0) THEN
CALL ShowSevereMessage('CalcSparrowLeeward: Convection model not evaluated (bad face area)')
CALL ShowContinueError('Value for effective face area = ' //TRIM(RoundSigDigits(FaceArea,5)))
CALL ShowContinueError('Occurs for surface named = ' //TRIM(Surface(SurfNum)%Name) )
CALL ShowContinueError('Convection surface heat transfer coefficient set to 9.999 [W/m2-K] and the simulation continues')
ENDIF
CALL ShowRecurringSevereErrorAtEnd('CalcSparrowLeeward: Convection model not evaluated because ' &
//'bad face area and set to 9.999 [W/m2-k]' , ErrorIndex )
Hf = 9.999d0 ! safe but noticeable
ENDIF
RETURN
END FUNCTION CalcSparrowLeeward