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) | :: | COSI | |||
real(kind=r64), | intent(in), | DIMENSION(NumOfAngles) | :: | transBeam |
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.
REAL(r64) FUNCTION InterpolatePipeTransBeam(COSI, transBeam)
! SUBROUTINE INFORMATION:
! AUTHOR Peter Graham Ellis
! DATE WRITTEN July 2003
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Interpolates the beam transmittance vs. cosine angle table.
! METHODOLOGY EMPLOYED: na
! REFERENCES: na
! USE STATEMENTS:
USE FluidProperties, ONLY: FindArrayIndex ! USEd code could be copied here to eliminate dependence on FluidProperties
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
REAL(r64), INTENT(IN) :: COSI ! Cosine of the incident angle
REAL(r64), DIMENSION(NumOfAngles), INTENT(IN) :: transBeam ! Table of beam transmittance vs. cosine angle
! FUNCTION LOCAL VARIABLE DECLARATIONS:
INTEGER :: Lo, Hi
REAL(r64) :: m, b
! FLOW:
InterpolatePipeTransBeam = 0.0d0
! Linearly interpolate transBeam/COSAngle table to get value at current cosine of the angle
Lo = FindArrayIndex(COSI, COSAngle)
Hi = Lo + 1
IF (Lo > 0 .AND. Hi <= NumOfAngles) THEN
m = (transBeam(Hi) - transBeam(Lo)) / (COSAngle(Hi) - COSAngle(Lo))
b = transBeam(Lo) - m * COSAngle(Lo)
InterpolatePipeTransBeam = m * COSI + b
ELSE
InterpolatePipeTransBeam = 0.0d0
END IF
RETURN
END FUNCTION InterpolatePipeTransBeam