Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r64), | intent(in) | :: | HWFlow | |||
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 FourPipeIUHeatingResidual(HWFlow, Par) RESULT (Residuum)
! FUNCTION INFORMATION:
! AUTHOR Fred Buhl
! DATE WRITTEN June 2004
! MODIFIED
! RE-ENGINEERED
! PURPOSE OF THIS FUNCTION:
! Calculates residual function (Requested Zone Load - Unit Output) / Requested Coil Load
! Unit Output depends on the hot water flow rate which is being varied to zero the residual.
! METHODOLOGY EMPLOYED:
! Calls CalcFourPipeIndUnit, and calculates
! the residual as defined above.
! REFERENCES:
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
REAL(r64), INTENT(IN) :: HWFlow ! hot water flow rate in kg/s
REAL(r64), INTENT(IN), DIMENSION(:), OPTIONAL :: Par ! Par(5) is the requested zone load
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 :: IUIndex
LOGICAL :: FirstHVACSoln
INTEGER :: ZoneNodeIndex
REAL(r64) :: MinCWFlow
REAL(r64) :: UnitOutput
IUIndex = INT(Par(1))
IF (Par(2) > 0.0d0) THEN
FirstHVACSoln = .TRUE.
ELSE
FirstHVACSoln = .FALSE.
END IF
ZoneNodeIndex = INT(Par(3))
MinCWFlow = Par(4)
CALL CalcFourPipeIndUnit(IUIndex,FirstHVACSoln,ZoneNodeIndex,HWFlow,MinCWFlow,UnitOutput)
Residuum = (Par(5) - UnitOutput) / (Par(7) - Par(6))
RETURN
END FUNCTION FourPipeIUHeatingResidual