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) | :: | ZoneAirLoopEquipName | |||
logical, | intent(in) | :: | FirstHVACIteration | |||
real(kind=r64) | :: | SysOutputProvided | ||||
real(kind=r64) | :: | NonAirSysOutput | ||||
real(kind=r64), | intent(out) | :: | LatOutputProvided | |||
integer, | intent(in) | :: | ActualZoneNum | |||
integer | :: | ControlledZoneNum | ||||
integer | :: | 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 ManageZoneAirLoopEquipment(ZoneAirLoopEquipName, FirstHVACIteration, &
SysOutputProvided, NonAirSysOutput, LatOutputProvided, ActualZoneNum, &
ControlledZoneNum, CompIndex)
! SUBROUTINE INFORMATION:
! AUTHOR Russ Taylor
! DATE WRITTEN May 1997
! MODIFIED Don Shirey, Aug 2009 (LatOutputProvided)
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Calls the zone thermal control simulations and the interfaces
! (water-air, refrigerant-air, steam-air, electric-electric,
! water-water, etc)
! METHODOLOGY EMPLOYED:
! Needs description, as appropriate.
! REFERENCES:
! na
! USE STATEMENTS:
USE DataGlobals, ONLY: MaxNameLength
USE General, ONLY: TrimSigDigits
USE InputProcessor, ONLY: FindItemInList
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: ZoneAirLoopEquipName
LOGICAL, INTENT(IN) :: FirstHVACIteration
REAL(r64) :: SysOutputProvided
REAL(r64), INTENT(OUT) :: LatOutputProvided ! Latent add/removal supplied by window AC (kg/s), dehumid = negative
REAL(r64) :: NonAirSysOutput
INTEGER, INTENT(IN) :: ActualZoneNum
INTEGER :: ControlledZoneNum
INTEGER :: CompIndex
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
LOGICAL :: SimZone
INTEGER :: AirDistUnitNum
! Beginning of Code
CALL GetZoneAirLoopEquipment
! Find the correct Zone Air Distribution Unit Equipment
IF (CompIndex == 0) THEN
AirDistUnitNum = FindItemInList(ZoneAirLoopEquipName, AirDistUnit%Name, NumAirDistUnits)
IF (AirDistUnitNum == 0) THEN
CALL ShowFatalError('ManageZoneAirLoopEquipment: Unit not found='//TRIM(ZoneAirLoopEquipName))
ENDIF
CompIndex=AirDistUnitNum
ELSE
AirDistUnitNum=CompIndex
IF (AirDistUnitNum > NumAirDistUnits .or. AirDistUnitNum < 1) THEN
CALL ShowFatalError('ManageZoneAirLoopEquipment: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(AirDistUnitNum))// &
', Number of Units='//TRIM(TrimSigDigits(NumAirDistUnits))// &
', Entered Unit name='//TRIM(ZoneAirLoopEquipName))
ENDIF
IF (ZoneAirLoopEquipName /= AirDistUnit(AirDistUnitNum)%Name) THEN
CALL ShowFatalError('ManageZoneAirLoopEquipment: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(AirDistUnitNum))// &
', Unit name='//TRIM(ZoneAirLoopEquipName)//', stored Unit Name for that index='// &
TRIM(AirDistUnit(AirDistUnitNum)%Name))
ENDIF
ENDIF
CALL InitZoneAirLoopEquipment(FirstHVACIteration,AirDistUnitNum)
CALL SimZoneAirLoopEquipment(AirDistUnitNum, SysOutputProvided, NonAirSysOutput, LatOutputProvided, &
FirstHVACIteration, ControlledZoneNum, ActualZoneNum)
! CALL RecordZoneAirLoopEquipment
! CALL ReportZoneAirLoopEquipment
SimZone = .False.
RETURN
END SUBROUTINE ManageZoneAirLoopEquipment