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 | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | OAControllerNum | |||
real(kind=r64), | intent(in) | :: | OutAirMinFrac | |||
real(kind=r64), | intent(inout) | :: | OutAirSignal | |||
logical, | intent(inout) | :: | EconomizerOperationFlag |
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.
Subroutine Checksetpoints(OAControllerNum,OutAirMinFrac,OutAirSignal,EconomizerOperationFlag)
! SUBROUTINE INFORMATION:
! AUTHOR Amit bhansali
! DATE WRITTEN August 2008?
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine checks the setpoints of the upper limits of temperatures, limit enthalpy
! Limit dew point, Enthalpy curve
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE Psychrometrics, ONLY: PsyTdpFnWPb
USE CurveManager, ONLY: CurveValue
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: OAControllerNum ! index to OA controller
REAL(r64), INTENT(IN) :: OutAirMinFrac ! Local variable used to calculate min OA fraction
REAL(r64), INTENT(INOUT) :: OutAirSignal ! Used to set OA mass flow rate
LOGICAL, INTENT(INOUT) :: EconomizerOperationFlag ! logical used to show economizer status
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
REAL(r64) :: OADPTemp ! Dew Point Temperature calculation
IF (OAController(OAControllerNum)%TempLim /= BlankNumeric .AND. OAController(OAControllerNum)%OATemp &
.GT.OAController(OAControllerNum)%TempLim) THEN
OutAirSignal = OutAirMinFrac
EconomizerOperationFlag = .FALSE.
END IF
! Outside air enthalpy limit
IF (OAController(OAControllerNum)%EnthLim /= BlankNumeric .AND. OAController(OAControllerNum)%OAEnth &
.GT.OAController(OAControllerNum)%EnthLim) THEN
OutAirSignal = OutAirMinFrac
EconomizerOperationFlag = .FALSE.
END IF
IF (OAController(OAControllerNum)%DPTempLim /= BlankNumeric) THEN
OADPTemp = PsyTdpFnWPb(OAController(OAControllerNum)%OAHumRat,OAController(OAControllerNum)%OAPress)
IF(OADPTemp .GT. OAController(OAControllerNum)%DPTempLim) THEN
OutAirSignal = OutAirMinFrac
EconomizerOperationFlag = .FALSE.
END IF
END IF
IF(OAController(OAControllerNum)%EnthalpyCurvePtr .GT. 0)THEN
IF(OAController(OAControllerNum)%OAHumRat .GT. &
CurveValue(OAController(OAControllerNum)%EnthalpyCurvePtr, &
OAController(OAControllerNum)%OATemp))THEN
OutAirSignal = OutAirMinFrac
EconomizerOperationFlag = .FALSE.
END IF
END IF
RETURN
END SUBROUTINE Checksetpoints