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 | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | BaseboardNum |
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 SizeElectricBaseboard(BaseboardNum)
! SUBROUTINE INFORMATION:
! AUTHOR Fred Buhl
! DATE WRITTEN February 2002
! MODIFIED August 2013 Daeho Kang, add component sizing table entries
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine is for sizing electric baseboard components for which nominal capacities have not been
! specified in the input.
! METHODOLOGY EMPLOYED:
! Obtains flow rates from the zone sizing arrays and plant sizing data. UAs are
! calculated by numerically inverting the baseboard calculation routine.
! REFERENCES:
! na
! USE STATEMENTS:
USE DataSizing
USE ReportSizingManager, ONLY: ReportSizingOutput
USE General, ONLY: RoundSigDigits
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
Integer, Intent(IN) :: BaseboardNum
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
REAL(r64) :: NominalCapacityDes ! Design capacity value for reproting
REAL(r64) :: NominalCapacityUser ! User hard-sized UA value for reproting
LOGICAL :: IsAutosize ! Indicator to autosizing nominal capacity
IsAutosize = .FALSE.
NominalCapacityDes = 0.0d0
NominalCapacityUser = 0.0d0
IF (CurZoneEqNum > 0) THEN
IF (ElecBaseboard(BaseboardNum)%NominalCapacity == AutoSize) THEN
IsAutosize = .TRUE.
END IF
! Check if all are hard-sized
IF (.NOT. IsAutosize .AND. .NOT. ZoneSizingRunDone) THEN ! simulation should continue
IF (ElecBaseboard(BaseboardNum)%NominalCapacity > 0.0d0) THEN
CALL ReportSizingOutput(cCMO_BBRadiator_Electric,ElecBaseboard(BaseboardNum)%EquipName,&
'User-Specified Nominal Capacity [W]',ElecBaseboard(BaseboardNum)%NominalCapacity)
END IF
ELSE ! Autosize or hard-size with sizing run
CALL CheckZoneSizing(cCMO_BBRadiator_Electric,ElecBaseboard(BaseboardNum)%EquipName)
NominalCapacityDes = CalcFinalZoneSizing(CurZoneEqNum)%DesHeatLoad * &
CalcFinalZoneSizing(CurZoneEqNum)%HeatSizingFactor
IF (IsAutoSize) THEN
ElecBaseboard(BaseboardNum)%NominalCapacity = NominalCapacityDes
CALL ReportSizingOutput(cCMO_BBRadiator_Electric,ElecBaseboard(BaseboardNum)%EquipName,&
'Design Size Nominal Capacity [W]',NominalCapacityDes)
ELSE ! Hard-size with sizing data
IF (ElecBaseboard(BaseboardNum)%NominalCapacity > 0.0d0 .AND. NominalCapacityDes > 0.0d0) THEN
NominalCapacityUser = ElecBaseboard(BaseboardNum)%NominalCapacity
CALL ReportSizingOutput(cCMO_BBRadiator_Electric,ElecBaseboard(BaseboardNum)%EquipName,&
'Design Size Nominal Capacity [W]',NominalCapacityDes, &
'User-Specified Nominal Capacity [W]',NominalCapacityUser)
IF (DisplayExtraWarnings) THEN
IF ((ABS(NominalCapacityDes - NominalCapacityUser)/NominalCapacityUser) > AutoVsHardSizingThreshold) THEN
CALL ShowMessage('SizeElecBaseboard: Potential issue with equipment sizing for ' &
//'ZoneHVAC:Baseboard:RadiantConvective:Electric="'// &
TRIM(ElecBaseboard(BaseboardNum)%EquipName)//'".')
CALL ShowContinueError('User-Specified Nominal Capacity of '// &
TRIM(RoundSigDigits(NominalCapacityUser,2))// ' [W]')
CALL ShowContinueError('differs from Design Size Nominal Capacity of ' // &
TRIM(RoundSigDigits(NominalCapacityDes,2))// ' [W]')
CALL ShowContinueError('This may, or may not, indicate mismatched component sizes.')
CALL ShowContinueError('Verify that the value entered is intended and is consistent with other components.')
END IF
ENDIF
END IF
END IF
END IF
END IF
RETURN
END SUBROUTINE SizeElectricBaseboard