Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r64) | :: | OutTubeEffFinDiamRatio | ||||
real(kind=r64), | DIMENSION(:) | :: | PolynomCoef |
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 CalcDryFinEffCoef(OutTubeEffFinDiamRatio,PolynomCoef)
! SUBROUTINE INFORMATION:
! AUTHOR Unknown
! DATE WRITTEN Unknown
! DATE REWRITTEN April 1997 by Russell D. Taylor, Ph.D.
! MODIFIED
! RE-ENGINEERED
! PURPOSE OF THIS SUBROUTINE:
! The following subroutines are used once per cooling coil
! simulation to obtain the coefficients of the dry fin
! efficiency equation. CalcDryFinEffCoef is the main calling
! routine which manages calls to the Bessel funtion and polynomial
! fit routines.
! REFERENCES:
! First found in MODSIM.
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
REAL(r64) OutTubeEffFinDiamRatio
REAL(r64), DIMENSION(:) :: PolynomCoef
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
REAL(r64), DIMENSION(2,MaxOrderedPairs) :: OrderedPair
REAL(r64) FAI,FED
REAL(r64) FEDnumerator
INTEGER I,IE1,IE2,IE3,IE4,IE5,IE6
REAL(r64) R1,R1I1,R1K1,R2,R2I0,R2I1,R2K0,R2K1,RO
FAI = 0.02d0
DO I = 1, 60
FAI = FAI + 0.035d0
R1 = FAI / (1.0d0 - OutTubeEffFinDiamRatio)
R2 = R1 * OutTubeEffFinDiamRatio
RO = 2.0d0 * OutTubeEffFinDiamRatio / (FAI * (1.0d0 + OutTubeEffFinDiamRatio))
CALL CalcIBesselFunc(R1, 1, R1I1, IE1)
CALL CalcKBesselFunc(R2, 1, R2K1, IE2)
CALL CalcIBesselFunc(R2, 1, R2I1, IE3)
CALL CalcKBesselFunc(R1, 1, R1K1, IE4)
CALL CalcIBesselFunc(R2, 0, R2I0, IE5)
CALL CalcKBesselFunc(R2, 0, R2K0, IE6)
FEDnumerator = RO * (R1I1 * R2K1 - R2I1 * R1K1)
IF (FEDnumerator /= 0.0d0) THEN
FED = FEDnumerator / (R2I0 * R1K1 + R1I1 * R2K0)
ELSE
FED = 0.0d0
ENDIF
! FED = RO * (R1I1 * R2K1 - R2I1 * R1K1) / (R2I0 * R1K1 + R1I1 * R2K0)
OrderedPair(1,I) = FAI
OrderedPair(2,I) = FED
END DO
CALL CalcPolynomCoef(OrderedPair,PolynomCoef)
RETURN
END SUBROUTINE CalcDryFinEffCoef