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 | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | Item |
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 SizeVentilatedSlab(Item)
! SUBROUTINE INFORMATION:
! AUTHOR Young Tae Chae, Rick Strand
! DATE WRITTEN June 2008
! MODIFIED July 2013 Daeho Kang, add component sizing table entries
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine is for sizing Ventilated Slab components for which flow rates have not been
! specified in the input.
! METHODOLOGY EMPLOYED:
! Obtains flow rates from the zone sizing arrays and plant sizing data.
! REFERENCES:
! na
! USE STATEMENTS:
USE DataSizing
USE InputProcessor
USE WaterCoils, ONLY: SetCoilDesFlow, GetCoilWaterInletNode, GetCoilWaterOutletNode
USE SteamCoils, ONLY: GetCoilSteamInletNode, GetCoilSteamOutletNode
USE HVACHXAssistedCoolingCoil, ONLY: GetHXDXCoilName, GetHXCoilType
! USE BranchInputManager, ONLY: MyPlantSizingIndex
USE FluidProperties, ONLY: GetDensityGlycol, GetSpecificHeatGlycol
USE DataPlant, ONLY: PlantLoop, MyPlantSizingIndex
USE ReportSizingManager, ONLY: ReportSizingOutput
USE General, ONLY: RoundSigDigits
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
Integer, Intent(IN) :: Item
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: PltSizHeatNum ! index of plant sizing object for 1st heating loop
INTEGER :: PltSizCoolNum ! index of plant sizing object for 1st cooling loop
LOGICAL :: ErrorsFound
REAL(r64) :: CoilInTemp
REAL(r64) :: CoilOutTemp
REAL(r64) :: CoilOutHumRat
REAL(r64) :: CoilInHumRat
REAL(r64) :: DesCoilLoad
REAL(r64) :: TempSteamIn
REAL(r64) :: EnthSteamInDry
REAL(r64) :: EnthSteamOutWet
REAL(r64) :: LatentHeatSteam
REAL(r64) :: SteamDensity
INTEGER :: CoilWaterInletNode=0
INTEGER :: CoilWaterOutletNode=0
INTEGER :: CoilSteamInletNode=0
INTEGER :: CoilSteamOutletNode=0
CHARACTER(len=MaxNameLength) :: CoolingCoilName
CHARACTER(len=MaxNameLength) :: CoolingCoilType
REAL(r64) :: rho
REAL(r64) :: Cp
INTEGER :: DummyWaterIndex = 1
LOGICAL :: IsAutosize ! Indicator to autosize
REAL(r64) :: MaxAirVolFlowDes ! Autosized maximum air flow for reporting
REAL(r64) :: MaxAirVolFlowUser ! Hardsized maximum air flow for reporting
REAL(r64) :: OutAirVolFlowDes ! Autosized outdoor air flow for reporting
REAL(r64) :: OutAirVolFlowUser ! Hardsized outdoor air flow for reporting
REAL(r64) :: MinOutAirVolFlowDes ! Autosized minimum outdoor air flow for reporting
REAL(r64) :: MinOutAirVolFlowUser ! Hardsized minimum outdoor air flow for reporting
REAL(r64) :: MaxVolHotWaterFlowDes ! Autosized maximum hot water flow for reporting
REAL(r64) :: MaxVolHotWaterFlowUser ! Hardsized maximum hot water flow for reporting
REAL(r64) :: MaxVolHotSteamFlowDes ! Autosized maximum hot steam flow for reporting
REAL(r64) :: MaxVolHotSteamFlowUser ! Hardsized maximum hot steam flow for reporting
REAL(r64) :: MaxVolColdWaterFlowDes ! Autosized maximum cold water flow for reporting
REAL(r64) :: MaxVolColdWaterFlowUser ! Hardsized maximum cold water flow for reporting
PltSizCoolNum = 0
PltSizHeatNum = 0
ErrorsFound = .FALSE.
IsAutosize = .FALSE.
MaxAirVolFlowDes = 0.0d0
MaxAirVolFlowUser = 0.0d0
OutAirVolFlowDes = 0.0d0
OutAirVolFlowUser = 0.0d0
MinOutAirVolFlowDes = 0.0d0
MinOutAirVolFlowUser = 0.0d0
MaxVolHotWaterFlowDes = 0.0d0
MaxVolHotWaterFlowUser = 0.0d0
MaxVolHotSteamFlowDes = 0.0d0
MaxVolHotSteamFlowUser = 0.0d0
MaxVolColdWaterFlowDes = 0.0d0
MaxVolColdWaterFlowUser = 0.0d0
IF (VentSlab(Item)%MaxAirVolFlow == AutoSize) THEN
IsAutosize = .TRUE.
END IF
IF (CurZoneEqNum > 0) THEN
IF (.NOT. IsAutosize .AND. .NOT. ZoneSizingRunDone) THEN
IF (VentSlab(Item)%MaxAirVolFlow > 0.0d0) THEN
CALL ReportSizingOutput(cMO_VentilatedSlab, VentSlab(Item)%Name, &
'User-Specified Maximum Air Flow Rate [m3/s]', VentSlab(Item)%MaxAirVolFlow)
END IF
ELSE ! Autosize or hard-size with sizing run
CALL CheckZoneSizing(cMO_VentilatedSlab, VentSlab(Item)%Name)
MaxAirVolFlowDes = MAX(FinalZoneSizing(CurZoneEqNum)%DesCoolVolFlow, &
FinalZoneSizing(CurZoneEqNum)%DesHeatVolFlow)
IF (MaxAirVolFlowDes < SmallAirVolFlow) THEN
MaxAirVolFlowDes = 0.0d0
END IF
IF (IsAutosize) THEN
VentSlab(Item)%MaxAirVolFlow = MaxAirVolFlowDes
CALL ReportSizingOutput(cMO_VentilatedSlab, VentSlab(Item)%Name, &
'Design Size Maximum Air Flow Rate [m3/s]', MaxAirVolFlowDes)
ELSE ! Hard-size with sizing data
IF (VentSlab(Item)%MaxAirVolFlow > 0.0d0 .AND. MaxAirVolFlowDes > 0.0d0) THEN
MaxAirVolFlowUser = VentSlab(Item)%MaxAirVolFlow
CALL ReportSizingOutput(cMO_VentilatedSlab, VentSlab(Item)%Name, &
'Design Size Maximum Air Flow Rate [m3/s]', MaxAirVolFlowDes, &
'User-Specified Maximum Air Flow Rate [m3/s]', MaxAirVolFlowUser)
IF (DisplayExtraWarnings) THEN
IF ((ABS(MaxAirVolFlowDes - MaxAirVolFlowUser)/MaxAirVolFlowUser) > AutoVsHardSizingThreshold) THEN
CALL ShowMessage('SizeVentilatedSlab: Potential issue with equipment sizing for ZoneHVAC:VentilatedSlab = " '// &
TRIM(VentSlab(Item)%Name)//'".')
CALL ShowContinueError('User-Specified Maximum Air Flow Rate of '// &
TRIM(RoundSigDigits(MaxAirVolFlowUser,5))// ' [m3/s]')
CALL ShowContinueError('differs from Design Size Maximum Air Flow of ' // &
TRIM(RoundSigDigits(MaxAirVolFlowDes,5))// ' [m3/s]')
CALL ShowContinueError('This may, or may not, indicate mismatched component sizes.')
CALL ShowContinueError('Verify that the value entered is intended and is consistent with other components.')
END IF
ENDIF
END IF
END IF
END IF
END IF
IsAutosize = .FALSE.
IF (VentSlab(Item)%OutAirVolFlow == AutoSize) THEN
IsAutosize = .TRUE.
END IF
IF (CurZoneEqNum > 0) THEN
IF (.NOT. IsAutosize .AND. .NOT. ZoneSizingRunDone) THEN
IF (VentSlab(Item)%OutAirVolFlow > 0.0d0) THEN
CALL ReportSizingOutput(cMO_VentilatedSlab, VentSlab(Item)%Name, &
'User-Specified Maximum Outdoor Air Flow Rate [m3/s]', VentSlab(Item)%OutAirVolFlow)
END IF
ELSE ! Autosize or hard-size with sizing run
CALL CheckZoneSizing(cMO_VentilatedSlab, VentSlab(Item)%Name)
OutAirVolFlowDes = VentSlab(Item)%MaxAirVolFlow
IF (IsAutosize) THEN
VentSlab(Item)%OutAirVolFlow = OutAirVolFlowDes
CALL ReportSizingOutput(cMO_VentilatedSlab, VentSlab(Item)%Name, &
'Design Size Maximum Outdoor Air Flow Rate [m3/s]', OutAirVolFlowDes)
ELSE
IF (VentSlab(Item)%OutAirVolFlow > 0.0d0 .AND. OutAirVolFlowDes > 0.0d0) THEN
OutAirVolFlowUser = VentSlab(Item)%OutAirVolFlow
CALL ReportSizingOutput(cMO_VentilatedSlab, VentSlab(Item)%Name, &
'Design Size Maximum Outdoor Air Flow Rate [m3/s]', OutAirVolFlowDes, &
'User-Specified Maximum Outdoor Air Flow Rate [m3/s]', OutAirVolFlowUser)
IF (DisplayExtraWarnings) THEN
IF ((ABS(OutAirVolFlowDes - OutAirVolFlowUser)/OutAirVolFlowUser) > AutoVsHardSizingThreshold) THEN
CALL ShowMessage('SizeVentilatedSlab: Potential issue with equipment sizing for ZoneHVAC:VentilatedSlab = " '// &
TRIM(VentSlab(Item)%Name)//'".')
CALL ShowContinueError('User-Specified Maximum Outdoor Air Flow Rate of '// &
TRIM(RoundSigDigits(OutAirVolFlowUser,5))// ' [m3/s]')
CALL ShowContinueError('differs from Design Size Maximum Outdoor Air Flow Rate of ' // &
TRIM(RoundSigDigits(OutAirVolFlowDes,5))// ' [m3/s]')
CALL ShowContinueError('This may, or may not, indicate mismatched component sizes.')
CALL ShowContinueError('Verify that the value entered is intended and is consistent with other components.')
END IF
ENDIF
END IF
END IF
END IF
END IF
IsAutosize = .FALSE.
IF (VentSlab(Item)%MinOutAirVolFlow == AutoSize) THEN
IsAutosize = .TRUE.
END IF
IF (CurZoneEqNum > 0) THEN
IF (.NOT. IsAutosize .AND. .NOT. ZoneSizingRunDone) THEN
IF (VentSlab(Item)%MinOutAirVolFlow > 0.0d0) THEN
CALL ReportSizingOutput(cMO_VentilatedSlab, VentSlab(Item)%Name, &
'User-Specified Minimum Outdoor Air Flow Rate [m3/s]',VentSlab(Item)%MinOutAirVolFlow)
END IF
ELSE
CALL CheckZoneSizing(cMO_VentilatedSlab, VentSlab(Item)%Name)
MinOutAirVolFlowDes = MIN(FinalZoneSizing(CurZoneEqNum)%MinOA, &
VentSlab(Item)%MaxAirVolFlow)
IF (MinOutAirVolFlowDes < SmallAirVolFlow) THEN
MinOutAirVolFlowDes = 0.0d0
END IF
IF (IsAutosize) THEN
VentSlab(Item)%MinOutAirVolFlow = MinOutAirVolFlowDes
CALL ReportSizingOutput(cMO_VentilatedSlab, VentSlab(Item)%Name, &
'Design Size Minimum Outdoor Air Flow Rate [m3/s]',MinOutAirVolFlowDes)
ELSE ! Hard-size with sizing data
IF (VentSlab(Item)%MinOutAirVolFlow > 0.0d0 .AND. MinOutAirVolFlowDes > 0.0d0) THEN
MinOutAirVolFlowUser = VentSlab(Item)%MinOutAirVolFlow
CALL ReportSizingOutput(cMO_VentilatedSlab, VentSlab(Item)%Name, &
'Design Size Minimum Outdoor Air Flow Rate [m3/s]',MinOutAirVolFlowDes, &
'User-Specified Minimum Outdoor Air Flow Rate [m3/s]',MinOutAirVolFlowUser)
IF (DisplayExtraWarnings) THEN
IF ((ABS(MinOutAirVolFlowDes - MinOutAirVolFlowUser)/MinOutAirVolFlowUser) > AutoVsHardSizingThreshold) THEN
CALL ShowMessage('SizeVentilatedSlab: Potential issue with equipment sizing for ZoneHVAC:VentilatedSlab = " '// &
TRIM(VentSlab(Item)%Name)//'".')
CALL ShowContinueError('User-Specified Minimum Outdoor Air Flow Rate of '// &
TRIM(RoundSigDigits(MinOutAirVolFlowUser,5))// ' [m3/s]')
CALL ShowContinueError('differs from Design Size Minimum Outdoor Air Flow Rate of ' // &
TRIM(RoundSigDigits(MinOutAirVolFlowDes,5))// ' [m3/s]')
CALL ShowContinueError('This may, or may not, indicate mismatched component sizes.')
CALL ShowContinueError('Verify that the value entered is intended and is consistent with other components.')
END IF
ENDIF
END IF
END IF
END IF
END IF
IsAutosize = .FALSE.
IF (VentSlab(Item)%MaxVolHotWaterFlow==AutoSize) THEN
IsAutosize = .TRUE.
END IF
IF (VentSlab(Item)%HCoilType == Heating_WaterCoilType) THEN
IF (CurZoneEqNum > 0) THEN
IF (.NOT. IsAutosize .AND. .NOT. ZoneSizingRunDone) THEN
IF (VentSlab(Item)%MaxVolHotWaterFlow > 0.0d0) THEN
CALL ReportSizingOutput(cMO_VentilatedSlab, VentSlab(Item)%Name, &
'User-Specified Maximum Hot Water Flow [m3/s]', VentSlab(Item)%MaxVolHotWaterFlow)
END IF
ELSE ! Autosize or hard-size with sizing run
CALL CheckZoneSizing(cMO_VentilatedSlab, VentSlab(Item)%Name)
CoilWaterInletNode = GetCoilWaterInletNode('Coil:Heating:Water',VentSlab(Item)%HCoilName,ErrorsFound)
CoilWaterOutletNode = GetCoilWaterOutletNode('Coil:Heating:Water',VentSlab(Item)%HCoilName,ErrorsFound)
IF (IsAutosize ) THEN
PltSizHeatNum = MyPlantSizingIndex('Coil:Heating:Water', VentSlab(Item)%HCoilName, CoilWaterInletNode, &
CoilWaterOutletNode, ErrorsFound)
!END IF
IF (PltSizHeatNum > 0) THEN
IF (FinalZoneSizing(CurZoneEqNum)%DesHeatMassFlow >= SmallAirVolFlow) THEN
CoilInTemp = FinalZoneSizing(CurZoneEqNum)%DesHeatCoilInTemp
CoilOutTemp = FinalZoneSizing(CurZoneEqNum)%HeatDesTemp
CoilOutHumRat = FinalZoneSizing(CurZoneEqNum)%HeatDesHumRat
DesCoilLoad = PsyCpAirFnWTdb(CoilOutHumRat, 0.5d0*(CoilInTemp+CoilOutTemp)) &
* FinalZoneSizing(CurZoneEqNum)%DesHeatMassFlow &
* (CoilOutTemp-CoilInTemp)
rho = GetDensityGlycol(PlantLoop(VentSlab(Item)%HWLoopNum )%fluidName, &
60.d0, &
PlantLoop( VentSlab(Item)%HWLoopNum )%fluidIndex, &
'SizeVentilatedSlab' )
Cp = GetSpecificHeatGlycol(PlantLoop(VentSlab(Item)%HWLoopNum )%fluidName, &
60.d0, &
PlantLoop( VentSlab(Item)%HWLoopNum )%fluidIndex, &
'SizeVentilatedSlab' )
MaxVolHotWaterFlowDes = DesCoilLoad / &
( PlantSizData(PltSizHeatNum)%DeltaT * &
Cp * rho )
ELSE
MaxVolHotWaterFlowDes = 0.0d0
END IF
ELSE
CALL ShowSevereError('Autosizing of water flow requires a heating loop Sizing:Plant object')
CALL ShowContinueError('Occurs in ' // cMO_VentilatedSlab // ' Object=' &
//TRIM(VentSlab(Item)%Name))
ErrorsFound = .TRUE.
END IF
END IF
IF (IsAutosize) THEN
VentSlab(Item)%MaxVolHotWaterFlow = MaxVolHotWaterFlowDes
CALL ReportSizingOutput(cMO_VentilatedSlab, VentSlab(Item)%Name, &
'Design Size Maximum Hot Water Flow [m3/s]', MaxVolHotWaterFlowDes)
ELSE ! Hard-size with sizing data
IF (VentSlab(Item)%MaxVolHotWaterFlow > 0.0d0 .AND. MaxVolHotWaterFlowDes > 0.0d0) THEN
MaxVolHotWaterFlowUser = VentSlab(Item)%MaxVolHotWaterFlow
CALL ReportSizingOutput(cMO_VentilatedSlab, VentSlab(Item)%Name, &
'Design Size Maximum Hot Water Flow [m3/s]', MaxVolHotWaterFlowDes, &
'User-Specified Maximum Hot Water Flow [m3/s]', MaxVolHotWaterFlowUser)
IF (DisplayExtraWarnings) THEN
IF ((ABS(MaxVolHotWaterFlowDes - MaxVolHotWaterFlowUser)/MaxVolHotWaterFlowUser) > AutoVsHardSizingThreshold) THEN
CALL ShowMessage('SizeVentilatedSlab: Potential issue with equipment sizing for ZoneHVAC:VentilatedSlab = " '// &
TRIM(VentSlab(Item)%Name)//'".')
CALL ShowContinueError('User-Specified Maximum Hot Water Flow of '// &
TRIM(RoundSigDigits(MaxVolHotWaterFlowUser,5))// ' [m3/s]')
CALL ShowContinueError('differs from Design Size Maximum Hot Water Flow of ' // &
TRIM(RoundSigDigits(MaxVolHotWaterFlowDes,5))// ' [m3/s]')
CALL ShowContinueError('This may, or may not, indicate mismatched component sizes.')
CALL ShowContinueError('Verify that the value entered is intended and is consistent with other components.')
END IF
ENDIF
END IF
END IF
END IF
END IF
ELSE
VentSlab(Item)%MaxVolHotWaterFlow = 0.0d0
END IF
IsAutosize = .FALSE.
IF (VentSlab(Item)%MaxVolHotSteamFlow==AutoSize) THEN
IsAutosize = .TRUE.
END IF
IF(VentSlab(Item)%HCoilType == Heating_SteamCoilType) THEN
IF (CurZoneEqNum > 0) THEN
IF (.NOT. IsAutosize .AND. .NOT. ZoneSizingRunDone) THEN
IF (VentSlab(Item)%MaxVolHotSteamFlow > 0.0d0) THEN
CALL ReportSizingOutput(cMO_VentilatedSlab, VentSlab(Item)%Name, &
'User-Specified Maximum Steam Flow [m3/s]', VentSlab(Item)%MaxVolHotSteamFlow)
END IF
ELSE ! Autosize or hard-size with sizing run
CALL CheckZoneSizing('ZoneHVAC:VentilatedSlab', VentSlab(Item)%Name)
CoilSteamInletNode = GetCoilSteamInletNode('Coil:Heating:Steam',VentSlab(Item)%HCoilName,ErrorsFound)
CoilSteamOutletNode = GetCoilSteamOutletNode('Coil:Heating:Steam',VentSlab(Item)%HCoilName,ErrorsFound)
IF (IsAutosize ) THEN
PltSizHeatNum = MyPlantSizingIndex('Coil:Heating:Steam', VentSlab(Item)%HCoilName, CoilSteamInletNode, &
CoilSteamOutletNode, ErrorsFound)
IF (PltSizHeatNum > 0) THEN
IF (FinalZoneSizing(CurZoneEqNum)%DesHeatMassFlow >= SmallAirVolFlow) THEN
CoilInTemp = FinalZoneSizing(CurZoneEqNum)%DesHeatCoilInTemp
CoilOutTemp = FinalZoneSizing(CurZoneEqNum)%HeatDesTemp
CoilOutHumRat = FinalZoneSizing(CurZoneEqNum)%HeatDesHumRat
DesCoilLoad = PsyCpAirFnWTdb(CoilOutHumRat, 0.5d0*(CoilInTemp+CoilOutTemp)) &
* FinalZoneSizing(CurZoneEqNum)%DesHeatMassFlow &
* (CoilOutTemp-CoilInTemp)
TempSteamIn= 100.00d0
EnthSteamInDry = GetSatEnthalpyRefrig('STEAM',TempSteamIn,1.0d0,VentSlab(Item)%HCoil_FluidIndex,'SizeVentilatedSlab')
EnthSteamOutWet= GetSatEnthalpyRefrig('STEAM',TempSteamIn,0.0d0,VentSlab(Item)%HCoil_FluidIndex,'SizeVentilatedSlab')
LatentHeatSteam=EnthSteamInDry-EnthSteamOutWet
SteamDensity=GetSatDensityRefrig('STEAM',TempSteamIn,1.0d0,VentSlab(Item)%HCoil_FluidIndex,'SizeVentilatedSlab')
Cp = GetSpecificHeatGlycol('WATER', 60.d0, DummyWaterIndex, 'SizeVentilatedSlab')
rho = GetDensityGlycol('WATER', 60.d0, DummyWaterIndex, 'SizeVentilatedSlab')
MaxVolHotSteamFlowDes = DesCoilLoad/((PlantSizData(PltSizHeatNum)%DeltaT * &
Cp * rho )+ &
SteamDensity* LatentHeatSteam)
ELSE
MaxVolHotSteamFlowDes = 0.0d0
END IF
ELSE
CALL ShowSevereError('Autosizing of Steam flow requires a heating loop Sizing:Plant object')
CALL ShowContinueError('Occurs in ' // 'ZoneHVAC:VentilatedSlab' // ' Object=' &
//TRIM(VentSlab(Item)%Name))
ErrorsFound = .TRUE.
END IF
END IF
IF (IsAutosize) THEN
VentSlab(Item)%MaxVolHotSteamFlow = MaxVolHotSteamFlowDes
CALL ReportSizingOutput(cMO_VentilatedSlab, VentSlab(Item)%Name, &
'Design Size Maximum Steam Flow [m3/s]', MaxVolHotSteamFlowDes)
ELSE
IF (VentSlab(Item)%MaxVolHotSteamFlow > 0.0d0 .AND. MaxVolHotSteamFlowDes > 0.0d0) THEN
MaxVolHotSteamFlowUser = VentSlab(Item)%MaxVolHotSteamFlow
CALL ReportSizingOutput(cMO_VentilatedSlab, VentSlab(Item)%Name, &
'Design Size Maximum Steam Flow [m3/s]', MaxVolHotSteamFlowDes, &
'User-Specified Maximum Steam Flow [m3/s]', MaxVolHotSteamFlowUser)
IF (DisplayExtraWarnings) THEN
IF ((ABS(MaxVolHotSteamFlowDes - MaxVolHotSteamFlowUser)/MaxVolHotSteamFlowUser) > AutoVsHardSizingThreshold) THEN
CALL ShowMessage('SizeVentilatedSlab: Potential issue with equipment sizing for ZoneHVAC:VentilatedSlab = " '// &
TRIM(VentSlab(Item)%Name)//'".')
CALL ShowContinueError('User-Specified Maximum Steam Flow of '// &
TRIM(RoundSigDigits(MaxVolHotSteamFlowUser,5))// ' [m3/s]')
CALL ShowContinueError('differs from Design Size Maximum Steam Flow of ' // &
TRIM(RoundSigDigits(MaxVolHotSteamFlowDes,5))// ' [m3/s]')
CALL ShowContinueError('This may, or may not, indicate mismatched component sizes.')
CALL ShowContinueError('Verify that the value entered is intended and is consistent with other components.')
END IF
ENDIF
END IF
END IF
END IF
END IF
ELSE
VentSlab(Item)%MaxVolHotSteamFlow = 0.0d0
END IF
IsAutosize = .FALSE.
IF (VentSlab(Item)%MaxVolColdWaterFlow == AutoSize) THEN
IsAutosize = .TRUE.
END IF
IF (CurZoneEqNum > 0) THEN
IF (.NOT. IsAutosize .AND. .NOT. ZoneSizingRunDone) THEN
IF (VentSlab(Item)%MaxVolColdWaterFlow > 0.0d0) THEN
CALL ReportSizingOutput(cMO_VentilatedSlab, VentSlab(Item)%Name, &
'User-Specified Maximum Cold Water Flow [m3/s]', VentSlab(Item)%MaxVolColdWaterFlow)
END IF
ELSE
CALL CheckZoneSizing(cMO_VentilatedSlab, VentSlab(Item)%Name)
IF (VentSlab(Item)%CCoilType == Cooling_CoilHXAssisted) THEN
CoolingCoilName = GetHXDXCoilName(VentSlab(Item)%CCoilTypeCh,VentSlab(Item)%CCoilName,ErrorsFound)
CoolingCoilType = GetHXCoilType(VentSlab(Item)%CCoilTypeCh,VentSlab(Item)%CCoilName,ErrorsFound)
ELSE
CoolingCoilName = VentSlab(Item)%CCoilName
CoolingCoilType = VentSlab(Item)%CCoilTypeCh
END IF
CoilWaterInletNode = GetCoilWaterInletNode(CoolingCoilType,CoolingCoilName,ErrorsFound)
CoilWaterOutletNode = GetCoilWaterOutletNode(CoolingCoilType,CoolingCoilName,ErrorsFound)
IF (IsAutosize) THEN
PltSizCoolNum = MyPlantSizingIndex(CoolingCoilType,CoolingCoilName, CoilWaterInletNode, &
CoilWaterOutletNode, ErrorsFound)
IF (PltSizCoolNum > 0) THEN
IF (FinalZoneSizing(CurZoneEqNum)%DesCoolMassFlow >= SmallAirVolFlow) THEN
CoilInTemp = FinalZoneSizing(CurZoneEqNum)%DesCoolCoilInTemp
CoilOutTemp = FinalZoneSizing(CurZoneEqNum)%CoolDesTemp
CoilOutHumRat = FinalZoneSizing(CurZoneEqNum)%CoolDesHumRat
CoilInHumRat = FinalZoneSizing(CurZoneEqNum)%DesCoolCoilInHumRat
DesCoilLoad = FinalZoneSizing(CurZoneEqNum)%DesCoolMassFlow &
* (PsyHFnTdbW(CoilInTemp, CoilInHumRat)-PsyHFnTdbW(CoilOutTemp, CoilOutHumRat))
rho = GetDensityGlycol(PlantLoop(VentSlab(Item)%CWLoopNum )%fluidName, &
5.d0, &
PlantLoop( VentSlab(Item)%CWLoopNum )%fluidIndex, &
'SizeVentilatedSlab' )
Cp = GetSpecificHeatGlycol(PlantLoop(VentSlab(Item)%CWLoopNum )%fluidName, &
5.d0, &
PlantLoop( VentSlab(Item)%CWLoopNum )%fluidIndex, &
'SizeVentilatedSlab' )
MaxVolColdWaterFlowDes = DesCoilLoad / &
( PlantSizData(PltSizCoolNum)%DeltaT * &
Cp * rho )
ELSE
MaxVolColdWaterFlowDes = 0.0d0
END IF
ELSE
CALL ShowSevereError('Autosizing of water flow requires a cooling loop Sizing:Plant object')
CALL ShowContinueError('Occurs in ' // cMO_VentilatedSlab // ' Object=' &
//TRIM(VentSlab(Item)%Name))
Errorsfound = .TRUE.
END IF
END IF
IF (IsAutosize) THEN
VentSlab(Item)%MaxVolColdWaterFlow = MaxVolColdWaterFlowDes
CALL ReportSizingOutput(cMO_VentilatedSlab, VentSlab(Item)%Name, &
'Design Size Maximum Cold Water Flow [m3/s]', MaxVolColdWaterFlowDes)
ELSE
IF (VentSlab(Item)%MaxVolColdWaterFlow > 0.0d0 .AND. MaxVolColdWaterFlowDes > 0.0d0) THEN
MaxVolColdWaterFlowUser = VentSlab(Item)%MaxVolColdWaterFlow
CALL ReportSizingOutput(cMO_VentilatedSlab, VentSlab(Item)%Name, &
'Design Size Maximum Cold Water Flow [m3/s]', MaxVolColdWaterFlowDes, &
'User-Specified Maximum Cold Water Flow [m3/s]', MaxVolColdWaterFlowUser)
IF (DisplayExtraWarnings) THEN
IF ((ABS(MaxVolColdWaterFlowDes - MaxVolColdWaterFlowUser)/MaxVolColdWaterFlowUser) >AutoVsHardSizingThreshold) THEN
CALL ShowMessage('SizeVentilatedSlab: Potential issue with equipment sizing for ZoneHVAC:VentilatedSlab = " '// &
TRIM(VentSlab(Item)%Name)//'".')
CALL ShowContinueError('User-Specified Maximum Cold Water Flow of '// &
TRIM(RoundSigDigits(MaxVolColdWaterFlowUser,5))// ' [m3/s]')
CALL ShowContinueError('differs from Design Size Maximum Cold Water Flow of ' // &
TRIM(RoundSigDigits(MaxVolColdWaterFlowDes,5))// ' [m3/s]')
CALL ShowContinueError('This may, or may not, indicate mismatched component sizes.')
CALL ShowContinueError('Verify that the value entered is intended and is consistent with other components.')
END IF
ENDIF
END IF
END IF
END IF
END IF
IF (VentSlab(Item)%CCoilType == Cooling_CoilHXAssisted) THEN
CoolingCoilName = GetHXDXCoilName(VentSlab(Item)%CCoilTypeCh,VentSlab(Item)%CCoilName,ErrorsFound)
CoolingCoilType = GetHXCoilType(VentSlab(Item)%CCoilTypeCh,VentSlab(Item)%CCoilName,ErrorsFound)
ELSE
CoolingCoilName = VentSlab(Item)%CCoilName
CoolingCoilType = VentSlab(Item)%CCoilTypeCh
END IF
CALL SetCoilDesFlow(CoolingCoilType,CoolingCoilName,VentSlab(Item)%MaxAirVolFlow,&
ErrorsFound)
CALL SetCoilDesFlow(VentSlab(Item)%HCoilTypeCh,VentSlab(Item)%HCoilName,VentSlab(Item)%MaxAirVolFlow,&
ErrorsFound)
IF (ErrorsFound) THEN
CALL ShowFatalError('Preceding sizing errors cause program termination')
END IF
RETURN
END SUBROUTINE SizeVentilatedSlab