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 GetPlantSizingInput
! SUBROUTINE INFORMATION:
! AUTHOR Fred Buhl
! DATE WRITTEN October 2001
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Obtains input data for Plant Sizing objects and stores it in
! appropriate data structures.
! METHODOLOGY EMPLOYED:
! Uses InputProcessor "Get" routines to obtain data.
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor, ONLY: GetNumObjectsFound, GetObjectItem, VerifyName
USE DataIPShortCuts
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
! na
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: PltSizIndex ! loop index
INTEGER :: NumAlphas ! Number of Alphas for each GetObjectItem call
INTEGER :: NumNumbers ! Number of Numbers for each GetObjectItem call
INTEGER :: IOStatus ! Used in GetObjectItem
LOGICAL :: ErrorsFound=.false. ! Set to true if errors in input, fatal at end of routine
LOGICAL :: IsNotOK ! Flag to verify name
LOGICAL :: IsBlank ! Flag for blank name
INTEGER :: NumDesDays ! Number of design days in input
cCurrentModuleObject='Sizing:Plant'
NumPltSizInput = GetNumObjectsFound(cCurrentModuleObject)
IF (NumPltSizInput > 0) THEN
NumDesDays = GetNumObjectsFound('SizingPeriod:DesignDay') + GetNumObjectsFound('SizingPeriod:WeatherFileDays') + &
GetNumObjectsFound('SizingPeriod:WeatherFileConditionType')
IF (NumDesDays == 0 .AND. DoPlantSizing ) THEN
CALL ShowSevereError('Plant Sizing calculations need SizingPeriod:* input')
ErrorsFound = .TRUE.
END IF
ALLOCATE(PlantSizData(NumPltSizInput))
PlantSizData%PlantLoopName = ' '
PlantSizData%ExitTemp = 0.0d0
PlantSizData%DeltaT = 0.0d0
PlantSizData%LoopType = 0
PlantSizData%DesVolFlowRate = 0.0d0
END IF
DO PltSizIndex=1,NumPltSizInput
CALL GetObjectItem(cCurrentModuleObject,PltSizIndex,cAlphaArgs,NumAlphas,rNumericArgs,NumNumbers,IOStatus, &
AlphaBlank=lAlphaFieldBlanks,NumBlank=lNumericFieldBlanks, &
AlphaFieldnames=cAlphaFieldNames,NumericFieldNames=cNumericFieldNames)
IsNotOK=.FALSE.
IsBlank=.FALSE.
CALL VerifyName(cAlphaArgs(1),PlantSizData%PlantLoopName,PltSizIndex-1,IsNotOK,IsBlank,TRIM(cCurrentModuleObject)//' Name')
IF (IsNotOK) THEN
ErrorsFound=.true.
IF (IsBlank) cAlphaArgs(1)='xxxxx'
ENDIF
PlantSizData(PltSizIndex)%PlantLoopName = cAlphaArgs(1)
PlantSizData(PltSizIndex)%ExitTemp = rNumericArgs(1)
PlantSizData(PltSizIndex)%DeltaT = rNumericArgs(2)
SELECT CASE(TRIM(cAlphaArgs(2)))
CASE('HEATING')
PlantSizData(PltSizIndex)%LoopType = HeatingLoop
CASE('COOLING')
PlantSizData(PltSizIndex)%LoopType = CoolingLoop
CASE('CONDENSER')
PlantSizData(PltSizIndex)%LoopType = CondenserLoop
CASE('STEAM')
PlantSizData(PltSizIndex)%LoopType = SteamLoop
CASE DEFAULT
CALL ShowSevereError(TRIM(cCurrentModuleObject)//'="'//trim(cAlphaArgs(1))//'", invalid data.')
CALL ShowContinueError('...incorrect '//TRIM(cAlphaFieldNames(2))//'="'//TRIM(cAlphaArgs(2))//'".')
CALL ShowContinueError('...Valid values are "Heating", "Cooling", "Condenser" or "Steam".')
ErrorsFound=.true.
END SELECT
CALL SetupEMSInternalVariable('Plant Design Volume Flow Rate', &
PlantSizData(PltSizIndex)%PlantLoopName, '[m3/s]', &
PlantSizData(PltSizIndex)%DesVolFlowRate )
END DO
IF (ErrorsFound) THEN
CALL ShowFatalError(TRIM(cCurrentModuleObject)//': Errors found in getting input. Program terminates.')
END IF
RETURN
END SUBROUTINE GetPlantSizingInput