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.
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 FigureFuelCellZoneGains
! SUBROUTINE INFORMATION:
! AUTHOR B. Griffith
! DATE WRITTEN Aug 2005
! MODIFIED BG March 2007
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Couple equpment skin losses to the Zone Heat Balance
! calculate skin losses from different subsystems and set the value
! METHODOLOGY EMPLOYED:
! This routine adds up the various skin losses and then
! sets the values in the ZoneIntGain structure
! REFERENCES:
! na
! USE STATEMENTS:
! na
USE DataHeatBalance , ONLY: ZoneIntGain
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
!unused INTEGER :: thisZone ! index in Zone structure array
REAL(r64) :: TotalZoneHeatGain ! working variable for zone gain [w]
! INTEGER :: ZoneNum
INTEGER :: FCnum ! number of fuel cell
LOGICAL, SAVE :: MyEnvrnFlag = .TRUE.
IF (NumFuelCellGenerators == 0) RETURN
IF (BeginEnvrnFlag .AND. MyEnvrnFlag) THEN
FuelCell%FCPM%HasBeenOn = .FALSE.
FuelCell%AirSup%PairCompEl = 0.d0
FuelCell%QconvZone = 0.d0
FuelCell%QradZone = 0.d0
FuelCell%AirSup%QskinLoss = 0.d0
FuelSupply%QskinLoss = 0.d0
FuelCell%WaterSup%QskinLoss = 0.d0
FuelCell%AuxilHeat%QskinLoss = 0.d0
FuelCell%FCPM%QdotSkin = 0.d0
FuelCell%Report%SkinLossConvect = 0.d0
FuelCell%Report%SkinLossRadiat = 0.d0
FuelCell%AuxilHeat%QairIntake = 0.d0
FuelCell%ElecStorage%QairIntake = 0.d0
FuelCell%Inverter%QairIntake = 0.d0
MyEnvrnFlag = .FALSE.
END IF
IF( .NOT. BeginEnvrnFlag) MyEnvrnFlag = .TRUE.
! this routine needs to do something for zone gains during sizing
!first collect skin losses from different subsystems
Do FCnum =1, NumFuelCellGenerators
TotalZoneHeatGain = FuelCell(FCnum)%AirSup%QskinLoss & ! intake Blower losses to zone
+ FuelSupply(FuelCell(FCnum)%FuelSupNum)%QskinLoss & ! fuel compressor losses to zone
+ FuelCell(FCnum)%WaterSup%QskinLoss & ! water pump losses to zone
+ FuelCell(FCnum)%AuxilHeat%QskinLoss & ! auxil burner losses to zone
+ FuelCell(FCnum)%FCPM%QdotSkin ! power module (stack and reformer) losses to zone
! now account for other subsystems that may or may not have air intake recovery
SELECT CASE (FuelCell(FCnum)%AirSup%IntakeRecoveryMode)
CASE(NoRecoveryOnAirIntake) ! then the heat has to go into zone
TotalZoneHeatGain = TotalZoneHeatGain + FuelCell(FCnum)%AuxilHeat%QairIntake &
+ FuelCell(FCnum)%ElecStorage%QairIntake &
+ FuelCell(FCnum)%Inverter%QairIntake
CASE(RecoverAuxiliaryBurner)
TotalZoneHeatGain = TotalZoneHeatGain + FuelCell(FCnum)%ElecStorage%QairIntake &
+ FuelCell(FCnum)%Inverter%QairIntake
CASE(RecoverInverterBatt)
TotalZoneHeatGain = TotalZoneHeatGain + FuelCell(FCnum)%AuxilHeat%QairIntake
CASE(RecoverInverter)
TotalZoneHeatGain = TotalZoneHeatGain + FuelCell(FCnum)%AuxilHeat%QairIntake &
+ FuelCell(FCnum)%ElecStorage%QairIntake
CASE(RecoverBattery)
TotalZoneHeatGain = TotalZoneHeatGain + FuelCell(FCnum)%AuxilHeat%QairIntake &
+ FuelCell(FCnum)%Inverter%QairIntake
CASE(RecoverBurnInvertBatt)
! do nothing
END SELECT
FuelCell(FCnum)%QconvZone = TotalZoneHeatGain * (1 - FuelCell(FCnum)%FCPM%RadiativeFract)
FuelCell(FCnum)%Report%SkinLossConvect = FuelCell(FCnum)%QconvZone
FuelCell(FCnum)%QradZone = TotalZoneHeatGain * FuelCell(FCnum)%FCPM%RadiativeFract
FuelCell(FCnum)%Report%SkinLossRadiat = FuelCell(FCnum)%QradZone
ENDDO ! over number of Fuel cells
! IF(DoingSizing)THEN
! ENDIF
RETURN
END SUBROUTINE FigureFuelCellZoneGains