Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r64), | intent(in) | :: | UA | |||
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 SimpleEvapFluidCoolerUAResidual(UA, Par) RESULT (Residuum)
! FUNCTION INFORMATION:
! AUTHOR Chandan Sharma
! DATE WRITTEN May 2009
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! Calculates residual function (Design evaporative fluid cooler load - evaporative fluid cooler cooling output)
! / Design evaporative fluid cooler load.
! Evaporative fluid cooler Cooling Output depends on the UA which is being varied to zero the residual.
! METHODOLOGY EMPLOYED:
! Puts UA into the evaporative fluid cooler data structure, calls SimSimpleEvapFluidCooler, and calculates
! the residual as defined above.
! REFERENCES:
! Based on SimpleTowerUAResidual by Fred Buhl, May 2002
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
REAL(r64), INTENT(IN) :: UA ! UA of evaporative fluid cooler
REAL(r64), INTENT(IN), DIMENSION(:), OPTIONAL :: Par ! par(1) = design evaporative fluid cooler load [W]
! par(2) = Evaporative fluid cooler number
! par(3) = design water mass flow rate [kg/s]
! par(4) = design air volume flow rate [m3/s]
! par(5) = water specific heat [J/(kg*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 :: EvapFluidCoolerIndex ! index of this evaporative fluid cooler
REAL(r64) :: OutWaterTemp ! outlet water temperature [C]
REAL(r64) :: CoolingOutput ! Evaporative fluid cooler cooling output [W]
EvapFluidCoolerIndex = INT(Par(2))
CALL SimSimpleEvapFluidCooler(EvapFluidCoolerIndex,Par(3),Par(4),UA,OutWaterTemp)
CoolingOutput = Par(5)*Par(3)*(SimpleEvapFluidCoolerInlet(EvapFluidCoolerIndex)%WaterTemp - OutWaterTemp)
Residuum = (Par(1) - CoolingOutput) / Par(1)
RETURN
END FUNCTION SimpleEvapFluidCoolerUAResidual