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 UpdatePipesHeatTransfer
! SUBROUTINE INFORMATION:
! AUTHOR Simon Rees
! DATE WRITTEN July 2007
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine does any updating that needs to be done for
! Pipe Heat Transfers. This routine must also set the outlet water conditions.
! METHODOLOGY EMPLOYED:
! REFERENCES:
! na
! USE STATEMENTS:
USE DataLoopNode, ONLY : Node
USE DataPlant, ONLY : PlantLoop
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
!INTEGER, INTENT(IN) :: PipeHTNum ! Index for the surface
! SUBROUTINE PARAMETER DEFINITIONS:
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
! only outlet node temp should need updating
Node(OutletNodeNum)%Temp = OutletTemp
! pass everything else through
Node(OutletNodeNum)%TempMin = Node(InletNodeNum)%TempMin
Node(OutletNodeNum)%TempMax = Node(InletNodeNum)%TempMax
Node(OutletNodeNum)%MassFlowRate = Node(InletNodeNum)%MassFlowRate
Node(OutletNodeNum)%MassFlowRateMin = Node(InletNodeNum)%MassFlowRateMin
Node(OutletNodeNum)%MassFlowRateMax = Node(InletNodeNum)%MassFlowRateMax
Node(OutletNodeNum)%MassFlowRateMinAvail = Node(InletNodeNum)%MassFlowRateMinAvail
Node(OutletNodeNum)%MassFlowRateMaxAvail = Node(InletNodeNum)%MassFlowRateMaxAvail
Node(OutletNodeNum)%Quality = Node(InletNodeNum)%Quality
!Only pass pressure if we aren't doing a pressure simulation
IF (PlantLoop(PipeHT(PipeHTNum)%LoopNum)%PressureSimType > 1) THEN
!Don't do anything
ELSE
Node(OutletNodeNum)%Press = Node(InletNodeNum)%Press
END IF
Node(OutletNodeNum)%Enthalpy = Node(InletNodeNum)%Enthalpy
Node(OutletNodeNum)%HumRat = Node(InletNodeNum)%HumRat
RETURN
END SUBROUTINE UpdatePipesHeatTransfer