CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

NS Equations and convergence problems

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 6, 2010, 00:07
Default NS Equations and convergence problems
  #1
Member
 
Ramesh K
Join Date: Dec 2009
Location: Bangalore
Posts: 73
Rep Power: 16
RameshK is on a distinguished road
Send a message via Yahoo to RameshK
Hi all

I am trying to solve Compressible Naiver-Stokes equations for steady flow through a pipe. I am using Finite volume method for solving these equations, since am solving flow through a pipe I have generated a grid in cylindrical coordinates (meaning my grid consists of radial lines and circles in a plane and stacked along the length of the pipe.) .
I am using Fourth order Range kutta Method for time integration and the fluxes are calculated using central difference method. Am using collocated variable arrangement and use surface integrals for finding the convective and viscous fluxes. This calculation is done using Gauss theorem which converts the volume integral to surface integral.

I am trying to solve a simple problem of flow through a pipe with l/d =10 and d = 19 mm. Boundary conditions specified using ghost cells , a layer of cells are added to the physical cells and at inlet I specify the total pressure and total temperature and extrapolate v3 from inside the physical cells also v1=v2=0.0 at exit I specify static pressure and extrapolate temperature and velocity. On wall I am using noslip and no penetrating condition also the pressure gradient on the wall is made zero and is done by copying the pressure from the neighbouring cell to the face corresponding to the wall also the normal temperature is made zero as I am assuming adiabatic wall and the temperature is also copied from the cell center to the wall face.

the fluxes on the face are calculated by taking the Qavg = (Qi + Qi+1)/2, and the gradients of velocity for calculating viscous stresses are first calculated at cell centers and then are averaged on to the face.


My actual problem is am not getting convergence, My code diverges after say 1500 time steps with time step being calculated by CFL =0.2

Since I am calculating fluxes as said above in order to nullify even-odd decoupling I am adding a fourth order dissipation which is calculated using FVM i.e by calculating 2nd , 3rd and 4th order gradients, and for fourth order gradients am using (1/4!) * average_face_area**4 * max_eigen_value on the face. This terms is multiplied to the fourth order derivative as the coefficient. since its a fourth order gradient its value is +ve.

can any body help me by suggesting whether am following correct path. am struggling for getting convergence.

any help in any manner is welcome and that would be of great..

thanks in advance
RameshK is offline   Reply With Quote

Old   November 6, 2010, 14:06
Default
  #2
Member
 
ganesh
Join Date: Mar 2009
Posts: 40
Rep Power: 17
ganesh is on a distinguished road
Dear Ramesh,

From your description of the convective and viscous flux computations, it seems that you are using a simple central differencing for the inviscid part. The simple averaging of the states in fact is essentially a zero artificial dissipation method, so you are relying entirely on the physical dissipation to stabilise your code. For a reasonable Re, this might not be sufficient enough. I presume this is the cause of your divergence. Also, though not of very immediate concern, the gradient computation by averaging the centroidal gradients to the face isn't a nice option either, they can lead to odd--even decoupling which is undesirable. Please take a look at the relevant portions in the book by J. Blazek, which I believe is an excellent book from viewpoint of writing CFD codes.

Hope this helps.

Regards,

Ganesh
ganesh is offline   Reply With Quote

Old   November 8, 2010, 00:28
Default
  #3
Senior Member
 
Hamid Zoka
Join Date: Nov 2009
Posts: 282
Rep Power: 18
Hamidzoka is on a distinguished road
Dear Rameshk;
I think your problem is mainly due to grid generation. this grid generation technique causes problems in regions near to pipe centerline. in other words "r" approaches zero at the vicinity of centrline and therefore some fluxes may become infinitively large and this leads in divergence.
try other techniques to control the mesh shape in pipe centerline regions, such as:

- Unstuctured mesh
- Multi block structured mesh (it is called butterfly mesh for pipeline meshing)

regards
Hamidzoka is offline   Reply With Quote

Old   November 8, 2010, 11:33
Default Thanks Hamidzoka and Ganesh
  #4
Member
 
Ramesh K
Join Date: Dec 2009
Location: Bangalore
Posts: 73
Rep Power: 16
RameshK is on a distinguished road
Send a message via Yahoo to RameshK
Quote:
Originally Posted by Hamidzoka View Post
Dear Rameshk;
I think your problem is mainly due to grid generation. this grid generation technique causes problems in regions near to pipe centerline. in other words "r" approaches zero at the vicinity of centrline and therefore some fluxes may become infinitively large and this leads in divergence.
try other techniques to control the mesh shape in pipe centerline regions, such as:

- Unstuctured mesh
- Multi block structured mesh (it is called butterfly mesh for pipeline meshing)

regards

though I aim using a cylindrical mesh My solver is in cartesian coordinates, so I have triangular prisms as volumes at the axis and quads in rest of the places.

@ Ganesh

I am adding artificial dissipation also in my code but since I have an dissipation term which is of second order I am not adding the second order dissipation term, If this second order term is added to the scheme the order of scheme gets reduced.

my doubt is even if I have physical mechanism of dissipation present in the equations do we need to add second order artificial dissipation terms.
RameshK is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
convergence of DG for Euler equations Shyam Main CFD Forum 2 February 7, 2009 00:48
Convergence of turbulence transport equations KK CFX 0 January 31, 2008 20:46
convergence of Euler Equations with WENO Shyam Main CFD Forum 0 June 1, 2007 00:47
convergence parameters amv Phoenics 4 September 21, 2005 06:49
Problems in convergence Simon Siemens 3 February 14, 2005 05:36


All times are GMT -4. The time now is 05:13.