Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r64), | intent(in) | :: | WindAtZ | |||
real(kind=r64), | intent(in) | :: | LengthScale | |||
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 CalcMitchell(WindAtZ, LengthScale , SurfNum) RESULT (Hf)
! FUNCTION INFORMATION:
! AUTHOR Brent Griffith
! DATE WRITTEN Aug 2010
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! calculate model equation for forced convection using Mitchell correlation
! model is attributed to Mitchell but the equation is as recast in current units
! by Palyvos
! METHODOLOGY EMPLOYED:
! encapsulate the model equation in a function
! REFERENCES:
! 1. Mitchell, J.W., 1976. Heat transfer from spheres and other animal forms. Biophy. J. 16 (1976) 561
! 2. Palyvos, J.A., 2008. A survey of wind convection coefficient correlations for building
! envelope energy systemsÂ’ modeling. Applied Thermal Engineering 28 (2008) 801-808. Elsevier.
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
REAL(r64), INTENT(IN) :: WindAtZ
REAL(r64), INTENT(IN) :: LengthScale
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 (LengthScale > 0.d0) THEN
Hf = 8.6d0 * (WindAtZ**0.6d0) / (LengthScale**0.4d0)
ELSE
IF (ErrorIndex == 0) THEN
CALL ShowSevereMessage('CalcMitchell: Convection model not evaluated (bad length scale)')
CALL ShowContinueError('Value for effective length scale = ' //TRIM(RoundSigDigits(LengthScale,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('CalcMitchell: Convection model not evaluated because ' &
//'bad length scale and set to 9.999 [W/m2-k]' , ErrorIndex )
Hf = 9.999d0 ! safe but noticeable
ENDIF
RETURN
END FUNCTION CalcMitchell