Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in) | :: | RunFlag | |||
integer, | intent(in) | :: | TowerNum |
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 ReportTowers(RunFlag, TowerNum)
! SUBROUTINE INFORMATION:
! AUTHOR: Dan Fisher
! DATE WRITTEN: October 1998
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine updates the report variables for the tower.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
LOGICAL, INTENT(IN) :: RunFlag
INTEGER, INTENT(IN) :: TowerNum
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
REAL(r64) :: ReportingConstant
ReportingConstant = TimeStepSys*SecInHour
IF (.NOT. RunFlag)THEN
SimpleTowerReport(TowerNum)%InletWaterTemp = Node(WaterInletNode)%Temp
SimpleTowerReport(TowerNum)%OutletWaterTemp = Node(WaterInletNode)%Temp
SimpleTowerReport(TowerNum)%WaterMassFlowRate = WaterMassFlowRate
SimpleTowerReport(TowerNum)%Qactual = 0.0d0
SimpleTowerReport(TowerNum)%FanPower = 0.0d0
SimpleTowerReport(TowerNum)%FanEnergy = 0.0d0
SimpleTowerReport(TowerNum)%AirFlowRatio = 0.0d0
SimpleTowerReport(TowerNum)%WaterAmountUsed = 0.0d0
SimpleTowerReport(TowerNum)%BasinHeaterPower = BasinHeaterPower
SimpleTowerReport(TowerNum)%BasinHeaterConsumption = BasinHeaterPower*ReportingConstant
SimpleTowerReport(TowerNum)%FanCyclingRatio = 0.0d0
SimpleTowerReport(TowerNum)%BypassFraction = 0.0d0 ! added for fluid bypass
SimpleTowerReport(TowerNum)%NumCellON = 0
SimpleTowerReport(TowerNum)%SpeedSelected = 0
ELSE
SimpleTowerReport(TowerNum)%InletWaterTemp = Node(WaterInletNode)%Temp
SimpleTowerReport(TowerNum)%OutletWaterTemp = OutletWaterTemp
SimpleTowerReport(TowerNum)%WaterMassFlowRate = WaterMassFlowRate
SimpleTowerReport(TowerNum)%Qactual = Qactual
SimpleTowerReport(TowerNum)%FanPower = CTFanPower
SimpleTowerReport(TowerNum)%FanEnergy = CTFanPower*ReportingConstant
SimpleTowerReport(TowerNum)%AirFlowRatio = AirFlowRateRatio
SimpleTowerReport(TowerNum)%WaterAmountUsed = WaterUsage*ReportingConstant
SimpleTowerReport(TowerNum)%BasinHeaterPower = BasinHeaterPower
SimpleTowerReport(TowerNum)%BasinHeaterConsumption = BasinHeaterPower*ReportingConstant
SimpleTowerReport(TowerNum)%FanCyclingRatio = FanCyclingRatio
SimpleTowerReport(TowerNum)%BypassFraction = SimpleTower(TowerNum)%BypassFraction ! added for fluid bypass
SimpleTowerReport(TowerNum)%NumCellON = SimpleTower(TowerNum)%NumCellON
SimpleTowerReport(TowerNum)%SpeedSelected = SimpleTower(TowerNum)%SpeedSelected
END IF
RETURN
END SUBROUTINE ReportTowers