Nodes of different colours represent the following:
Solid arrows point from a parent (sub)module to the submodule which is descended from it. Dashed arrows point from a module being used to the module or program unit using it. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | SurfNum | |||
integer, | intent(in) | :: | UserCurveNum | |||
real(kind=r64), | intent(out) | :: | H |
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.
SUBROUTINE CalcUserDefinedOutsideHcModel(SurfNum, UserCurveNum, H)
! SUBROUTINE INFORMATION:
! AUTHOR <Brent Griffith
! DATE WRITTEN Aug 2010
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! calculate user-defined convection correlations for outside face
! METHODOLOGY EMPLOYED:
! call curve objects to evaluate user's model equation
! prepare independent parameters for x values
! REFERENCES:
! na
! USE STATEMENTS:
USE DataEnvironment, ONLY: WindSpeed, WindDir
USE CurveManager, ONLY: CurveValue
USE DataHeatBalSurface, ONLY: TH
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER , INTENT(IN) :: SurfNum
INTEGER , INTENT(IN) :: UserCurveNum
REAL(r64),INTENT(OUT) :: H
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
REAL(r64) :: tmpHc
REAL(r64) :: windVel
REAL(r64) :: theta
REAL(r64) :: ThetaRad
SELECT CASE (HcOutsideUserCurve(UserCurveNum)%WindSpeedType)
CASE (RefWindWeatherFile)
windVel = WindSpeed
CASE (RefWindAtZ)
windVel = Surface(SurfNum)%WindSpeed
CASE (RefWindParallComp)
! WindSpeed , WindDir, surface Azimuth
Theta = WindDir - Surface(SurfNum)%Azimuth - 90.d0 !TODO double check theta
ThetaRad = Theta * DegToRadians
windVel = cos(ThetaRad) * WindSpeed
CASE (RefWindParallCompAtZ)
! Surface WindSpeed , WindDir, surface Azimuth
Theta = WindDir - Surface(SurfNum)%Azimuth - 90.d0 !TODO double check theta
ThetaRad = Theta * DegToRadians
windVel = cos(ThetaRad) * Surface(SurfNum)%WindSpeed
END SELECT
tmpHc = 0.d0
IF ( HcOutsideUserCurve(UserCurveNum)%HfFnWindSpeedCurveNum > 0) THEN
tmpHc = CurveValue(HcOutsideUserCurve(UserCurveNum)%HfFnWindSpeedCurveNum, &
windVel )
ENDIF
IF ( HcOutsideUserCurve(UserCurveNum)%HnFnTempDiffCurveNum > 0) THEN
tmpHc = tmpHc + CurveValue(HcOutsideUserCurve(UserCurveNum)%HnFnTempDiffCurveNum, &
ABS(TH(SurfNum,1, 1) - Surface(SurfNum)%OutDryBulbTemp) )
ENDIF
IF ( HcOutsideUserCurve(UserCurveNum)%HnFnTempDiffDivHeightCurveNum > 0) THEN
IF (Surface(SurfNum)%OutConvFaceHeight > 0.d0) THEN
tmpHc = tmpHc + CurveValue(HcOutsideUserCurve(UserCurveNum)%HnFnTempDiffDivHeightCurveNum, &
((ABS(TH(SurfNum,1, 1) - Surface(SurfNum)%OutDryBulbTemp))&
/Surface(SurfNum)%OutConvFaceHeight) )
ENDIF
ENDIF
H = tmpHc
RETURN
END SUBROUTINE CalcUserDefinedOutsideHcModel