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) | :: | Capacity | |||
integer, | intent(in) | :: | SchedulePtr | |||
real(kind=r64), | intent(in) | :: | SetPointTemp | |||
real(kind=r64), | intent(out) | :: | Power |
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 CalcBasinHeaterPower(Capacity,SchedulePtr,SetPointTemp,Power)
! SUBROUTINE INFORMATION:
! AUTHOR Chandan Sharma, FSEC
! DATE WRITTEN Feb 2010
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! To calculate basin heater power when the evaporative cooled equipment is not operating
! and outdoor air dry-bulb temperature is below the set-point
! METHODOLOGY EMPLOYED:
! Checks to see whether schedule for basin heater exists or not. If the schedule exists,
! the basin heater is operated for the schedule specified otherwise the heater runs
! for the entire simulation timestep whenever the outdoor temperature is below setpoint
! and water is not flowing through the evaporative cooled equipment.
! REFERENCES:
! na
! USE STATEMENTS:
USE DataPrecisionGlobals
USE ScheduleManager, ONLY: GetCurrentScheduleValue
USE DataEnvironment, ONLY: OutDryBulbTemp
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER ,INTENT(IN) :: SchedulePtr ! Pointer to basin heater schedule
REAL(r64),INTENT(IN) :: Capacity ! Basin heater capacity per degree C below setpoint (W/C)
REAL(r64),INTENT(IN) :: SetPointTemp ! setpoint temperature for basin heater operation (C)
REAL(r64),INTENT(OUT) :: Power ! Basin heater power (W)
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
REAL(r64) :: BasinHeaterSch ! Schedule for basin heater operation
Power = 0.0d0
! Operate basin heater anytime outdoor temperature is below setpoint and water is not flowing through the equipment
! IF schedule exists, basin heater performance can be scheduled OFF
IF(SchedulePtr .GT. 0)THEN
BasinHeaterSch = GetCurrentScheduleValue(SchedulePtr)
IF(Capacity .GT. 0.0d0 .AND. BasinHeaterSch .GT. 0.0d0)THEN
Power = MAX(0.0d0,Capacity * (SetPointTemp-OutDryBulbTemp))
END IF
ELSE
! IF schedule does not exist, basin heater operates anytime outdoor dry-bulb temp is below setpoint
IF(Capacity .GT. 0.0d0)THEN
Power = MAX(0.0d0,Capacity * (SetPointTemp-OutDryBulbTemp))
END IF
END IF
RETURN
END SUBROUTINE CalcBasinHeaterPower