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) | :: | CompType | |||
character(len=*), | intent(in) | :: | CompName | |||
integer, | intent(in) | :: | CompTypeNum | |||
integer, | intent(inout) | :: | CompNum | |||
logical, | intent(in) | :: | RunFlag | |||
logical, | intent(inout) | :: | InitLoopEquip | |||
real(kind=r64), | intent(inout) | :: | MyLoad | |||
real(kind=r64), | intent(out) | :: | MaxCap | |||
real(kind=r64), | intent(out) | :: | MinCap | |||
real(kind=r64), | intent(out) | :: | OptCap | |||
logical, | intent(in) | :: | FirstHVACIteration |
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 SimICEPlantHeatRecovery(CompType,CompName,CompTypeNum,CompNum,RunFlag,InitLoopEquip, & !DSU
MyLoad,MaxCap,MinCap,OptCap,FirstHVACIteration)
! SUBROUTINE INFORMATION:
! AUTHOR BGriffith
! DATE WRITTEN March 2008
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Fill data needed in PlantLoopEquipments
! METHODOLOGY EMPLOYED:
! <description>
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor, ONLY: FindItemInList
USE PlantUtilities, ONLY: UpdateComponentHeatRecoverySide
USE DataPlant, ONLY: TypeOf_Generator_ICEngine
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: CompType
CHARACTER(len=*), INTENT(IN) :: CompName
INTEGER, INTENT(IN) :: CompTypeNum
INTEGER, INTENT(INOUT) :: CompNum
LOGICAL, INTENT(IN) :: RunFlag
!INTEGER, INTENT(IN) :: FlowLock !DSU
LOGICAL, INTENT(INOUT) :: InitLoopEquip
REAL(r64), INTENT(INOUT) :: MyLoad
REAL(r64), INTENT(OUT) :: MinCap
REAL(r64), INTENT(OUT) :: MaxCap
REAL(r64), INTENT(OUT) :: OptCap
LOGICAL, INTENT(IN) :: FirstHVACIteration ! TRUE if First iteration of simulation
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
! na
IF (GetICEInput) THEN
CALL GetICEngineGeneratorInput
GetICEInput = .FALSE.
END IF
If (InitLoopEquip) Then
CompNum = FindItemInList(CompName, ICEngineGenerator%name, NumICEngineGenerators)
If (CompNum == 0) Then
CALL ShowFatalError('SimICEPlantHeatRecovery: ICE Generator Unit not found='//TRIM(CompName))
RETURN
ENDIF
MinCap = 0.0d0
MaxCap = 0.0d0
OptCap = 0.0d0
RETURN
ENDIF ! End Of InitLoopEquip
CALL UpdateComponentHeatRecoverySide(ICEngineGenerator(CompNum)%HRLoopNum, &
ICEngineGenerator(CompNum)%HRLoopSideNum, &
TypeOf_Generator_ICEngine, &
ICEngineGenerator(CompNum)%HeatRecInletNodeNum, &
ICEngineGenerator(CompNum)%HeatRecOutletNodeNum, &
ICEngineGeneratorReport(CompNum)%QTotalHeatRecovered, &
ICEngineGeneratorReport(CompNum)%HeatRecInletTemp, &
ICEngineGeneratorReport(CompNum)%HeatRecOutletTemp, &
ICEngineGeneratorReport(CompNum)%HeatRecMdot , &
FirstHVACIteration)
RETURN
END SUBROUTINE SimICEPlantHeatRecovery