CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   problem related to staggered grids (https://www.cfd-online.com/Forums/main/4009-problem-related-staggered-grids.html)

zhu October 16, 2001 11:11

problem related to staggered grids
 
hi,all,

when staggered grids used in my code to simulate flow field around a wedge(structural grids),i met a problem,for u equ.,the frist u cell with it's south interface touching the wedge,half of this interface is the wall,another half of this interface is in the flow,i have to deal with this interface as wall,but the resiual of the incompressible equ.(continuous equ.for this cell is large,and what more,this residual donot change small as others inner cell.i donot know why,maybe this big residual comes from this treatment,because for v and p equ.no needs to deal with this kind of interface.i was mixed by this problem for a long time,and try again and again,but failed,i hope someone to help me.

thanks in advance

pendy

Capi October 16, 2001 12:27

Re: problem related to staggered grids
 
See harmonic-mean gamma in Patankar, Numerical heat transfer and fluid flow

John C. Chien October 16, 2001 15:15

Re: problem related to staggered grids
 
(1). Twenty years ago, when I was using the code and method, it was very confusing to me about this method. (2). I have since stopped using this approach. (3). With the staggered grid, I think, you have to look at it in some approximate ways first. (that is, create your own tricks, to see how it works. or read more papers or get some helps from Prof. Patankar)

zhu October 16, 2001 21:21

Re: problem related to staggered grids
 
hi,all

in my thread,i have said,that only half of this interface is the wall,another half of this interface is in the flow,NOT half of the cell is solid,i donot use the so called"block-off" method(in fact,i used it with projection method for incompressible flow without p in the momentum equ.but i failed,also because of the large residual of the continuous equ),so the harmonic_mean gamma isnot needed,and professor Patankar didnot show me how to deal with this problem in his book.

i think,this problem is related to the arithmetic-staggered grid,because the models used by u,v,and p equ.arenot the same.when incompressible flow is simulated,the stagged grids method is often used,so,i think this problem should be meet by too many CFD people.hope someone give my hints.


D.M. Lipinski October 17, 2001 08:46

Re: problem related to staggered grids
 
Pendy,

Just split the surface integrals over the south face of this u-cell into a sum of two integrals. One will cover the flow part of the interface. The other will include the wall. Moreover, make sure that your discretization assures that once your solution conserves mass over scalar cells, mass will be conserved over staggered momentum cells.

Mark

Capi October 17, 2001 13:39

Re: problem related to staggered grids
 
hi Zhu,

try gamma_u_s = (gamma_p*gamma_s)/(gamma_p+gamma_s) + (gamma_e*gamma_es)/(gamma_e+gamma_es)

gamma_es is inside the wall and set to a very small negative value.

Baetke, Werner & Wengle, Numerical simulation of trubulent flow over surface-mounted obstacles with sharp edges and corners, J. wing eng. ind. aerodyn.,1990

zhu October 17, 2001 21:10

Re: problem related to staggered grids
 
thanks Capi for your help,but i didnot use the "block-off"method.

pendy October 17, 2001 21:26

Re: problem related to staggered grids
 
thanks mark,

if i do just like what you said"split the surface integrals over the south face of this u-cell into a sum of two integrals. One will cover the flow part of the interface. The other will include the wall". there are some questions for me

1.how to locate the u,v and p in this u_cell with the help of staggered grids,does each half use itsown u,v and p?

2.i use 2nd order upwind scheme,how to calculate the flux on the 2 half parts of this interface?

3.the difference equ. for this cell will be of much diffence compared with other cell,it's willnot be convenient.

maybe i didnot catch what you said

best regards

D.M. Lipinski October 18, 2001 03:10

Re: problem related to staggered grids
 
Pendy,

There is really no problem to split the south face into two surfaces. You still have only a single staggered U-cell. There are no half-cells involved with their U, V, P.

What concerns the convective flux through the open part of the south face, just use the mean value theorem for integrals. Then the convective flux will be equal to the mass flow rate times the value of the function (U in your case) in the middle of the open segment of your south face. The mass flow rate is known (half of the south mass flow rate for the left cell contributing to your U-cell). The value of U on the open segment can be obtained by the interpolation. The convective flux through the open part will modify the source term of your FV equation for the staggered U-cell.

The other half of the south face (the wall) should be implemented in a standard way, i.e. it will modify your matrix of the coefficients and the source term.

regards

Mark

pendy October 19, 2001 00:08

Re: problem related to staggered grids
 
thanks Lipinski,i will try with your hints.

best regards

pendy October 27, 2001 22:30

Re: problem related to staggered grids
 
dear Lipinski,

when i use FDM,I meet this problem again,i know how to deal with this problem in FVM,but i am sorry ,i donot know how to treat this half-control interface in FDM,CAN you give me some advice?

best regards


All times are GMT -4. The time now is 21:14.