Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | SetPtMgrNum |
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 CalcFollowOATempSetPoint(SetPtMgrNum)
! SUBROUTINE INFORMATION:
! AUTHOR Chandan Sharma, FSEC
! DATE WRITTEN July 2011
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Set the setpoint based on outdoor air dry-bulb/wet-bulb temperature
! METHODOLOGY EMPLOYED:
! Based on reference temperature type specifed in the setpoint manager,
! the setpoint is calculated as OutWetBulbTemp(Or OutDryBulbTemp) + Offset.
! The sign convention is that a positive Offset will increase the resulting setpoint.
! Final value of the setpoint is limited by the Max and Min limit specified in the setpoint manager.
! REFERENCES:
! na
! USE STATEMENTS:
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT (IN) :: SetPtMgrNum ! number of the current setpoint manager being simulated
! SUBROUTINE PARAMETER DEFINITIONS:
! INTERFACE BLOCK SPECIFICATIONS
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
! INTEGER :: CtrldNodeNum ! index of the items in the controlled node list
REAL(r64) :: MinSetPoint ! minimum allowed setpoint
REAL(r64) :: MaxSetPoint ! maximum allowed setpoint
MaxSetPoint = FollowOATempSetPtMgr(SetPtMgrNum)%MaxSetTemp
MinSetPoint = FollowOATempSetPtMgr(SetPtMgrNum)%MinSetTemp
SELECT CASE(FollowOATempSetPtMgr(SetPtMgrNum)%RefTypeMode)
CASE(iRefTempType_WetBulb)
FollowOATempSetPtMgr(SetPtMgrNum)%SetPt = OutWetBulbTemp + FollowOATempSetPtMgr(SetPtMgrNum)%OffSet
CASE(iRefTempType_DryBulb)
FollowOATempSetPtMgr(SetPtMgrNum)%SetPt = OutDryBulbTemp + FollowOATempSetPtMgr(SetPtMgrNum)%OffSet
END SELECT
! Apply maximum and minimum values
FollowOATempSetPtMgr(SetPtMgrNum)%SetPt = MAX(FollowOATempSetPtMgr(SetPtMgrNum)%SetPt, MinSetPoint)
FollowOATempSetPtMgr(SetPtMgrNum)%SetPt = MIN(FollowOATempSetPtMgr(SetPtMgrNum)%SetPt, MaxSetPoint)
RETURN
END SUBROUTINE CalcFollowOATempSetPoint