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) | :: | CompName | |||
logical, | intent(in) | :: | FirstHVACIteration | |||
logical, | intent(in) | :: | FirstCall | |||
logical | :: | SplitterInletChanged | ||||
integer, | intent(inout) | :: | CompIndex |
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 SimAirLoopSplitter(CompName,FirstHVACIteration, FirstCall, SplitterInletChanged,CompIndex)
! SUBROUTINE INFORMATION:
! AUTHOR Richard Liesen
! DATE WRITTEN March 2000
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine manages Splitter component simulation.
! It is called from the SimAirLoopComponent
! at the system time step.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor, ONLY: FindItemInList
USE General, ONLY: TrimSigDigits
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: CompName
LOGICAL, INTENT(IN) :: FirstHVACIteration
LOGICAL, INTENT(IN) :: FirstCall
LOGICAL :: SplitterInletChanged
INTEGER, INTENT(INOUT) :: CompIndex
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: SplitterNum ! The Splitter that you are currently loading input for
! FLOW:
! Obtains and Allocates Splitter related parameters from input file
IF (GetSplitterInputFlag) THEN !First time subroutine has been entered
CALL GetSplitterInput
End If
! Find the correct SplitterNumber
IF (CompIndex == 0) THEN
SplitterNum=FindItemInList(CompName,SplitterCond%SplitterName,NumSplitters)
IF (SplitterNum == 0) THEN
CALL ShowFatalError('SimAirLoopSplitter: Splitter not found='//TRIM(CompName))
ENDIF
CompIndex=SplitterNum
ELSE
SplitterNum=CompIndex
IF (SplitterNum > NumSplitters .or. SplitterNum < 1) THEN
CALL ShowFatalError('SimAirLoopSplitter: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(SplitterNum))// &
', Number of Splitters='//TRIM(TrimSigDigits(NumSplitters))// &
', Splitter name='//TRIM(CompName))
ENDIF
IF (CheckEquipName(SplitterNum)) THEN
IF (CompName /= SplitterCond(SplitterNum)%SplitterName) THEN
CALL ShowFatalError('SimAirLoopSplitter: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(SplitterNum))// &
', Splitter name='//TRIM(CompName)//', stored Splitter Name for that index='// &
TRIM(SplitterCond(SplitterNum)%SplitterName))
ENDIF
CheckEquipName(SplitterNum)=.false.
ENDIF
ENDIF
CALL InitAirLoopSplitter(SplitterNum, FirstHVACIteration, FirstCall) ! Initialize all Splitter related parameters
CALL CalcAirLoopSplitter(SplitterNum, FirstCall)
! Update the current Splitter to the outlet nodes
Call UpdateSplitter(SplitterNum, SplitterInletChanged, FirstCall)
! Report the current Splitter
Call ReportSplitter(SplitterNum)
RETURN
END SUBROUTINE SimAirLoopSplitter