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 GetPressureSystemInput()
! SUBROUTINE INFORMATION:
! AUTHOR Edwin Lee
! DATE WRITTEN August 2009
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Currently it just reads the input for pressure curve objects
! METHODOLOGY EMPLOYED:
! General EnergyPlus Methodology
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor, ONLY : GetNumObjectsFound, GetObjectItem, VerifyName, FindItemInList
USE DataIPShortcuts
! USE PlantPressureSystem, ONLY: PlantPressureCurveData, PressureCurve
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
! na
! SUBROUTINE PARAMETER DEFINITIONS:
CHARACTER(len=MaxNameLength), PARAMETER :: CurveObjectName = 'Curve:Functional:PressureDrop'
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: NumPressure
CHARACTER(len=MaxNameLength),DIMENSION(1) :: Alphas ! Alpha items for object
REAL(r64), DIMENSION(5) :: Numbers ! Numeric items for object
INTEGER :: NumAlphas ! Number of Alphas for each GetObjectItem call
INTEGER :: NumNumbers ! Number of Numbers for each GetObjectItem call
INTEGER :: IOStatus ! Used in GetObjectItem
LOGICAL :: ErrsFound=.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 :: CurveNum
INTEGER :: CurveFound
NumPressure = GetNumObjectsFound(CurveObjectName)
ALLOCATE(PressureCurve(NumPressure))
DO CurveNum = 1, NumPressure
CALL GetObjectItem(CurveObjectName,CurveNum,Alphas,NumAlphas,Numbers,NumNumbers,IOStatus, &
NumBlank=lNumericFieldBlanks,AlphaFieldnames=cAlphaFieldNames,NumericFieldNames=cNumericFieldNames)
IsNotOK=.FALSE.
IsBlank=.FALSE.
CALL VerifyName(Alphas(1),PressureCurve%Name,CurveNum-1,IsNotOK,IsBlank,TRIM(CurveObjectName)//' Name')
IF (IsNotOK) THEN
ErrsFound=.true.
IF (IsBlank) Alphas(1)='xxxxx'
ENDIF
! Need to verify that this name isn't used in Performance Curves as well.
IF (NumCurves > 0) THEN
CurveFound=FindItemInList(Alphas(1),PerfCurve%Name,NumCurves)
IF (CurveFound /= 0) THEN
CALL ShowSevereError('GetPressureCurveInput: '//trim(CurveObjectName)//'="'//trim(Alphas(1))//'", duplicate curve name.')
CALL ShowContinueError('...Curve name duplicates one of the Performance Curves. Names must be unique across all curves.')
ErrsFound=.true.
ENDIF
ENDIF
PressureCurve(CurveNum)%Name = Alphas(1)
PressureCurve(CurveNum)%EquivDiameter = Numbers(1)
PressureCurve(CurveNum)%MinorLossCoeff = Numbers(2)
PressureCurve(CurveNum)%EquivLength = Numbers(3)
PressureCurve(CurveNum)%EquivRoughness = Numbers(4)
IF (NumNumbers > 4 .AND. .NOT. lNumericFieldBlanks(5)) THEN
IF (Numbers(5) .NE. 0.0d0) THEN
PressureCurve(CurveNum)%ConstantFpresent = .TRUE.
PressureCurve(CurveNum)%ConstantF = Numbers(5)
END IF
END IF
END DO
NumPressureCurves=NumPressure
IF (ErrsFound) THEN
CALL ShowFatalError('GetPressureCurveInput: Errors found in Curve Objects. Preceding condition(s) cause termination.')
END IF
RETURN
END SUBROUTINE GetPressureSystemInput