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) | :: | PartLoadFrac | |||
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 HXAssistDXCoilResidual(PartLoadFrac, Par) RESULT (Residuum)
! FUNCTION INFORMATION:
! AUTHOR Richard Raustad, FSEC
! DATE WRITTEN June 2006
! MODIFIED
! RE-ENGINEERED
! PURPOSE OF THIS FUNCTION:
! Calculates residual function (desired DX coil outlet temp - actual DX coil outlet temp)
! HX Assisted DX Coil output depends on the part load ratio which is being varied to zero the residual.
! METHODOLOGY EMPLOYED:
! Calls CalcDoe2DXCoil to get outlet temperature at the given cycling ratio
! and calculates the residual as defined above
! REFERENCES:
! USE STATEMENTS:
USE HVACHXAssistedCoolingCoil, ONLY: SimHXAssistedCoolingCoil
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
REAL(r64), INTENT(IN) :: PartLoadFrac ! 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 temperature [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 :: CoilIndex ! Index of this coil
REAL(r64) :: OutletAirTemp ! Outlet air temperature of DX cooling coil [C]
REAL(r64) :: OnOffAirFlowFrac ! Air flow fraction
INTEGER :: CBVAVNumTemp ! Local index to changeover-bypass VAV system
LOGICAL :: FirstHVACIter ! Local Flag denoting the first pass on the air loop simulation
LOGICAL :: HXUnitOn ! flag to enable heat exchanger
CoilIndex = INT(Par(1))
OnOffAirFlowFrac = Par(3)
CBVAVNumTemp = INT(Par(4))
IF(Par(5) .EQ. 1.0d0)THEN
FirstHVACIter = .TRUE.
ELSE
FirstHVACIter = .FALSE.
END IF
IF(Par(6) .EQ. 1.0d0)THEN
HXUnitOn = .TRUE.
ELSE
HXUnitOn = .FALSE.
END IF
CALL SimHXAssistedCoolingCoil(CBVAV(CBVAVNumTemp)%DXCoolCoilName,FirstHVACIter,On,PartLoadFrac, CoilIndex, &
ContFanCycCoil, HXUnitEnable=HXUnitOn)
OutletAirTemp = Node(CBVAV(CBVAVNumTemp)%DXCoilOutletNode)%Temp
Residuum = Par(2) - OutletAirTemp
RETURN
END FUNCTION HXAssistDXCoilResidual