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) | :: | PipeType | |||
character(len=*), | intent(in) | :: | PipeName | |||
integer, | intent(inout) | :: | PipeNum | |||
real(kind=r64), | intent(in) | :: | MaxVolFlowRate |
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 InitializePipes(PipeType,PipeName,PipeNum,MaxVolFlowRate)
! SUBROUTINE INFORMATION:
! AUTHOR Linda Lawrie
! DATE WRITTEN October 2007
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Provide an external call to initialize Pipes/index numbers.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor, ONLY: FindItemInList
USE General, ONLY: TrimSigDigits
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: PipeType ! Type of Pipe
CHARACTER(len=*), INTENT(IN) :: PipeName ! Name of Pipe
INTEGER, INTENT(INOUT) :: PipeNum ! Index into pipe structure for name
REAL(r64), INTENT(IN) :: MaxVolFlowRate ! unused at present time
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
! na
IF (GetPipeInputFlag) THEN
CALL GetPipeInput
GetPipeInputFlag = .FALSE.
END IF
IF (PipeNum == 0) THEN
PipeNum=FindItemInList(PipeName,LocalPipe%Name,NumLocalPipes)
IF (PipeNum == 0) THEN
CALL ShowFatalError('SimPipes: Pipe requested not found ='//TRIM(PipeName)) ! Catch any bad names before crashing
ENDIF
ELSE
IF (PipeNum > NumLocalPipes .or. PipeNum < 1) THEN
CALL ShowFatalError('InitializePipe: Invalid PipeNum passed='//TRIM(TrimSigDigits(PipeNum))// &
', Number of Pipes='//TRIM(TrimSigDigits(NumLocalPipes))//', Pipe name='//TRIM(PipeName))
ENDIF
IF (LocalPipe(PipeNum)%CheckEquipName) THEN
IF (PipeName /= LocalPipe(PipeNum)%Name) THEN
CALL ShowFatalError('InitializePipe: Invalid PipeNum passed='//TRIM(TrimSigDigits(PipeNum))// &
', Pipe name='//TRIM(PipeName)//', stored Pipe Name for that index='//TRIM(LocalPipe(PipeNum)%Name))
ENDIF
LocalPipe(PipeNum)%CheckEquipName=.false.
ENDIF
ENDIF
! Node(LocalPipe(PipeNum)%OutletNodeNum)%FluidType = Node(LocalPipe(PipeNum)%InletNodeNum)%FluidType
! Node(LocalPipe(PipeNum)%OutletNodeNum)%Temp = Node(LocalPipe(PipeNum)%InletNodeNum)%Temp
! Node(LocalPipe(PipeNum)%OutletNodeNum)%TempMin = Node(LocalPipe(PipeNum)%InletNodeNum)%TempMin
! Node(LocalPipe(PipeNum)%OutletNodeNum)%TempMax = Node(LocalPipe(PipeNum)%InletNodeNum)%TempMax
! Node(LocalPipe(PipeNum)%OutletNodeNum)%MassFlowRate = Node(LocalPipe(PipeNum)%InletNodeNum)%MassFlowRate
! Node(LocalPipe(PipeNum)%OutletNodeNum)%MassFlowRateMin = Node(LocalPipe(PipeNum)%InletNodeNum)%MassFlowRateMin
! Node(LocalPipe(PipeNum)%OutletNodeNum)%MassFlowRateMax = Node(LocalPipe(PipeNum)%InletNodeNum)%MassFlowRateMax
! Node(LocalPipe(PipeNum)%OutletNodeNum)%MassFlowRateMinAvail = Node(LocalPipe(PipeNum)%InletNodeNum)%MassFlowRateMinAvail
! Node(LocalPipe(PipeNum)%OutletNodeNum)%MassFlowRateMaxAvail = Node(LocalPipe(PipeNum)%InletNodeNum)%MassFlowRateMaxAvail
! Node(LocalPipe(PipeNum)%OutletNodeNum)%Quality = Node(LocalPipe(PipeNum)%InletNodeNum)%Quality
! Node(LocalPipe(PipeNum)%OutletNodeNum)%Press = Node(LocalPipe(PipeNum)%InletNodeNum)%Press
! Node(LocalPipe(PipeNum)%OutletNodeNum)%Enthalpy = Node(LocalPipe(PipeNum)%InletNodeNum)%Enthalpy
! Node(LocalPipe(PipeNum)%OutletNodeNum)%HumRat = Node(LocalPipe(PipeNum)%InletNodeNum)%HumRat
RETURN
END SUBROUTINE InitializePipes