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.
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 AllocateAndSetUpVentReports
! SUBROUTINE INFORMATION:
! AUTHOR Sankaranarayanan K P
! DATE WRITTEN July 2005
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Allocates Arrays and setup output variables related to Ventilation reports.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE DataZoneEquipment, ONLY: ZoneEquipConfig, NumOfZones
! Subroutine Variable Declaration
INTEGER ZoneIndex
INTEGER SysIndex
ALLOCATE(MaxCoolingLoadMetByVent(NumOfZones))
ALLOCATE(MaxCoolingLoadAddedByVent(NumOfZones))
ALLOCATE(MaxOvercoolingByVent(NumOfZones))
ALLOCATE(MaxHeatingLoadMetByVent(NumOfZones))
ALLOCATE(MaxHeatingLoadAddedByVent(NumOfZones))
ALLOCATE(MaxOverheatingByVent(NumOfZones))
ALLOCATE(MaxNoLoadHeatingByVent(NumOfZones))
ALLOCATE(MaxNoLoadCoolingByVent(NumOfZones))
ALLOCATE(ZoneOAMassFlow(NumOfZones))
ALLOCATE(ZoneOAMass(NumOfZones))
ALLOCATE(ZoneOAVolFlowStdRho(NumOfZones))
ALLOCATE(ZoneOAVolStdRho(NumOfZones))
ALLOCATE(ZoneOAVolFlowCrntRho(NumOfZones))
ALLOCATE(ZoneOAVolCrntRho(NumOfZones))
ALLOCATE(ZoneMechACH(NumOfZones))
ALLOCATE(SysTotZoneLoadHTNG(NumPrimaryAirSys))
ALLOCATE(SysTotZoneLoadCLNG(NumPrimaryAirSys))
ALLOCATE(SysOALoadHTNG(NumPrimaryAirSys))
ALLOCATE(SysOALoadCLNG(NumPrimaryAirSys))
ALLOCATE(SysTotHTNG(NumPrimaryAirSys))
ALLOCATE(SysTotCLNG(NumPrimaryAirSys))
ALLOCATE(SysTotElec(NumPrimaryAirSys))
ALLOCATE(SystotGas(NumPrimaryAirSys))
ALLOCATE(SysTotSteam(NumPrimaryAirSys))
ALLOCATE(SysTotH2OCOLD(NumPrimaryAirSys))
ALLOCATE(SysTotH2OHOT(NumPrimaryAirSys))
ALLOCATE(SysHumidHTNG(NumPrimaryAirSys))
ALLOCATE(SysHumidElec(NumPrimaryAirSys))
ALLOCATE(DesDehumidCLNG(NumPrimaryAirSys))
ALLOCATE(DesDehumidElec(NumPrimaryAirSys))
ALLOCATE(SysEvapCLNG(NumPrimaryAirSys))
ALLOCATE(SysEvapElec(NumPrimaryAirSys))
ALLOCATE(SysHeatExHTNG(NumPrimaryAirSys))
ALLOCATE(SysHeatExCLNG(NumPrimaryAirSys))
ALLOCATE(SysSolarCollectHeating(NumPrimaryAirSys))
ALLOCATE(SysSolarCollectCooling(NumPrimaryAirSys))
ALLOCATE(SysUserDefinedTerminalHeating(NumPrimaryAirSys))
ALLOCATE(SysUserDefinedTerminalCooling(NumPrimaryAirSys))
ALLOCATE(SysFANCompHTNG(NumPrimaryAirSys))
ALLOCATE(SysFANCompElec(NumPrimaryAirSys))
ALLOCATE(SysCCCompCLNG(NumPrimaryAirSys))
ALLOCATE(SysCCCompH2OCOLD(NumPrimaryAirSys))
ALLOCATE(SysCCCompElec(NumPrimaryAirSys))
ALLOCATE(SysHCCompH2OHOT(NumPrimaryAirSys))
ALLOCATE(SysHCCompElec(NumPrimaryAirSys))
ALLOCATE(SysHCCompElecRes(NumPrimaryAirSys))
ALLOCATE(SysHCCompHTNG(NumPrimaryAirSys))
ALLOCATE(SysHCCompGas(NumPrimaryAirSys))
ALLOCATE(SysHCCompSteam(NumPrimaryAirSys))
ALLOCATE(SysDomesticH20(NumPrimaryAirSys))
ALLOCATE(SetBackCounter(NumOfZones))
ALLOCATE(HeatCoolFlag(NumOfZones))
ALLOCATE(LastHeatCoolFlag(NumOfZones))
ALLOCATE(FirstHeatCoolFlag(NumOfZones))
ALLOCATE(LastHeatCoolHour(NumOfZones))
ALLOCATE(FirstHeatCoolHour(NumOfZones))
ALLOCATE(NoLoadFlag(NumOfZones))
ALLOCATE(UnmetLoadFlag(NumOfZones))
UnmetLoadFlag = .FALSE.
SetBackCounter = 0
HeatCoolFlag = 0
LastHeatCoolFlag = 0
FirstHeatCoolFlag = 0
LastHeatCoolHour = 0
FirstHeatCoolHour = 0
NoLoadFlag = .FALSE.
MaxCoolingLoadMetByVent = 0.0d0
MaxCoolingLoadAddedByVent = 0.0d0
MaxOvercoolingByVent = 0.0d0
MaxHeatingLoadMetByVent = 0.0d0
MaxHeatingLoadAddedByVent = 0.0d0
MaxOverheatingByVent = 0.0d0
MaxNoLoadHeatingByVent = 0.0d0
MaxNoLoadCoolingByVent = 0.0d0
ZoneOAMassFlow = 0.0d0
ZoneOAMass = 0.0d0
ZoneOAVolFlowStdRho = 0.0d0
ZoneOAVolStdRho = 0.0d0
ZoneOAVolFlowCrntRho = 0.0d0
ZoneOAVolCrntRho = 0.0d0
ZoneMechACH = 0.0d0
!SYSTEM LOADS REPORT
SysTotZoneLoadHTNG = 0.0d0
SysTotZoneLoadCLNG = 0.0d0
SysOALoadHTNG = 0.0d0
SysOALoadCLNG = 0.0d0
SysTotHTNG = 0.0d0
SysTotCLNG = 0.0d0
!SYSTEM ENERGY USE REPORT
SysTotElec = 0.0d0
SystotGas = 0.0d0
SysTotSteam = 0.0d0
SysTotH2OCOLD = 0.0d0
SysTotH2OHOT = 0.0d0
!SYSTEM COMPONENT LOADS REPORT
SysFANCompHTNG = 0.0d0
SysCCCompCLNG = 0.0d0
SysHCCompHTNG = 0.0d0
SysHeatExHTNG = 0.0d0
SysHeatExCLNG = 0.0d0
SysSolarCollectHeating = 0.d0
SysSolarCollectCooling = 0.d0
SysUserDefinedTerminalHeating = 0.d0
SysUserDefinedTerminalCooling = 0.d0
SysHumidHTNG = 0.0d0
SysEvapCLNG = 0.0d0
DesDehumidCLNG = 0.0d0
SysDomesticH20 = 0.0d0
!SYSTEM COMPONENT ENERGY REPORT
SysFANCompElec = 0.0d0
SysHCCompH2OHOT = 0.0d0
SysCCCompH2OCOLD = 0.0d0
SysHCCompElec = 0.0d0
SysCCCompElec = 0.0d0
SysHCCompElecRes = 0.0d0
SysHCCompGas = 0.0d0
SysHCCompSteam = 0.0d0
SysHumidElec = 0.0d0
DesDehumidElec = 0.0d0
SysEvapElec = 0.0d0
IF (AirLoopLoadsReportEnabled) THEN
DO SysIndex=1,NumPrimaryAirSys
!CurrentModuleObject='AirloopHVAC'
!SYSTEM LOADS REPORT
CALL SetupOutputVariable('Air System Total Heating Energy [J]', SysTotHTNG(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System Total Cooling Energy [J]', SysTotCLNG(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
!SYSTEM ENERGY USE REPORT
CALL SetupOutputVariable('Air System Hot Water Energy [J]', SysTotH2OHOT(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System Steam Energy [J]', SysTotSteam(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System Chilled Water Energy [J]', SysTotH2OCOLD(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System Electric Energy [J]', SysTotElec(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System Gas Energy [J]', SysTotGas(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System Water Volume [m3]', SysDomesticH20(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
!SYSTEM COMPONENT LOAD REPORT
CALL SetupOutputVariable('Air System Fan Air Heating Energy [J]', SysFANCompHTNG(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System Cooling Coil Total Cooling Energy [J]', SysCCCompCLNG(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System Heating Coil Total Heating Energy [J]', SysHCCompHTNG(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System Heat Exchanger Total Heating Energy [J]', SysHeatExHTNG(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System Heat Exchanger Total Cooling Energy [J]', SysHeatExCLNG(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System Solar Collector Total Heating Energy [J]', SysSolarCollectHeating(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System Solar Collector Total Cooling Energy [J]', SysSolarCollectCooling(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System User Defined Air Terminal Total Heating Energy [J]', &
SysUserDefinedTerminalHeating(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System User Defined Air Terminal Total Cooling Energy [J]', &
SysUserDefinedTerminalCooling(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System Humidifier Total Heating Energy [J]', SysHumidHTNG(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System Evaporative Cooler Total Cooling Energy [J]', SysEvapCLNG(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System Desiccant Dehumidifier Total Cooling Energy [J]', DesDehumidCLNG(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
!SYSTEM COMPONENT ENERGY REPORT
CALL SetupOutputVariable('Air System Fan Electric Energy [J]', SysFANCompElec(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System Heating Coil Hot Water Energy [J]', SysHCCompH2OHOT(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System Cooling Coil Chilled Water Energy [J]', SysCCCompH2OCOLD(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System DX Heating Coil Electric Energy [J]', SysHCCompElec(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System DX Cooling Coil Electric Energy [J]', SysCCCompElec(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System Heating Coil Electric Energy [J]', SysHCCompElecRes(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System Heating Coil Gas Energy [J]', SysHCCompGas(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System Heating Coil Steam Energy [J]', SysHCCompSteam(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System Humidifier Electric Energy [J]', SysHumidElec(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System Evaporative Cooler Electric Energy [J]', SysEvapElec(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
CALL SetupOutputVariable('Air System Desiccant Dehumidifier Electric Energy [J]', DesDehumidElec(SysIndex), &
'HVAC','Sum', PrimaryAirSystem(SysIndex)%Name)
ENDDO
ENDIF
DO ZoneIndex=1,NumOfZones
IF (.not. ZoneEquipConfig(ZoneIndex)%IsControlled) CYCLE
! CurrentModuleObject='Zones(Controlled)'
IF (VentLoadsReportEnabled) THEN
!Cooling Loads
CALL SetupOutputVariable('Zone Mechanical Ventilation No Load Heat Removal Energy [J]', MaxNoLoadCoolingByVent(ZoneIndex), &
'HVAC','Sum', ZoneEquipConfig(ZoneIndex)%ZoneName)
CALL SetupOutputVariable('Zone Mechanical Ventilation Cooling Load Increase Energy [J]', &
MaxCoolingLoadAddedByVent(ZoneIndex), &
'HVAC','Sum', ZoneEquipConfig(ZoneIndex)%ZoneName)
CALL SetupOutputVariable('Zone Mechanical Ventilation Cooling Load Increase Due to Overheating Energy [J]', &
MaxOverheatingByVent(ZoneIndex), &
'HVAC','Sum', ZoneEquipConfig(ZoneIndex)%ZoneName)
CALL SetupOutputVariable('Zone Mechanical Ventilation Cooling Load Decrease Energy [J]', MaxCoolingLoadMetByVent(ZoneIndex), &
'HVAC','Sum', ZoneEquipConfig(ZoneIndex)%ZoneName)
!Heating Loads
CALL SetupOutputVariable('Zone Mechanical Ventilation No Load Heat Addition Energy [J]', MaxNoLoadHeatingByVent(ZoneIndex), &
'HVAC','Sum', ZoneEquipConfig(ZoneIndex)%ZoneName)
CALL SetupOutputVariable('Zone Mechanical Ventilation Heating Load Increase Energy [J]', &
MaxHeatingLoadAddedByVent(ZoneIndex), &
'HVAC','Sum', ZoneEquipConfig(ZoneIndex)%ZoneName)
CALL SetupOutputVariable('Zone Mechanical Ventilation Heating Load Increase Due to Overcooling Energy [J]', &
MaxOvercoolingByVent(ZoneIndex), &
'HVAC','Sum', ZoneEquipConfig(ZoneIndex)%ZoneName)
CALL SetupOutputVariable('Zone Mechanical Ventilation Heating Load Decrease Energy [J]', MaxHeatingLoadMetByVent(ZoneIndex), &
'HVAC','Sum', ZoneEquipConfig(ZoneIndex)%ZoneName)
ENDIF
CALL SetupOutputVariable('Zone Mechanical Ventilation Mass Flow Rate [kg/s]', ZoneOAMassFlow(ZoneIndex), &
'HVAC','Average', ZoneEquipConfig(ZoneIndex)%ZoneName)
CALL SetupOutputVariable('Zone Mechanical Ventilation Mass [kg]', ZoneOAMass(ZoneIndex), &
'HVAC','Sum', ZoneEquipConfig(ZoneIndex)%ZoneName)
CALL SetupOutputVariable('Zone Mechanical Ventilation Standard Density Volume Flow Rate [m3/s]', &
ZoneOAVolFlowStdRho(ZoneIndex), &
'HVAC','Average', ZoneEquipConfig(ZoneIndex)%ZoneName)
CALL SetupOutputVariable('Zone Mechanical Ventilation Standard Density Volume [m3]', &
ZoneOAVolStdRho(ZoneIndex), &
'HVAC','Sum', ZoneEquipConfig(ZoneIndex)%ZoneName)
CALL SetupOutputVariable('Zone Mechanical Ventilation Current Density Volume Flow Rate [m3/s]', &
ZoneOAVolFlowCrntRho(ZoneIndex), &
'HVAC','Average', ZoneEquipConfig(ZoneIndex)%ZoneName)
CALL SetupOutputVariable('Zone Mechanical Ventilation Current Density Volume [m3]', &
ZoneOAVolCrntRho(ZoneIndex), &
'HVAC','Sum', ZoneEquipConfig(ZoneIndex)%ZoneName)
CALL SetupOutputVariable('Zone Mechanical Ventilation Air Changes per Hour [ach]', ZoneMechACH(ZoneIndex), &
'HVAC','Average', ZoneEquipConfig(ZoneIndex)%ZoneName)
END DO
RETURN
END SUBROUTINE AllocateAndSetUpVentReports