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) | :: | CompSuctionTemp | |||
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 CalcCompSuctionTempResidual(CompSuctionTemp, Par) RESULT (Residuum)
! FUNCTION INFORMATION:
! AUTHOR Richard Raustad
! DATE WRITTEN October 2006
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! To calculate the compressor suction temperature for water to air HP's
! METHODOLOGY EMPLOYED:
! Use SolveRegulaFalsi to call this Function to converge on a solution
! REFERENCES:
! na
! USE STATEMENTS:
USE FluidProperties, ONLY: GetSupHeatEnthalpyRefrig, GetSupHeatDensityRefrig
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
REAL(r64), INTENT(IN) :: CompSuctionTemp ! HP compressor suction temperature (C)
REAL(r64), INTENT(IN), DIMENSION(:), OPTIONAL :: Par ! Function parameters
REAL(r64) :: Residuum ! Result (force to 0)
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
CHARACTER(len=MaxNameLength) :: Refrigerant ! Name of refrigerant
REAL(r64) :: SuctionPR
INTEGER :: RefrigIndex
REAL(r64) :: CompSuctionEnth
REAL(r64) :: SuperHeatEnth
! Convert parameters to usable variables
Refrigerant = ''
SuctionPr = Par(1)
RefrigIndex = INT(Par(2))
SuperHeatEnth = Par(3)
CompSuctionEnth = GetSupHeatEnthalpyRefrig(Refrigerant, CompSuctionTemp, SuctionPr, &
RefrigIndex,'CalcWaterToAirHPHeating:CalcCompSuctionTemp')
! Calculate residual based on output calculation flag
Residuum = (CompsuctionEnth-SuperHeatEnth)/SuperHeatEnth
RETURN
END FUNCTION CalcCompSuctionTempResidual