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 | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | CompName | |||
integer, | intent(in) | :: | ZoneNum | |||
logical, | intent(in) | :: | FirstHVACIteration | |||
real(kind=r64), | intent(out) | :: | PowerMet | |||
real(kind=r64), | intent(out) | :: | LatOutputProvided | |||
integer, | intent(inout) | :: | CompIndex |
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 SimUnitVentilator(CompName,ZoneNum,FirstHVACIteration,PowerMet,LatOutputProvided,CompIndex)
! SUBROUTINE INFORMATION:
! AUTHOR Rick Strand
! DATE WRITTEN May 2000
! MODIFIED Don Shirey, Aug 2009 (LatOutputProvided)
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This is the main driver subroutine for the Unit Ventilator simulation.
! METHODOLOGY EMPLOYED:
! Standard EnergyPlus methodology.
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor, ONLY: FindItemInList
USE General, ONLY: TrimSigDigits
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: CompName ! name of the fan coil unit
INTEGER, INTENT(IN) :: ZoneNum ! number of zone being served
LOGICAL, INTENT(IN) :: FirstHVACIteration ! TRUE if 1st HVAC simulation of system timestep
REAL(r64), INTENT(OUT) :: PowerMet ! Sensible power supplied (W)
REAL(r64), INTENT (OUT) :: LatOutputProvided ! Latent add/removal supplied by window AC (kg/s), dehumid = negative
INTEGER, INTENT(INOUT) :: CompIndex
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: UnitVentNum ! index of unit ventilator being simulated
! FLOW:
IF (GetUnitVentilatorInputFlag) THEN
CALL GetUnitVentilatorInput
GetUnitVentilatorInputFlag=.FALSE.
ENDIF
! Find the correct Unit Ventilator Equipment
IF (CompIndex == 0) THEN
UnitVentNum = FindItemInList(CompName,UnitVent%Name,NumOfUnitVents)
IF (UnitVentNum == 0) THEN
CALL ShowFatalError('SimUnitVentilator: Unit not found='//TRIM(CompName))
ENDIF
CompIndex=UnitVentNum
ELSE
UnitVentNum=CompIndex
IF (UnitVentNum > NumOfUnitVents .or. UnitVentNum < 1) THEN
CALL ShowFatalError('SimUnitVentilator: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(UnitVentNum))// &
', Number of Units='//TRIM(TrimSigDigits(NumOfUnitVents))// &
', Entered Unit name='//TRIM(CompName))
ENDIF
IF (CheckEquipName(UnitVentNum)) THEN
IF (CompName /= UnitVent(UnitVentNum)%Name) THEN
CALL ShowFatalError('SimUnitVentilator: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(UnitVentNum))// &
', Unit name='//TRIM(CompName)//', stored Unit Name for that index='// &
TRIM(UnitVent(UnitVentNum)%Name))
ENDIF
CheckEquipName(UnitVentNum)=.false.
ENDIF
ENDIF
CALL InitUnitVentilator(UnitVentNum,FirstHVACIteration,ZoneNum)
CALL CalcUnitVentilator(UnitVentNum,ZoneNum,FirstHVACIteration,PowerMet,LatOutputProvided)
! CALL UpdateUnitVentilator
CALL ReportUnitVentilator(UnitVentNum)
RETURN
END SUBROUTINE SimUnitVentilator