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 SimFuelCellPlantHeatRecovery(CompType,CompName,CompTypeNum,CompNum,RunFlag,InitLoopEquip, & !DSU
MyLoad,MaxCap,MinCap,OptCap,FirstHVACIteration)
! SUBROUTINE INFORMATION:
! AUTHOR B. Griffith
! DATE WRITTEN Jan 2006
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! makes sure input are gotten and setup from Plant loop perspective.
! does not (re)simulate entire FuelCell model
! METHODOLOGY EMPLOYED:
! <description>
! REFERENCES:
! na
! USE STATEMENTS:
! na
USE InputProcessor, ONLY: FindItemInList
USE DataPlant, ONLY: TypeOf_Generator_FCExhaust, TypeOf_Generator_FCStackCooler
USE PlantUtilities, ONLY: UpdateComponentHeatRecoverySide
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 !unused1208
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 (GetFuelCellInput) THEN
! Read input data.
CALL GetFuelCellGeneratorInput
GetFuelCellInput=.false.
ENDIF
If (InitLoopEquip) Then
IF (CompTypeNum == TypeOf_Generator_FCExhaust) THEN
CompNum = FindItemInList(CompName,FuelCell%NameExhaustHX,NumFuelCellGenerators)
ELSEIF (CompTypeNum == TypeOf_Generator_FCStackCooler) THEN
CompNum = FindItemInList(CompName,FuelCell%NameStackCooler,NumFuelCellGenerators)
ENDIF
IF (CompNum == 0) THEN
CALL ShowFatalError('SimFuelCellPlantHeatRecovery: Fuel Cell Generator Unit not found='//TRIM(CompName))
ENDIF
MinCap = 0.0d0
MaxCap = 0.0d0
OptCap = 0.0d0
RETURN
END IF ! End Of InitLoopEquip
IF (CompTypeNum == TypeOf_Generator_FCStackCooler) THEN
CALL UpdateComponentHeatRecoverySide(FuelCell(CompNum)%CWLoopNum, &
FuelCell(CompNum)%CWLoopSideNum, &
TypeOf_Generator_FCStackCooler, &
FuelCell(CompNum)%StackCooler%WaterInNode, &
FuelCell(CompNum)%StackCooler%WaterOutNode, &
FuelCell(CompNum)%Report%qHX, &
FuelCell(CompNum)%Report%HeatRecInletTemp, &
FuelCell(CompNum)%Report%HeatRecOutletTemp, &
FuelCell(CompNum)%Report%HeatRecMdot , &
FirstHVACIteration)
ELSEIF (CompTypeNum == TypeOf_Generator_FCExhaust) THEN
CALL UpdateComponentHeatRecoverySide(FuelCell(CompNum)%CWLoopNum, &
FuelCell(CompNum)%CWLoopSideNum, &
TypeOf_Generator_FCExhaust, &
FuelCell(CompNum)%ExhaustHX%WaterInNode, &
FuelCell(CompNum)%ExhaustHX%WaterOutNode, &
FuelCell(CompNum)%Report%qHX, &
FuelCell(CompNum)%Report%HeatRecInletTemp, &
FuelCell(CompNum)%Report%HeatRecOutletTemp, &
FuelCell(CompNum)%Report%HeatRecMdot , &
FirstHVACIteration)
ENDIF
RETURN
END SUBROUTINE SimFuelCellPlantHeatRecovery