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 | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | FanNum | |||
logical, | intent(inout) | :: | ErrorsFound | |||
character(len=*), | intent(in) | :: | FanName | |||
real(kind=r64), | optional | :: | MaxAirVolFlow | |||
real(kind=r64), | optional | :: | MinAirVolFlow |
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 SetFanData(FanNum, ErrorsFound, FanName, MaxAirVolFlow, MinAirVolFlow)
! SUBROUTINE INFORMATION:
! AUTHOR Richard Raustad
! DATE WRITTEN October 2007
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This routine was designed for to autosize the HeatExchanger:AirToAir:SensibleAndLatent using
! information from the ZoneHVAC:EnergyRecoveryVentilator object.
! This is an illustration of setting data from an outside source.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE General, ONLY: TrimSigDigits
USE InputProcessor, ONLY: FindItemInList
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: FanNum ! Index of fan
LOGICAL, INTENT(INOUT) :: ErrorsFound ! Set to true if certain errors found
CHARACTER(len=*),INTENT(IN) :: FanName ! Name of fan
REAL(r64), OPTIONAL :: MaxAirVolFlow ! Fan air volumetric flow rate [m3/s]
REAL(r64), OPTIONAL :: MinAirVolFlow ! Fan air volumetric flow rate [m3/s]
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: WhichFan ! index to generic HX
! Obtains and Allocates fan related parameters from input file
IF (GetFanInputFlag) THEN !First time subroutine has been entered
CALL GetFanInput
GetFanInputFlag=.false.
End If
IF(FanNum .EQ. 0)THEN
WhichFan = FindItemInList(FanName,Fan%FanName,NumFans)
ELSE
WhichFan = FanNum
END IF
IF (WhichFan <= 0 .OR. WhichFan .GT. NumFans) THEN
CALL ShowSevereError('SetFanData: Could not find fan = "'//TRIM(FanName)//'"')
ErrorsFound=.TRUE.
RETURN
ENDIF
IF(PRESENT(MaxAirVolFlow))THEN
Fan(WhichFan)%MaxAirFlowRate = MaxAirVolFlow
END IF
IF(PRESENT(MinAirVolFlow))THEN
Fan(WhichFan)%MinAirFlowRate = MinAirVolFlow
END IF
RETURN
END SUBROUTINE SetFanData