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) | :: | ERVType | |||
character(len=*), | intent(in) | :: | ERVCtrlName | |||
logical, | intent(inout) | :: | ErrorsFound |
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.
FUNCTION GetSupplyAirFlowRate(ERVType,ERVCtrlName,ErrorsFound) RESULT(AirFlowRate)
! FUNCTION INFORMATION:
! AUTHOR Linda Lawrie
! DATE WRITTEN October 2006
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! This function looks up the ERVCtrlName in the ERV Stand Alone list and returns the
! Supply Air Flow rate, if found. If incorrect name is given, errorsfound is returned as true
! and supply air flow rate as negative.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE InputProcessor, ONLY: FindItem,SameString
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: ERVType ! must be "ZoneHVAC:EnergyRecoveryVentilator"
CHARACTER(len=*), INTENT(IN) :: ERVCtrlName ! must match a controller name in the ERV data structure
LOGICAL, INTENT(INOUT) :: ErrorsFound ! set to true if problem
REAL(r64) :: AirFlowRate ! returned supply air flow rate of the ERV unit
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
INTEGER :: WhichERV
IF (GetERVInputFlag) THEN
CALL GetStandAloneERV
GetERVInputFlag = .FALSE.
END IF
IF (SameString(ERVType,'ZoneHVAC:EnergyRecoveryVentilator')) THEN
WhichERV=FindItem(ERVCtrlName,StandAloneERV%ControllerName,NumStandAloneERVs)
IF (WhichERV /= 0) THEN
AirFlowRate=StandAloneERV(WhichERV)%SupplyAirVolFlow
ENDIF
ELSE
WhichERV=0
ENDIF
IF (WhichERV == 0) THEN
CALL ShowSevereError('Could not find ZoneHVAC:EnergyRecoveryVentilator with Controller Name="'//TRIM(ERVCtrlName)//'"')
ErrorsFound=.TRUE.
AirFlowRate=-1000.d0
ENDIF
RETURN
END FUNCTION GetSupplyAirFlowRate