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 | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | GlheType | |||
character(len=*), | intent(in) | :: | GlheName | |||
integer, | intent(inout) | :: | CompIndex | |||
logical, | intent(in) | :: | RunFlag | |||
logical, | intent(in) | :: | FirstIteration | |||
logical, | intent(in) | :: | InitLoopEquip |
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 SimGroundHeatExchangers(GlheType,GlheName, CompIndex,RunFlag, FirstIteration, InitLoopEquip)
! SUBROUTINE INFORMATION:
! AUTHOR: Dan Fisher
! DATE WRITTEN: August, 2000
! MODIFIED Arun Murugappan
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! mananges the simulation of the vertical closed-loop ground heat
! exchangers (GLHE) model
! METHODOLOGY EMPLOYED:
! REFERENCES:
! Eskilson, P. 'Thermal Analysis of Heat Extraction Boreholes' Ph.D. Thesis:
! Dept. of Mathematical Physics, University of Lund, Sweden, June 1987.
! Yavuzturk, C., J.D. Spitler. 1999. 'A Short Time Step Response Factor Model
! for Vertical Ground Loop Heat Exchangers. ASHRAE Transactions. 105(2): 475-485.
! USE STATEMENTS:
USE InputProcessor, ONLY: FindItemInList
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
CHARACTER(len=*),INTENT(IN) :: GlheType
CHARACTER(len=*),INTENT(IN) :: GlheName
INTEGER,INTENT(INOUT) :: CompIndex
LOGICAL,INTENT(IN) :: RunFlag
LOGICAL, INTENT(IN) :: FirstIteration
LOGICAL,INTENT(IN) :: InitLoopEquip
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
LOGICAL, SAVE :: GetInput = .TRUE.
INTEGER :: GlheNum
!GET INPUT
IF (GetInput) THEN
CALL GetGroundheatExchangerInput
GetInput = .FALSE.
END IF
! Find the correct Furnace
IF (CompIndex == 0) THEN
GlheNum=FindItemInList(GlheName,VerticalGlhe%Name,NumVerticalGlhes)
IF (GlheNum == 0) THEN
CALL ShowFatalError('SimGroundHeatExchangers: Unit not found='//TRIM(GlheName))
ENDIF
CompIndex=GlheNum
ELSE
GlheNum=CompIndex
IF (GlheNum > NumVerticalGlhes .or. GlheNum < 1) THEN
CALL ShowFatalError('SimGroundHeatExchangers: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(GlheNum))// &
', Number of Units='//TRIM(TrimSigDigits(NumVerticalGlhes))// &
', Entered Unit name='//TRIM(GlheName))
ENDIF
IF (CheckEquipName(GlheNum)) THEN
IF (GlheName /= VerticalGlhe(GlheNum)%Name) THEN
CALL ShowFatalError('SimGroundHeatExchangers: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(NumVerticalGlhes))// &
', Unit name='//TRIM(GlheName)//', stored Unit Name for that index='// &
TRIM(VerticalGlhe(GlheNum)%Name))
ENDIF
CheckEquipName(GlheNum)=.false.
ENDIF
ENDIF
IF (InitLoopEquip) THEN
CALL InitBoreholeHXSimVars(GlheNum,Runflag)
RETURN
ENDIF
!INITIALIZE
CALL InitBoreholeHXSimVars(GlheNum,Runflag)
!SIMULATE HEAT EXCHANGER
CALL CalcVerticalGroundHeatExchanger(GlheNum)
CALL UpdateVerticalGroundHeatExchanger(RunFlag,GlheNum)
RETURN
END SUBROUTINE SimGroundHeatExchangers