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) | :: | HXNum | |||
logical, | intent(inout) | :: | ErrorsFound | |||
character(len=*), | intent(in) | :: | HXName | |||
real(kind=r64), | optional | :: | SupplyAirVolFlow | |||
real(kind=r64), | optional | :: | SecondaryAirVolFlow |
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 SetHeatExchangerData(HXNum, ErrorsFound, HXName, SupplyAirVolFlow, SecondaryAirVolFlow)
! 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) :: HXNum ! Index of HX
LOGICAL, INTENT(INOUT) :: ErrorsFound ! Set to true if certain errors found
CHARACTER(len=*),INTENT(IN) :: HXName ! Name of HX
REAL(r64), OPTIONAL :: SupplyAirVolFlow ! HX supply air flow rate [m3/s]
REAL(r64), OPTIONAL :: SecondaryAirVolFlow ! HX secondary air flow rate [m3/s]
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER :: WhichHX ! index to generic HX
! Obtains and Allocates heat exchanger related parameters from input file
IF (GetInputFlag) THEN !First time subroutine has been entered
CALL GetHeatRecoveryInput
GetInputFlag=.FALSE.
End If
IF (HXNum .EQ. 0)THEN
WhichHX=FindItemInList(HXName,ExchCond%Name,NumHeatExchangers)
ELSE
WhichHX=HXNum
END IF
IF (WhichHX <= 0 .OR. WhichHX .GT. NumHeatExchangers) THEN
CALL ShowSevereError('SetHeatExchangerData: Could not find heat exchanger = "'//TRIM(HXName)//'"')
ErrorsFound=.TRUE.
RETURN
ENDIF
IF(PRESENT(SupplyAirVolFlow))THEN
ExchCond(WhichHX)%NomSupAirVolFlow = SupplyAirVolFlow
END IF
IF(PRESENT(SecondaryAirVolFlow))THEN
ExchCond(WhichHX)%NomSecAirVolFlow = SecondaryAirVolFlow
END IF
RETURN
END SUBROUTINE SetHeatExchangerData