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) | :: | PartLoadRatio | |||
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 HXAssistedCoolCoilHRResidual(PartLoadRatio, Par) RESULT (Residuum)
! FUNCTION INFORMATION:
! AUTHOR Richard Raustad, FSEC
! DATE WRITTEN January 2008
! MODIFIED
! RE-ENGINEERED
! PURPOSE OF THIS FUNCTION:
! Calculates residual function (desired outlet humrat - actual outlet humrat)
! DX Coil output depends on the part load ratio which is being varied to zero the residual.
! METHODOLOGY EMPLOYED:
! Calls CalcHXAssistedCoolingCoil to get outlet humidity ratio at the given part load ratio
! and calculates the residual as defined above
! REFERENCES:
! USE STATEMENTS:
USE HVACHXAssistedCoolingCoil, ONLY: HXAssistedCoilOutletHumRat, CalcHXAssistedCoolingCoil
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
REAL(r64), INTENT(IN) :: PartLoadRatio ! compressor cycling ratio (1.0 is continuous, 0.0 is off)
REAL(r64), INTENT(IN), DIMENSION(:), OPTIONAL :: Par ! par(1) = DX coil number
! par(2) = desired air outlet humidity ratio [kg/kg]
! par(3) = FirstHVACIteration logical converted to numeric (1=TRUE,0=FALSE)
! par(4) = HX control (On/Off)
! par(5) = supply air fan operating mode (ContFanCycCoil)
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 :: CoilIndex ! index of this coil
REAL(r64) :: OutletAirHumRat ! outlet air humidity ratio [kg/kg]
LOGICAL :: FirstHVACIteration ! FirstHVACIteration flag
LOGICAL :: HXUnitOn ! flag to enable heat exchanger heat recovery
INTEGER :: FanOpMode ! Supply air fan operating mode
CoilIndex = INT(Par(1))
! FirstHVACIteration is a logical, Par is REAL(r64), so make 1=TRUE and 0=FALSE
IF(Par(3) .EQ. 1.0d0)THEN
FirstHVACIteration = .TRUE.
ELSE
FirstHVACIteration = .FALSE.
END IF
IF(Par(4) .EQ. 1.0d0)THEN
HXUnitOn = .TRUE.
ELSE
HXUnitOn = .FALSE.
END IF
FanOpMode = INT(Par(5))
CALL CalcHXAssistedCoolingCoil(CoilIndex,FirstHVACIteration,On,PartLoadRatio, HXUnitOn, FanOpMode, &
EconomizerFlag=EconomizerFlag)
OutletAirHumRat = HXAssistedCoilOutletHumRat(CoilIndex)
Residuum = Par(2) - OutletAirHumRat
RETURN
END FUNCTION HXAssistedCoolCoilHRResidual