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) | :: | NumItems | |||
real(kind=r64), | intent(in), | DIMENSION(:) | :: | Heights | ||
real(kind=r64), | intent(inout), | DIMENSION(:) | :: | DryBulb | ||
real(kind=r64), | intent(inout), | DIMENSION(:) | :: | WetBulb | ||
character(len=*), | intent(in) | :: | Settings |
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 SetOutBulbTempAt(NumItems, Heights, DryBulb, WetBulb, Settings)
! SUBROUTINE INFORMATION:
! AUTHOR Noel Keen (LBL)/Linda Lawrie
! DATE WRITTEN August 2010
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Routine provides facility for doing bulk Set Temperature at Height.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE DataInterfaces, ONLY: ShowSevereError, ShowContinueError, ShowFatalError
USE General, ONLY: RoundSigDigits
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: NumItems
REAL(r64), INTENT(IN), DIMENSION(:) :: Heights
REAL(r64), INTENT(INOUT), DIMENSION(:) :: DryBulb
REAL(r64), INTENT(INOUT), DIMENSION(:) :: WetBulb
CHARACTER(len=*), INTENT(IN) :: Settings
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
integer :: i ! Loop Control
REAL(r64) :: BaseDryTemp, BaseWetTemp ! Base temperature at Z = 0 (C)
REAL(r64) :: Z ! Centroid value
BaseDryTemp = OutDryBulbTemp + WeatherFileTempModCoeff
BaseWetTemp = OutWetBulbTemp + WeatherFileTempModCoeff
IF (SiteTempGradient == 0.0d0) THEN
DryBulb = OutDryBulbTemp
WetBulb = OutWetBulbTemp
ELSE
DO i=1, NumItems
Z = Heights(i)
IF (Z <= 0.0d0) THEN
DryBulb(i) = BaseDryTemp
WetBulb(i) = BaseWetTemp
ELSE
DryBulb(i) = BaseDryTemp - SiteTempGradient * EarthRadius * Z / (EarthRadius + Z)
WetBulb(i) = BaseWetTemp - SiteTempGradient * EarthRadius * Z / (EarthRadius + Z)
ENDIF
ENDDO
IF (ANY(DryBulb < -100.d0) .or. ANY(WetBulb < -100.d0)) THEN
CALL ShowSevereError('SetOutBulbTempAt: '//trim(Settings)//' Outdoor Temperatures < -100 C')
CALL ShowContinueError('...check '//trim(Settings)//' Heights - Maximum '//trim(Settings)//' Height=['// &
trim(RoundSigDigits(MAXVAL(Heights),0))//'].')
IF (MAXVAL(Heights) >= 20000.d0) THEN
CALL ShowContinueError('...according to your maximum Z height, your building is somewhere in the Stratosphere.')
ENDIF
CALL ShowFatalError('Program terminates due to preceding condition(s).')
ENDIF
END IF
RETURN
END SUBROUTINE SetOutBulbTempAt