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) | :: | BoilerNum |
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 SizeBoiler(BoilerNum)
! SUBROUTINE INFORMATION:
! AUTHOR Rahul Chillar
! DATE WRITTEN Dec 2004
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine is for sizing Boiler Components for which capacities and flow rates
! have not been specified in the input.
! METHODOLOGY EMPLOYED:
! Obtains Steam flow rate from the plant sizing array. Calculates nominal capacity from
! the hot water flow rate and the hot water loop design delta T.
! REFERENCES:
! na
! USE STATEMENTS:
USE DataSizing
USE DataPlant, ONLY: PlantLoop, PlantSizesOkayToFinalize
USE FluidProperties, ONLY: GetSatDensityRefrig,GetSatEnthalpyRefrig,GetSatSpecificHeatRefrig
USE OutputReportPredefined
USE ReportSizingManager, ONLY: ReportSizingOutput
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: BoilerNum
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: PltSizNum ! Plant Sizing index corresponding to CurLoopNum
LOGICAL :: ErrorsFound ! If errors detected in input
REAL(r64) :: SteamDensity
REAL(r64) :: EnthSteamOutWet
REAL(r64) :: EnthSteamOutDry
REAL(r64) :: LatentEnthSteam
REAL(r64) :: SizingTemp
REAL(r64) :: CpWater ! Heat capacity of condensed steam
CHARACTER(len=MaxNameLength) :: equipName
REAL(r64) :: tmpNomCap ! local nominal capacity cooling power
PltSizNum = 0
ErrorsFound = .FALSE.
tmpNomCap = Boiler(BoilerNum)%NomCap
! Find the appropriate Plant Sizing object
PltSizNum = PlantLoop(Boiler(BoilerNum)%LoopNum)%PlantSizNum
IF (Boiler(BoilerNum)%NomCap == AutoSize) THEN
IF (PltSizNum > 0) THEN
IF (PlantSizData(PltSizNum)%DesVolFlowRate >= SmallWaterVolFlow) THEN
SizingTemp =Boiler(BoilerNum)%TempUpLimitBoilerOut
SteamDensity = GetSatDensityRefrig('STEAM',SizingTemp,1.0d0,Boiler(BoilerNum)%FluidIndex,'SizeBoiler')
EnthSteamOutDry= GetSatEnthalpyRefrig('STEAM',SizingTemp,1.0d0,Boiler(BoilerNum)%FluidIndex,'SizeBoiler')
EnthSteamOutWet= GetSatEnthalpyRefrig('STEAM',SizingTemp,0.0d0,Boiler(BoilerNum)%FluidIndex,'SizeBoiler')
LatentEnthSteam= EnthSteamOutDry-EnthSteamOutWet
CpWater = GetSatSpecificHeatRefrig('STEAM',SizingTemp,0.0d0,Boiler(BoilerNum)%FluidIndex,'SizeBoiler')
tmpNomCap = (CpWater * SteamDensity * Boiler(BoilerNum)%SizFac * &
PlantSizData(PltSizNum)%DeltaT* PlantSizData(PltSizNum)%DesVolFlowRate + &
PlantSizData(PltSizNum)%DesVolFlowRate*SteamDensity*LatentEnthSteam)
IF (PlantSizesOkayToFinalize) Boiler(BoilerNum)%NomCap =tmpNomCap
ELSE
tmpNomCap = 0.d0
IF (PlantSizesOkayToFinalize) Boiler(BoilerNum)%NomCap = tmpNomCap
END IF
IF (PlantSizesOkayToFinalize) CALL ReportSizingOutput('Boiler:Steam', Boiler(BoilerNum)%Name, &
'Nominal Capacity [W]', Boiler(BoilerNum)%NomCap)
ELSE
CALL ShowSevereError('Autosizing of Boiler nominal capacity requires a loop Sizing:Plant object')
CALL ShowContinueError('Occurs in Boiler:Steam object='//TRIM(Boiler(BoilerNum)%Name))
ErrorsFound = .TRUE.
END IF
END IF
! model has no volume flow rate, may need something else for steam loop sizing DSU??
!DSU? CALL RegisterPlantCompDesignFlow(Boiler(BoilerNum)%BoilerInletNodeNum,Boiler(BoilerNum)%VolFlowRate)
IF (PlantSizesOkayToFinalize) THEN
!create predefined report
equipName = Boiler(BoilerNum)%Name
CALL PreDefTableEntry(pdchMechType,equipName,'Boiler:Steam')
CALL PreDefTableEntry(pdchMechNomEff,equipName,Boiler(BoilerNum)%Effic)
CALL PreDefTableEntry(pdchMechNomCap,equipName,Boiler(BoilerNum)%NomCap)
ENDIF
IF (ErrorsFound) THEN
CALL ShowFatalError('Preceding sizing errors cause program termination')
END IF
RETURN
END SUBROUTINE SizeBoiler