1o'hbrazillan f'~&,., - departamento de engenharia...

4
X CONGRESSO BRASILEIRO DE ENGENHARIA MECÂNICA, RIO DE JANEIRO. RJ (DEZEMBRO, 1989) 1O'hBRAZILlAN CONGRESS DF MECHANICAL ENGINEERING THE USE OF CO-LOCATED VAR1ABLES IN THE SOLUT10N OF SUPERSON1C FLOWS C, H. MARCH1. C. R. MAL1SKA & A. L. BORTOL1 Department of Mechanical Engineering Federal University of Santa Catarina P.O.Box. 476 - 88049 - Florianópolis - SC - Brazil f'~"& ,., ~ PEM PROGRAMA DE ENGENHARIA MECÃNICA. COPPE/UFRJ AIi::iTKACT The solution of incompressible flows using control volume methods norroaly employ the staggêred grid arrangement in order to have a tight coupling between pressure and velocity. This procedure introduces significant difficulties in the computer code implementation due to the existence of different control volume for each variable. This paper presents the numerical solution of compressible and incompressible flows using a general methodology for alI speed flows. written for co-located variables. Incompressible and supersonic flows are solved and the results compared with the ones obtained using staggered grids in terms of convergence behaviours and CPU effort. GOVERN1NG EQUAT10NS AND APPROX1MATE EOUAT10NS The governing equations for laminar compressible flows with constant physical properties can be written for a general scalar ~ as where the r~, S~ and p~ terroscan be found in Table 1. Table 1. Expressions for r~, S~ and p~. more compact and easy to implement computer codes written for nonorthogonal grids. The paper aIso contributes to the knowledge of the bfthaviour of co-located methods for compressible flows. This is of major importance since the variables location in the grid is intimately connected with the ~tre~gth of the pressure-velocity/density coupling. (1) a a a i> a (aib) --(p~) + --(ou~) + --(pv~) = r -- -- at ax ay ax ax + r~.1....[a~) + S~ _ pi> ay ay ~ r~ S~ p~ 1 O O O u li li a (au + av) ~ 3" ax ax ay ax li a (au av) ~ v li 3" ay ax + ay ay k (~a a au av) O T + --(up) + --(vp) - ~ - p-- /c cp at ax ay ax ay P To integrate the Eq.(l), to obtain the algebric equations. the variable location in the grid must be decided. 1n this paper one is interested in analysing the perforroance of the co-located variables method. As can be seen in Fig. 1. u, v, p, o and T are alI 10- cated at the point P. There are two main questions to be answered at this point when using this type of variable location. First, when integration of the mass conservation equation is perforroed there will beithe need of calculating velocities at the control volume interfaces. since velocity components are not stored at those locations. How to compute these velocities? Also, one must decide how to calculate the pressure gradient which will enter the momentum equations, such that a tight coupling between pressure and velocity is assured. 1n face the answer to these two questions. such that mass is conserved. togheter with an adequate The numerical methods designed to solve supersonic flow problems employ. in general. the state equation for finding pressure. 1n this case density is considered the dependent variable in the mass conservation equation. When the incompressible limit is reached. that is. for low Xach numbers. these methods are no longer suitable. Very recently. extensions of the metodologies employed for incompressible flows have been applied. with success. in the solution of compressible fluid flow problems. These methods forro an equation for pressure. replacing. in the mass conservation equation. density by a linearized forroof the state equ~tion and velocity components by their respective momentum equations. The drawback of these methods is that they require the use of staggered variables in order to provide the adequatel coupling between pressure and velocity/density. As a consequence of the staggered arrangement the computer code implementation becomes cumbersome. specially if variable grid spacing is used in three dimensions, because the different control volume locations and the corresponding metric storaging. The alternative ta this problem is to keep alI variables stored at the'same point, that is. alI of them share the same elemental control volume. The use of co-located variables simplifies considerably the coefficients calculation and storaging, and geometrical data storaging. The difficulty associated with the use of co-located variables is the poor coupling it provides between pressure and velocity/density. 'This difficulty can be removed taKing care in numerically approximating the pressure gradients. Successful aplications of finite volume methods using nonorthogonal grids with co-located variables can be seen in [1] and [2]. With the increase in the use of nonorthogonal grids, the interest in using co- located variables is growing [3] [4]. They. however. deal only with incompressible fluid flows and only very few numerical experiments have been done employing such methods 'up to now. This paper advances the application of co- located variables for viscous compressible flows employing a simultaneous correction in velocity and density to deal with the pressure-velocity/density coupling [5] [6]. preliminary results are reported for the developing flow (incompressible) between paralel plates. with the only purpose of code checking, and for the viscous compressible flow over an obstacle with Xach number equal to 2.0. The results obtained demonstrate that co-located variables are a viable route to follow for the development of INTRODUCTlON 157

Upload: phungkhuong

Post on 09-Nov-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1O'hBRAZILlAN f'~&,., - Departamento de Engenharia Mecânicaservidor.demec.ufpr.br/CFD/artigos_congressos/1989_Marchi_Maliska... · x congresso brasileiro de engenharia mecÂnica,

X CONGRESSO BRASILEIRO DE ENGENHARIA MECÂNICA, RIO DE JANEIRO. RJ (DEZEMBRO, 1989)1O'hBRAZILlAN CONGRESS DF MECHANICAL ENGINEERING

THE USE OF CO-LOCATED VAR1ABLES IN THE

SOLUT10N OF SUPERSON1C FLOWS

C, H. MARCH1. C. R. MAL1SKA & A. L. BORTOL1

Department of Mechanical EngineeringFederal University of Santa Catarina

P.O.Box. 476 - 88049 - Florianópolis - SC - Brazil

f'~"&,.,~

PEMPROGRAMA DE

ENGENHARIA

MECÃNICA.

COPPE/UFRJ

AIi::iTKACT

The solution of incompressible flows using control volume methods norroaly employ

the staggêred grid arrangement in order to have a tight coupling between pressure andvelocity. This procedure introduces significant difficulties in the computer codeimplementation due to the existence of different control volume for each variable.This paper presents the numerical solution of compressible and incompressible flowsusing a general methodology for alI speed flows. written for co-located variables.Incompressible and supersonic flows are solved and the results compared with the onesobtained using staggered grids in terms of convergence behaviours and CPU effort.

GOVERN1NG EQUAT10NS AND APPROX1MATE EOUAT10NS

The governing equations for laminar compressibleflows with constant physical properties can be written

for a general scalar ~ as

where the r~, S~ and p~ terroscan be found in Table 1.

Table 1. Expressions for r~, S~ and p~.

more compact and easy to implement computer codeswritten for nonorthogonal grids.

The paper aIso contributes to the knowledge ofthe bfthaviour of co-located methods for compressibleflows. This is of major importance since the variableslocation in the grid is intimately connected with the

~tre~gth of the pressure-velocity/density coupling.

(1)

a a a i> a (aib)--(p~) + --(ou~) + --(pv~) = r -- -­at ax ay ax ax

+ r~.1....[a~) + S~ _ pi>ay ay

~r~ S~p~

1

O OO

u

li li a (au + av)~3" ax ax ay

ax

li a (au av)

~v

li3" ay ax + ay ay

k(~a a au av)

OT + --(up) + --(vp) - ~ - p-- /c

cp

at ax ay ax ay P

To integrate the Eq.(l), to obtain the algebric

equations. the variable location in the grid must bedecided. 1n this paper one is interested in analysing

the perforroance of the co-located variables method.As can be seen in Fig. 1. u, v, p, o and T are alI 10­

cated at the point P.There are two main questions to be answered at

this point when using this type of variable location.First, when integration of the mass conservation

equation is perforroed there will beithe need ofcalculating velocities at the control volumeinterfaces. since velocity components are not storedat those locations. How to compute these velocities?Also, one must decide how to calculate the pressure

gradient which will enter the momentum equations, suchthat a tight coupling between pressure and velocity isassured. 1n face the answer to these two questions.such that mass is conserved. togheter with an adequate

The numerical methods designed to solve

supersonic flow problems employ. in general. the stateequation for finding pressure. 1n this case density isconsidered the dependent variable in the massconservation equation. When the incompressible limitis reached. that is. for low Xach numbers. these

methods are no longer suitable.Very recently. extensions of the metodologies

employed for incompressible flows have been applied.with success. in the solution of compressible fluid

flow problems. These methods forro an equation forpressure. replacing. in the mass conservationequation. density by a linearized forroof the stateequ~tion and velocity components by their respectivemomentum equations. The drawback of these methods is

that they require the use of staggered variables inorder to provide the adequatel coupling between

pressure and velocity/density. As a consequence of thestaggered arrangement the computer code implementationbecomes cumbersome. specially if variable grid spacingis used in three dimensions, because the different

control volume locations and the corresponding metric

storaging.The alternative ta this problem is to keep alI

variables stored at the'same point, that is. alI ofthem share the same elemental control volume. The use

of co-located variables simplifies considerably thecoefficients calculation and storaging, and

geometrical data storaging. The difficulty associatedwith the use of co-located variables is the poor

coupling it provides between pressure andvelocity/density. 'This difficulty can be removedtaKing care in numerically approximating the pressuregradients.

Successful aplications of finite volume methods

using nonorthogonal grids with co-located variablescan be seen in [1] and [2]. With the increase in theuse of nonorthogonal grids, the interest in using co­located variables is growing [3] [4]. They. however.

deal only with incompressible fluid flows and onlyvery few numerical experiments have been doneemploying such methods 'up to now.

This paper advances the application of co­located variables for viscous compressible flows

employing a simultaneous correction in velocity anddensity to deal with the pressure-velocity/density

coupling [5] [6]. preliminary results are reportedfor the developing flow (incompressible) between

paralel plates. with the only purpose of codechecking, and for the viscous compressible flow overan obstacle with Xach number equal to 2.0. Theresults obtained demonstrate that co-located variablesare a viable route to follow for the development of

INTRODUCTlON

157

Page 2: 1O'hBRAZILlAN f'~&,., - Departamento de Engenharia Mecânicaservidor.demec.ufpr.br/CFD/artigos_congressos/1989_Marchi_Maliska... · x congresso brasileiro de engenharia mecÂnica,

pressure-velocity coupling characteristic, enable theuse of co-located variables for the solution of fluidflow and heat transfer problems.

To illustrate the integration of the Eq. (I), the

integration of the second term in the left hand side,over the elemental control volume shown in Fig. 1 is

performed. This gives

velocity will be taken as (PE - pp)/óx, creating theconsistency between the pressure gradient and thevelocities which takes part in the mass conservation

equation. Therefore, to form the equations for theinterface velocities the pressure gradients in Eq.(5)and (6) do not enter in the averaging processo

Scheme A. For this case the ue is calculated by

Üe1 (âppüp + âpEÜE)

2" (app+apE)/2

óV (PE - pp)

Óx (app+apE)/2(7)

It is recalled that ue' Uw' vn and Vs are notknown and must be evaluated as a function of the

velocity components stored at the center of thecontrol volumes. Ways to find these velocities will bediscussed in this paper.

As can be seen, not considering the pressure

gradient the ue' as calculated above, is an average ofthe two neighbouring velocities weighted by theircentral coefficients and source terms. This is the

procedure adopted in this paper.

Fig. 1 - Location of the variables on the grid.

(8)

Peric

flo'"

- ÓV(_I_ + f-) (PE-Pp) Ióx app PE J

Scheme B. This scheme is the one used by

[4] in the calculation of incompressible fluid

problems. The ue is evaluated as

Inspection of Eq.(8) reveals that this averaging

process is a linear interpolation, without consideringthe pressure gradient, between the neighbouringvelocities. It is demonstrated in [7] that without a

proper underrelaxation parameter this scheme leads to

a dj}ferent steady solutions for different time steps.Calculations carried out during this work using thisscheme revealled the same behaviour for the

compressible calculations. In contrast, the schemeprop~sed in this work converges for a unique steadystate solution independent of the time step used.

For completness the üe velocity used in thiswork is rewritten here

- IIN -

vnn 4 I

Ü",

vP1 Uüe

;-t;P-

I-E-w- -r- p , eeewpIs I Vs

5-

Integration of Eq.(I) over time and over theelemental control volume shown in Fig. I, gives

LI. t.x .1

Again it is recalled that when ~ is equal to uor v, the pressure needed in the momentum equations

will be Pe and Pw' and Pn and Ps' respectivelly.

PRESSURE-VELOCITY/DENSITY COUPLING

the average of the central coefficientsSimilar expressions can be written for

enter

where ãPe is

for up and uE"

Uw' "n and "s' These velocity components willthe mass conservation equation.interfa­

function

EVALUATION OF u, v AND P AT INTERFACES

Two schemes to evaluate u and v at the

ces are used. Both of them calculate Ue as a

of up and uE' The two velocities are given by

(3)

The mass conservation equation is recovered

putting ~ ; 1 and r~, S~ and p~ equal to zero in Eq.(I). The equation is

o (10)

(4) where. to ilustrate the mass flux line3rization, the

Me terro is taken as example

orM

e p ü*óy + p*ü óye e e e p*ü*óye e (! I)

where app is the central coefficient at volumeapE is the central coefficient at volume E.

The pressure gradient which drives

p

the

(5)

(6)

and

where the star means the value of the best estimate

value of p and ue. This mass flux linearizationpermits fluid flow problems to be solved for alIspeeds, that is. ranging from incompressible to highMach number flows. ln this procedure velocity anddensity are corrected using a correction pressurefield. Expressicns for the velocity correctionsfollows the SIMPLEC {8] procedure and are given by.

for the ue velocity.

158

Page 3: 1O'hBRAZILlAN f'~&,., - Departamento de Engenharia Mecânicaservidor.demec.ufpr.br/CFD/artigos_congressos/1989_Marchi_Maliska... · x congresso brasileiro de engenharia mecÂnica,

~U~ERICAL RESULTS

1 .20 1.50O

10u / u""

0.000.00 0.30 0.60 0.90

Fig. 2 - Velocity profiles for differentaxial stations to Mach 5x10-5.

Fig. 4 - Constant pressure lines. Co-located

and staggered arrangements. 22x1B grid.

o10 1.00

0.80I

0.60

.........>-

0.40

0.20

Fig. 6 shows the convergence behaviour using a(22x1B) grid. where it can be observed that the

optimum time step to advance the solution. using co-

au = av = ª-I = OIay ()y ay I~u = O

dXAR I

L = 0.55BR ::I

av ~

":L...: = d~ = 2.0 H = 0.4572 m~T = L) ILi

T = 27B K ~

h = t' / 9oX

p = :03 kP ôT

u-'.'~--=O dX

~

I v = au = ~T = O[Jhx

ay óy

I.LI

..Fig.

3 - Geometry and boundary conditions.

As final results Fig. 6 and 7 present the con­vergence behaviour of both methodologies. ln theresults which follows. scheme A was used in the co­

located metodology. since scheme B produced differentsteady state solutions for different time steps.

(14)

(13)

(12)

u and v by their respectivesin the mass conservation

flux linearization equationobtains an equation for the

4. Calculate VV* and solve Eq.(14) to obtain p'.5. Correct u*, v* and p* using Eq. (12) and (13).6. Solve for T.

7. Back to step 2 and iterate until convergence.

As mentioned, two test problems are solved usingthe co-located and the staggered arrangements. Theobjectives of the tests are two-rold. Firstly. it isto compare the results obtained with the co-locatedagainst the staggered arrangement. based on thequality of the results and CPU efrort. Secondly. itis to observe the convergence characteristics of the

co-located a!rangement when the time step to advancethe solution is changed. The first test problem isthe laminar incompressible flow in the entrance regionor two paralel plates. Since the methodology used canhandle any flow regime, the Mach number was taken e­qual to 5x10-5 in order to have a truly incompressibleflow. Fig. 2 shows the velocity profile for differentaxial stations, calculated with 22x1B volumes. The

results are exactly the same as using the staggeredarrangements for both schems A and B of evaluating theinterface velocities. The CPU effort is also the same

ror both arrangements. The rirst important finding isthe fact that the way the interface velocity isevaluated does not inrluence the results and the CPU

effort to obtain the solution when incompressible flowproblems are solved.

The second test problem is the supersonic flowover an obstacle as shown in Fig. 3, where the

boundary conditions are also presented. The Machnumber used was equal to 2.0. Fig. 4 shows theconstant pressure lines for both the co-located andstaggered arrangements. calculated with a (22x1B)grid. It is seen that behind the step the agreementis not good. The constant pressure lines were chosento be plotted because the other fields present lessdicrepancies. Fig. 5 depicts the same fields but atthis time obtained with a (44x36) grid. It can be

seen now that the results agree very well. It isimportant to point out that the code which usesstaggered grids was already tested previously [6].

A complete description of the method used to

treat the pressure-velocity/density coupling can befound in [6]. The same procedure described in [6]applies here, substituting the velocity componentswhich enter mass conservation by the expressions givenby Eq. (5) and (6). Briefly. a simplified solution

procedure can be summarized as follows:1. Estimate a u. v. T and p fields.2. Solve for u* using Eq. (3) and similar equation

for v*. The pressure gradiente for theseequations are calculated using a linearinterpolation for pressure.

3. Calculate 0* using the state equation.

Substituting P.correction equationsequation, using the massgiven by Eq.(11). onepressure correction. as

Similar expressions are found for uw' vn and vs'The correction equation for p is found [rom the stateequation as

159

Page 4: 1O'hBRAZILlAN f'~&,., - Departamento de Engenharia Mecânicaservidor.demec.ufpr.br/CFD/artigos_congressos/1989_Marchi_Maliska... · x congresso brasileiro de engenharia mecÂnica,

Fig. 7 - Convergence behaviour for the co-located (1)

and staggered (2) arrangements. 44x36 grid.

0.24 "0.10 0.27 0.44 0.60 0.77 0.94

-01TIME""STEP 10

generalemploy

easy to

0310 1.75- I/)- 1.45

::::> o....u1.14f- a:::OLL 0.84u.. w

w0.54

:r:: Hf-

The authors op1n10n is that extension ofmethodologies for three dimensional flows mustco-located variables in order to obtain an

implement computer code.

located variables, is located in a narrow range if

compared with the staggered approach. Also, the crueffort to obtain the solution to a same leveI of

tolerance, is twice as much for the co-locatedvariables. Increasing the grid resolution (44x36) the

performance of both methodologies are comparable. Itcan be seen that the range of optimum time step isalmost the same with equal CPU effort to obtain thesolution to a specified leveI of tolerance.

Fig. 5 - Constant pressure lines. Co-locatedand staggered arrangements. 44x36 grid.

02 REFERENCES

10

Fig. 6 - Convergence hehaviour for the co-located (1)and staggered (2) arrangements. 22x18 grid.

f-a:::OLL 1.03u.. ww:r::

0.67H f-

[,CHOW,W.L. "A Numerical Study of theFlow Past an Isolated Airfoil with

Edge Separation". AlAA-Paper-82-0998

RHIE,C.M.Turbulent

Trailing(1982) •

[5] VAN DOORMAAL,J.P., RAITHBY,G.D. [, MCDO~ALD,B.H.

"The Segregated Approach to Predicting ViscousCompressible Flows". ASME paper no. 86-GT-196,presented at the Intl. Gas Turbine Conference and

Exhbit, Dusseldorf, West Germany, June 8-12, 1986.

[4] PERIC,M., KESSLER,R. [,SCHEUERER,G. "Comparison ofFinite-Volume Numerical Methods with Staggered andColocated Grids". Submitted to Computers andFluids, 1987. 56 p.

[2] RHIE, C.M. "A Numerical Study of the Flow Past anIsolated Airfoil with Separation". PhD Thesis,

University of Illinois, Urbana-Champaign (1981).

[1] HSU, C. "A Curvilinear-Coordinate Method for Mo­mentum, Heat and Mass Transfer in Domains of Irre­

gular Geometry". PhD Thesis, University of Minne­sota (1981).

[3]

2.13

1. 40

1. 76

0.300.05 0.19 0.33 0.47 0.61 0.75

OTIME STEP 10

I/)

::::>

o....u

CONCLUSlONS

The preliminary results obtained with the

solution of two dimensional fluid flow problems usingco-located variables demonstrated that the pressure­velocity (incompressible flows) or the pressure­velocity/density (compressible flows) coupling can beadequately taken into account without the compulsoryuse of staggered grids. The great advantages are thesimplicity it promotes in the code implementation, aswell as a significant reduction in storagerequirements, since the convection and diffusion

fluxes need to be calculated for only one controlvolume. If non uniform grids are used, as is the casewhen general discretizations are employed, the use ofco-located variables reduces significantly the

geometric information storaging. Results usingnonorthogonal coordinates with co-located variables

for supersonic flows, over arbitrary bodies are nowbeing obtained and will be published in a future work.

[6] MALlSKA, C.R. [,SILVA, A.F.C. "Desenvolvimento de

Códigos Computacionais para Solução de Problemasde Escoamentos de Alta Velocidade; Parte I". Rela­

tório técnico ao IAE/CTA. Florianópolis, SI~MEC/EMC/UFSC, jun. 1987. 39 p.

[7] MAJUMDAR, S. "Role of Underrelaxation in Momentum

Interpolation for Calculation of Flow with

Nonstaggered Grids". Numerical Heat Transfer,voI. 13, 1988. p. 125-32.

[8] VAN DOORMAAL,J.P. [,RAlTHBY,G.D. "Enhancements of

the Simple Method for Predicting IncompressibleFluid Flows". Numerical Heat Transfer, v.7, 1984.p. 147-63.

160