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 GatherComponentLoadsIntGain
! SUBROUTINE INFORMATION:
! AUTHOR Jason Glazer
! DATE WRITTEN September 2012
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Gather values during sizing used for loads component report.
! METHODOLOGY EMPLOYED:
! Save sequence of values for report during sizing.
! REFERENCES:
! na
! USE STATEMENTS:
! na
USE DataHeatBalance
USE DataGlobals, ONLY: NumOfTimeStepInHour, CompLoadReportIsReq, isPulseZoneSizing
USE DataSizing, ONLY: CurOverallSimDay
USE OutputReportTabular, ONLY: peopleInstantSeq, peopleLatentSeq, peopleRadSeq, &
lightInstantSeq, lightRetAirSeq, lightLWRadSeq, &
equipInstantSeq, equipLatentSeq, equipRadSeq, &
refrigInstantSeq, refrigRetAirSeq, refrigLatentSeq, &
waterUseInstantSeq, waterUseLatentSeq, &
hvacLossInstantSeq, hvacLossRadSeq, &
powerGenInstantSeq, powerGenRadSeq
IMPLICIT NONE
! SUBROUTINE ARGUMENT DEFINITIONS:
! na
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: iZone = 0
INTEGER :: TimeStepInDay = 0
INTEGER, DIMENSION(1) :: IntGainTypesPeople = (/ IntGainTypeOf_People/)
INTEGER, DIMENSION(1) :: IntGainTypesLight = (/ IntGainTypeOf_Lights/)
INTEGER, DIMENSION(5) :: IntGainTypesEquip = (/ IntGainTypeOf_ElectricEquipment, &
IntGainTypeOf_GasEquipment, &
IntGainTypeOf_HotWaterEquipment ,&
IntGainTypeOf_SteamEquipment, &
IntGainTypeOf_OtherEquipment/)
INTEGER, DIMENSION(7) :: IntGainTypesRefrig = (/ IntGainTypeOf_RefrigerationCase, &
IntGainTypeOf_RefrigerationCompressorRack, &
IntGainTypeOf_RefrigerationSystemAirCooledCondenser ,&
IntGainTypeOf_RefrigerationSystemSuctionPipe, &
IntGainTypeOf_RefrigerationSecondaryReceiver, &
IntGainTypeOf_RefrigerationSecondaryPipe, &
IntGainTypeOf_RefrigerationWalkIn/)
INTEGER, DIMENSION(3) :: IntGainTypesWaterUse = (/ IntGainTypeOf_WaterUseEquipment, &
IntGainTypeOf_WaterHeaterMixed, &
IntGainTypeOf_WaterHeaterStratified/)
INTEGER, DIMENSION(13) :: IntGainTypesHvacLoss = (/ IntGainTypeOf_ZoneBaseboardOutdoorTemperatureControlled, &
IntGainTypeOf_ThermalStorageChilledWaterMixed, &
IntGainTypeOf_ThermalStorageChilledWaterStratified, &
IntGainTypeOf_PipeIndoor, &
IntGainTypeOf_Pump_VarSpeed, &
IntGainTypeOf_Pump_ConSpeed, &
IntGainTypeOf_Pump_Cond, &
IntGainTypeOf_PumpBank_VarSpeed, &
IntGainTypeOf_PumpBank_ConSpeed, &
IntGainTypeOf_PlantComponentUserDefined, &
IntGainTypeOf_CoilUserDefined, &
IntGainTypeOf_ZoneHVACForcedAirUserDefined, &
IntGainTypeOf_AirTerminalUserDefined/)
INTEGER, DIMENSION(8) :: IntGainTypesPowerGen = (/ IntGainTypeOf_GeneratorFuelCell, &
IntGainTypeOf_GeneratorMicroCHP, &
IntGainTypeOf_ElectricLoadCenterTransformer ,&
IntGainTypeOf_ElectricLoadCenterInverterSimple, &
IntGainTypeOf_ElectricLoadCenterInverterFunctionOfPower, &
IntGainTypeOf_ElectricLoadCenterInverterLookUpTable, &
IntGainTypeOf_ElectricLoadCenterStorageBattery, &
IntGainTypeOf_ElectricLoadCenterStorageSimple/)
IF (CompLoadReportIsReq .AND. .NOT. isPulseZoneSizing) THEN
TimeStepInDay = (HourOfDay-1)*NumOfTimeStepInHour + TimeStep
DO iZone = 1, NumOfZones
CALL SumInternalConvectionGainsByTypes(iZone, IntGainTypesPeople, peopleInstantSeq(iZone,TimeStepInDay,CurOverallSimDay))
CALL SumInternalLatentGainsByTypes(iZone, IntGainTypesPeople, peopleLatentSeq(iZone,TimeStepInDay,CurOverallSimDay))
CALL SumInternalRadiationGainsByTypes(iZone, IntGainTypesPeople, peopleRadSeq(iZone,TimeStepInDay,CurOverallSimDay))
CALL SumInternalConvectionGainsByTypes(iZone, IntGainTypesLight, lightInstantSeq(iZone,TimeStepInDay,CurOverallSimDay))
CALL SumReturnAirConvectionGainsByTypes(iZone, IntGainTypesLight, lightRetAirSeq(iZone,TimeStepInDay,CurOverallSimDay))
CALL SumInternalRadiationGainsByTypes(iZone, IntGainTypesLight, lightLWRadSeq(iZone,TimeStepInDay,CurOverallSimDay))
CALL SumInternalConvectionGainsByTypes(iZone, IntGainTypesEquip, equipInstantSeq(iZone,TimeStepInDay,CurOverallSimDay))
CALL SumInternalLatentGainsByTypes(iZone, IntGainTypesEquip, equipLatentSeq(iZone,TimeStepInDay,CurOverallSimDay))
CALL SumInternalRadiationGainsByTypes(iZone, IntGainTypesEquip, equipRadSeq(iZone,TimeStepInDay,CurOverallSimDay))
CALL SumInternalConvectionGainsByTypes(iZone, IntGainTypesRefrig, refrigInstantSeq(iZone,TimeStepInDay,CurOverallSimDay))
CALL SumReturnAirConvectionGainsByTypes(iZone, IntGainTypesRefrig, refrigRetAirSeq(iZone,TimeStepInDay,CurOverallSimDay))
CALL SumInternalLatentGainsByTypes(iZone, IntGainTypesRefrig, refrigLatentSeq(iZone,TimeStepInDay,CurOverallSimDay))
CALL SumInternalConvectionGainsByTypes(iZone, IntGainTypesWaterUse, waterUseInstantSeq(iZone,TimeStepInDay,CurOverallSimDay))
CALL SumInternalLatentGainsByTypes(iZone, IntGainTypesWaterUse, waterUseLatentSeq(iZone,TimeStepInDay,CurOverallSimDay))
CALL SumInternalConvectionGainsByTypes(iZone, IntGainTypesHvacLoss, hvacLossInstantSeq(iZone,TimeStepInDay,CurOverallSimDay))
CALL SumInternalRadiationGainsByTypes(iZone, IntGainTypesHvacLoss, hvacLossRadSeq(iZone,TimeStepInDay,CurOverallSimDay))
CALL SumInternalConvectionGainsByTypes(iZone, IntGainTypesPowerGen, powerGenInstantSeq(iZone,TimeStepInDay,CurOverallSimDay))
CALL SumInternalRadiationGainsByTypes(iZone, IntGainTypesPowerGen, powerGenRadSeq(iZone,TimeStepInDay,CurOverallSimDay))
END DO
END IF
END SUBROUTINE GatherComponentLoadsIntGain