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) | :: | SensLoadMet | |||
real(kind=r64), | intent(out) | :: | LatLoadMet | |||
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 SimStandAloneERV(CompName,ZoneNum,FirstHVACIteration,SensLoadMet,LatLoadMet,CompIndex)
! SUBROUTINE INFORMATION:
! AUTHOR Richard Raustad, FSEC
! DATE WRITTEN June 2003
! MODIFIED Don Shirey, Aug 2009 (LatLoadMet)
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Manages the simulation of a Stand Alone ERV unit. Called from SimZoneEquipment
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor, ONLY: FindItem,MakeUPPERCase
USE General, ONLY: TrimSigDigits
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
LOGICAL, INTENT (IN) :: FirstHVACIteration ! TRUE if 1st HVAC simulation of system timestep
CHARACTER(len=*), INTENT (IN) :: CompName ! name of the Stand Alone ERV unit
! ZoneNum not used at this time, future modifications may require zone information
INTEGER, INTENT (IN) :: ZoneNum ! number of zone being served unused1208
REAL(r64), INTENT (OUT) :: SensLoadMet ! net sensible load supplied by the ERV unit to the zone (W)
REAL(r64), INTENT (OUT) :: LatLoadMet ! net latent load supplied by ERV unit to the zone (kg/s),
! dehumid = negative
INTEGER, INTENT(INOUT):: CompIndex ! pointer to correct component
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: StandAloneERVNum ! index of Stand Alone ERV unit being simulated
! First time SimStandAloneERV is called, get the input for all Stand Alone ERV units
IF (GetERVInputFlag) THEN
CALL GetStandAloneERV
GetERVInputFlag = .FALSE.
END IF
! Find the correct Stand Alone ERV unit index
IF (CompIndex == 0) THEN
StandAloneERVNum = FindItem(CompName,StandAloneERV%Name,NumStandAloneERVs)
IF (StandAloneERVNum == 0) THEN
CALL ShowFatalError('SimStandAloneERV: Unit not found='//TRIM(CompName))
ENDIF
CompIndex=StandAloneERVNum
ELSE
StandAloneERVNum=CompIndex
IF (StandAloneERVNum > NumStandAloneERVs .or. StandAloneERVNum < 1) THEN
CALL ShowFatalError('SimStandAloneERV: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(StandAloneERVNum))// &
', Number of Units='//TRIM(TrimSigDigits(NumStandAloneERVs))// &
', Entered Unit name='//TRIM(CompName))
ENDIF
IF (CheckEquipName(StandAloneERVNum)) THEN
IF (CompName /= StandAloneERV(StandAloneERVNum)%Name) THEN
CALL ShowFatalError('SimStandAloneERV: Invalid CompIndex passed='// &
TRIM(TrimSigDigits(StandAloneERVNum))// &
', Unit name='//TRIM(CompName)//', stored Unit Name for that index='// &
TRIM(StandAloneERV(StandAloneERVNum)%Name))
ENDIF
CheckEquipName(StandAloneERVNum)=.false.
ENDIF
ENDIF
! Initialize the Stand Alone ERV unit
CALL InitStandAloneERV(StandAloneERVNum,ZoneNum,FirstHVACIteration)
CALL CalcStandAloneERV(StandAloneERVNum,FirstHVACIteration,SensLoadMet,LatLoadMet)
CALL ReportStandAloneERV(StandAloneERVNum)
RETURN
END SUBROUTINE SimStandAloneERV