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) | :: | SourceNum |
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 SizeWaterSource(SourceNum)
! SUBROUTINE INFORMATION:
! AUTHOR Edwin Lee
! DATE WRITTEN November 2012
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine is for sizing water source design flow rate
! METHODOLOGY EMPLOYED:
! Obtains flow rate from the plant sizing array.
! REFERENCES:
! na
! USE STATEMENTS:
USE DataSizing
USE DataPlant, ONLY: PlantLoop, PlantSizesOkayToFinalize
USE PlantUtilities, ONLY: RegisterPlantCompDesignFlow
USE ReportSizingManager, ONLY: ReportSizingOutput
USE OutputReportPredefined
USE FluidProperties, ONLY: GetDensityGlycol, GetSpecificHeatGlycol
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: SourceNum
! 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) :: tmpVolFlowRate ! local design volume flow rate
PltSizNum = 0
ErrorsFound = .FALSE.
tmpVolFlowRate = WaterSource(SourceNum)%DesVolFlowRate
PltSizNum = PlantLoop(WaterSource(SourceNum)%Location%LoopNum)%PlantSizNum
IF (WaterSource(SourceNum)%DesVolFlowRate == AutoSize) THEN
IF (PltSizNum > 0) THEN
IF (PlantSizData(PltSizNum)%DesVolFlowRate >= SmallWaterVolFlow) THEN
tmpVolFlowRate = PlantSizData(PltSizNum)%DesVolFlowRate !* WaterSource(SourceNum)%SizFac
IF (PlantSizesOkayToFinalize) WaterSource(SourceNum)%DesVolFlowRate = tmpVolFlowRate
ELSE
tmpVolFlowRate = 0.d0
IF (PlantSizesOkayToFinalize) WaterSource(SourceNum)%DesVolFlowRate = tmpVolFlowRate
END IF
IF (PlantSizesOkayToFinalize) CALL ReportSizingOutput('PlantComponent:TemperatureSource', WaterSource(SourceNum)%Name, &
'Design Fluid Flow Rate [m3/s]', WaterSource(SourceNum)%DesVolFlowRate)
ELSE
CALL ShowSevereError('Autosizing of plant component temperature source flow rate requires a loop Sizing:Plant object')
CALL ShowContinueError('Occurs in PlantComponent:TemperatureSource object='//TRIM(WaterSource(SourceNum)%Name))
ErrorsFound = .TRUE.
END IF
END IF
CALL RegisterPlantCompDesignFlow(WaterSource(SourceNum)%InletNodeNum,WaterSource(SourceNum)%DesVolFlowRate)
IF (ErrorsFound) THEN
CALL ShowFatalError('Preceding sizing errors cause program termination')
END IF
RETURN
END SUBROUTINE SizeWaterSource