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 SimVentilatedSlab(CompName,ZoneNum,FirstHVACIteration,PowerMet,LatOutputProvided,CompIndex)
! SUBROUTINE INFORMATION:
! AUTHOR Rick Strand
! DATE WRITTEN May 2000
! MODIFIED Don Shirey, Aug 2009 (LatOutputProvided)
! RE-ENGINEERED
! This is re-engineered by Rick Strand and Young T. Chae for Ventilated Slab (June, 2008)
! PURPOSE OF THIS SUBROUTINE:
! This is the main driver subroutine for the Ventilated Slab 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 :: Item ! index of ventilated slab being simulated
LOGICAL,SAVE :: GetInputFlag = .true. ! First time, input is "gotten"
! FLOW:
IF (GetInputFlag) THEN
CALL GetVentilatedSlabInput
GetInputFlag=.false.
ENDIF
! Find the correct VentilatedSlabInput
IF (CompIndex == 0) THEN
Item = FindItemInList(CompName,VentSlab%Name,NumOfVentSlabs)
IF (Item == 0) THEN
CALL ShowFatalError('SimVentilatedSlab: system not found='//TRIM(CompName))
ENDIF
CompIndex=Item
ELSE
Item=CompIndex
IF (Item > NumOfVentSlabs .or. Item < 1) THEN
CALL ShowFatalError('SimVentilatedSlab: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(Item))// &
', Number of Systems='//TRIM(TrimSigDigits(NumOfVentSlabs))// &
', Entered System name='//TRIM(CompName))
ENDIF
IF (CheckEquipName(Item)) THEN
IF (CompName /= VentSlab(Item)%Name) THEN
CALL ShowFatalError('SimVentilatedSlab: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(Item))// &
', System name='//TRIM(CompName)//', stored System Name for that index='// &
TRIM(VentSlab(Item)%Name))
ENDIF
CheckEquipName(Item)=.false.
ENDIF
ENDIF
CALL InitVentilatedSlab(Item,ZoneNum,FirstHVACIteration)
CALL CalcVentilatedSlab(Item,ZoneNum,FirstHVACIteration,PowerMet,LatOutputProvided)
CALL UpdateVentilatedSlab(Item, FirstHVACIteration)
CALL ReportVentilatedSlab(Item)
RETURN
END SUBROUTINE SimVentilatedSlab