Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | PattrnID | |||
integer, | intent(in) | :: | ZoneNum |
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.
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 FigureConstGradPattern(PattrnID, ZoneNum)
! SUBROUTINE INFORMATION:
! AUTHOR B. Griffith
! DATE WRITTEN August 2005
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! <description>
! METHODOLOGY EMPLOYED:
! <description>
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: PattrnID
INTEGER, INTENT(IN) :: ZoneNum
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
! na
REAL(r64) :: Tmean ! MAT
INTEGER :: i ! loop counter
REAL(r64) :: grad ! vertical temperature gradient
REAL(r64) :: ZetaTmean ! non-dimens. height for MAT, 0.5
REAL(r64) :: thisZeta ! temporary non-dimens height
REAL(r64) :: DeltaHeight ! temporary height difference
REAL(r64) :: tempDeltaTai ! temporary Delta Tai
Tmean = AirPatternZoneInfo(ZoneNum)%TairMean
Grad = RoomAirPattern(PattrnID)%GradPatrn%Gradient
ZetaTmean = 0.5d0 ! by definition,
DO i=1, AirPatternZoneInfo(ZoneNum)%totNumSurfs
thisZeta = AirPatternZoneInfo(ZoneNum)%surf(i)%zeta
DeltaHeight = -1.0d0*(ZetaTmean - thisZeta)* AirPatternZoneInfo(ZoneNum)%ZoneHeight
tempDeltaTai = DeltaHeight * Grad
AirPatternZoneInfo(ZoneNum)%surf(i)%TadjacentAir = tempDeltaTai + Tmean
ENDDO
AirPatternZoneInfo(ZoneNum)%Tstat = RoomAirPattern(PattrnID)%DeltaTstat + Tmean
AirPatternZoneInfo(ZoneNum)%Tleaving = RoomAirPattern(PattrnID)%DeltaTleaving + Tmean
AirPatternZoneInfo(ZoneNum)%Texhaust = RoomAirPattern(PattrnID)%DeltaTexhaust + Tmean
RETURN
END SUBROUTINE FigureConstGradPattern