Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(in) | :: | RunFlag | |||
integer, | intent(in) | :: | FluidCoolerNum |
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 ReportFluidCooler(RunFlag, FluidCoolerNum)
! SUBROUTINE INFORMATION:
! AUTHOR: Chandan Sharma
! DATE WRITTEN: August 2008
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine updates the report variables for the fluid cooler.
! 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) :: FluidCoolerNum
! 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
SimpleFluidCoolerReport(FluidCoolerNum)%InletWaterTemp = Node(WaterInletNode)%Temp
SimpleFluidCoolerReport(FluidCoolerNum)%OutletWaterTemp = Node(WaterInletNode)%Temp
SimpleFluidCoolerReport(FluidCoolerNum)%WaterMassFlowRate = WaterMassFlowRate
SimpleFluidCoolerReport(FluidCoolerNum)%Qactual = 0.0d0
SimpleFluidCoolerReport(FluidCoolerNum)%FanPower = 0.0d0
SimpleFluidCoolerReport(FluidCoolerNum)%FanEnergy = 0.0d0
ELSE
SimpleFluidCoolerReport(FluidCoolerNum)%InletWaterTemp = Node(WaterInletNode)%Temp
SimpleFluidCoolerReport(FluidCoolerNum)%OutletWaterTemp = OutletWaterTemp
SimpleFluidCoolerReport(FluidCoolerNum)%WaterMassFlowRate = WaterMassFlowRate
SimpleFluidCoolerReport(FluidCoolerNum)%Qactual = Qactual
SimpleFluidCoolerReport(FluidCoolerNum)%FanPower = FanPower
SimpleFluidCoolerReport(FluidCoolerNum)%FanEnergy = FanPower*ReportingConstant
END IF
RETURN
END SUBROUTINE ReportFluidCooler