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 SimOutdoorAirUnit(CompName,ZoneNum,FirstHVACIteration,PowerMet,LatOutputProvided,CompIndex)
! SUBROUTINE INFORMATION:
! AUTHOR Rick Strand
! DATE WRITTEN May 2000
! MODIFIED na
! RE-ENGINEERED
! This is re-engineered by Rick Strand and Young T. Chae for OutdoorAirUnit (July, 2009)
! PURPOSE OF THIS SUBROUTINE:
! This is the main driver subroutine for the outdoor air control unit 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 outdoor air 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 :: OAUnitNum ! index of outdoor air unit being simulated
! FLOW:
IF (GetOutdoorAirUnitInputFlag) THEN
CALL GetOutdoorAirUnitInputs
GetOutdoorAirUnitInputFlag=.false.
ENDIF
! Find the correct Outdoor Air Unit
IF (CompIndex == 0) THEN
OAUnitNum=FindItemInList(CompName,OutAirUnit%Name,NumOfOAunits)
IF (OAUnitNum == 0) THEN
CALL ShowFatalError('ZoneHVAC:OutdoorAirUnit not found='//TRIM(CompName))
ENDIF
ELSE
OAUnitNum=CompIndex
IF (OAUnitNum > NumOfOAunits .or. OAUnitNum < 1) THEN
CALL ShowFatalError('SimOutdoorAirUnit: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(OAUnitNum))// &
', Number of Units='//TRIM(TrimSigDigits(NumOfOAunits))// &
', Entered Unit name='//TRIM(CompName))
ENDIF
IF (CheckEquipName(OAUnitNum)) THEN
IF (CompName /= OutAirUnit(OAUnitNum)%Name) THEN
CALL ShowFatalError('SimOutdoorAirUnit: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(OAUnitNum))// &
', Unit name='//TRIM(CompName)//', stored Unit Name for that index='// &
TRIM(OutAirUnit(OAUnitNum)%Name))
ENDIF
CheckEquipName(OAUnitNum)=.false.
ENDIF
ENDIF
IF (ZoneSizingCalc .or. SysSizingCalc) RETURN
CALL InitOutdoorAirUnit(OAUnitNum,ZoneNum,FirstHVACIteration)
CALL CalcOutdoorAirUnit(OAUnitNum,ZoneNum,FirstHVACIteration,PowerMet,LatOutputProvided)
! CALL UpdateOutdoorAirUnit(OAUnitNum, FirstHVACIteration)
CALL ReportOutdoorAirUnit(OAUnitNum)
RETURN
END SUBROUTINE SimOutdoorAirUnit