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) | :: | MyLoad | |||
logical, | intent(in) | :: | RunFlag | |||
integer, | intent(in) | :: | Num |
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 UpdateBoilerRecords(MyLoad,RunFlag, Num)
! SUBROUTINE INFORMATION:
! AUTHOR: Dan Fisher
! DATE WRITTEN: October 1998
! PURPOSE OF THIS SUBROUTINE:
! boiler simulation reporting
! METHODOLOGY EMPLOYED:na
! REFERENCES: na
! USE STATEMENTS: na
USE PlantUtilities, ONLY : SafeCopyPlantNode
IMPLICIT NONE
! SUBROUTINE ARGUMENT DEFINITIONS:
REAL(r64), INTENT(IN) :: MyLoad !boiler operating load
LOGICAL, INTENT(IN) :: RunFlag !boiler on when TRUE
INTEGER, INTENT(IN) :: Num !boiler number
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: BoilerInletNode ! Boiler inlet node number
INTEGER :: BoilerOutletNode ! Boiler outlet node number
REAL(r64) :: ReportingConstant ! constant for converting power to energy
ReportingConstant = TimeStepSys * SecInHour
BoilerInletNode = Boiler(Num)%BoilerInletNodeNum
BoilerOutletNode = Boiler(Num)%BoilerOutletNodeNum
IF (MyLoad<=0 .OR. .NOT. RunFlag)THEN
!set node temperatures
CALL SafeCopyPlantNode(BoilerInletNode, BoilerOutletNode)
Node(BoilerOutletNode)%Temp = Node(BoilerInletNode)%Temp
BoilerReport(Num)%BoilerOutletTemp = Node(BoilerInletNode)%Temp
BoilerReport(Num)%BoilerLoad = 0.0d0
BoilerReport(Num)%FuelUsed = 0.0d0
BoilerReport(Num)%ParasiticElecPower = 0.0d0
BoilerReport(Num)%BoilerPLR = 0.0d0
ELSE
!set node temperatures
CALL SafeCopyPlantNode(BoilerInletNode, BoilerOutletNode)
Node(BoilerOutletNode)%Temp = BoilerOutletTemp
BoilerReport(Num)%BoilerOutletTemp = BoilerOutletTemp
BoilerReport(Num)%BoilerLoad = BoilerLoad
BoilerReport(Num)%FuelUsed = FuelUsed
BoilerReport(Num)%ParasiticElecPower = ParasiticElecPower
BoilerReport(Num)%BoilerPLR = BoilerPLR
END IF
BoilerReport(Num)%BoilerInletTemp = Node(BoilerInletNode)%Temp
BoilerReport(Num)%Mdot = Node(BoilerOutletNode)%MassFlowRate
BoilerReport(Num)%BoilerEnergy = BoilerReport(Num)%BoilerLoad * ReportingConstant
BoilerReport(Num)%FuelConsumed = BoilerReport(Num)%FuelUsed * ReportingConstant
BoilerReport(Num)%ParasiticElecConsumption = BoilerReport(Num)%ParasiticElecPower * ReportingConstant
RETURN
END SUBROUTINE UpdateBoilerRecords