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 | ||
---|---|---|---|---|---|---|
real(kind=r64), | intent(in) | :: | DmdSideMassFlowRate | |||
real(kind=r64), | intent(in), | optional | DIMENSION(:) | :: | Par |
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.
FUNCTION HXDemandSideLoopFlowResidual(DmdSideMassFlowRate, Par ) RESULT (Residuum)
! FUNCTION INFORMATION:
! AUTHOR B. Griffith
! DATE WRITTEN December 2012
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! calculate residual value for regula falsi solver
! METHODOLOGY EMPLOYED:
! <description>
! REFERENCES:
! na
! USE STATEMENTS:
USE PlantUtilities, ONLY: SetComponentFlowRate
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
REAL(r64), INTENT(IN) :: DmdSideMassFlowRate
REAL(r64), INTENT(IN), DIMENSION(:), OPTIONAL :: Par ! Par(1) = HX index number
! Par(2) = desired supply side loop outlet temperature [C]
REAL(r64) :: Residuum ! Residual to be minimized to zero
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
INTEGER :: CompNum
REAL(r64) :: SupSideLoopOutletTemp
REAL(r64) :: MdotTrial
REAL(r64) :: SupSideMdot ! mass flow rate of fluid entering from supply side loop
MdotTrial = DmdSideMassFlowRate
CompNum = INT(Par(1))
SupSideMdot = Node(FluidHX(CompNum)%SupplySideLoop%InletNodeNum)%MassFlowRate
CALL CalcFluidHeatExchanger(CompNum,SupSideMdot ,MdotTrial )
SupSideLoopOutletTemp = FluidHX(CompNum)%SupplySideLoop%OutletTemp
Residuum = Par(2) - SupSideLoopOutletTemp
RETURN
END FUNCTION HXDemandSideLoopFlowResidual