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:
LOGICAL :: IsAutosize ! Indicator to autosizing nominal capacity
REAL(r64) :: NominalCapacityDes ! Design nominal capacity for reporting
REAL(r64) :: NominalCapacityUser ! User hard-sized nominal capacity for reporting
IsAutosize = .FALSE.
NominalCapacityDes = 0.0d0
NominalCapacityUser = 0.0d0
IF (CurZoneEqNum > 0) THEN
IF (Baseboard(BaseboardNum)%NominalCapacity == AutoSize) THEN
IsAutosize = .TRUE.
END IF
IF (.NOT. IsAutosize .AND. .NOT. ZoneSizingRunDone) THEN ! Simulation continue
IF (Baseboard(BaseboardNum)%NominalCapacity > 0.0d0) THEN
CALL ReportSizingOutput(cCMO_BBRadiator_Electric,Baseboard(BaseboardNum)%EquipName,&
'User-Specified Nominal Capacity [W]',Baseboard(BaseboardNum)%NominalCapacity)
END IF
ELSE ! Autosize or hard-size with design run
CALL CheckZoneSizing(Baseboard(BaseboardNum)%EquipType,Baseboard(BaseboardNum)%EquipName)
NominalCapacityDes = CalcFinalZoneSizing(CurZoneEqNum)%DesHeatLoad * &
CalcFinalZoneSizing(CurZoneEqNum)%HeatSizingFactor
IF (IsAutosize) THEN
Baseboard(BaseboardNum)%NominalCapacity = NominalCapacityDes
CALL ReportSizingOutput(cCMO_BBRadiator_Electric,Baseboard(BaseboardNum)%EquipName,&
'Design Size Nominal Capacity [W]',NominalCapacityDes)
ELSE ! hard-sized with sizing data
IF (Baseboard(BaseboardNum)%NominalCapacity > 0.0d0 .AND. NominalCapacityDes > 0.0d0) THEN
NominalCapacityUser = Baseboard(BaseboardNum)%NominalCapacity
CALL ReportSizingOutput(cCMO_BBRadiator_Electric,Baseboard(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('SizeBaseboard: Potential issue with equipment sizing for ZoneHVAC:Baseboard:Convective:Electric="'&
// TRIM(Baseboard(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.')
ENDIF
END IF
END IF
END IF
END IF
END IF
RETURN
END SUBROUTINE SizeElectricBaseboard