CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Runge-Kutta explicit, incompressible N-S,,,Problem in Pressure

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 7, 2014, 05:23
Default Runge-Kutta explicit, incompressible N-S,,,Problem in Pressure
  #1
Senior Member
 
Join Date: Dec 2011
Posts: 121
Rep Power: 14
fshak92 is on a distinguished road
Hi FOAMers,

I'm implementing an explicit 3rd order Runge-Kutta scheme(for temporal discretization) to solve incompressible Navier-Stokes eq.

---------------
These are main steps solved 3 times in each time step (the complete steps can be found in the attachment):
a) Solve momentum eq. explicitly. U' is obtained.
b) Laplacian(p') = div(U') / (alpha+beta)*DeltaT
c) Velocity is corrected using p'
d) Pressure is corrected by : p=p+p'
----------------
Implementing the steps above in OpenFOAM (simple cavity test case, and comparing with icoFoam) provides me correct result for the velocity field, however the pressure solver is not converged (even after 1000iterations), consequently i don't get any reasonable value for pressure.(Two different algebraic solvers also have been tested for pressure).

If i remove step (d), still i get correct results for velocity, but the pressure solver now is converged. Also, i get reasonable result for pressure distribution (different with icoFoam, but same distribution).

This is the line for solving the pressure eq:
Code:
solve( fvm::laplacian(p1) == fvc::div(U)/((alpha+beta)*runTime.deltaT()) );
alpha and beta are some coefficients.

Does anybody know what can be the problem?
I would appreciate any hint.
Attached Images
File Type: jpg RK3-NS.jpg (11.4 KB, 62 views)

Last edited by fshak92; August 7, 2014 at 06:50.
fshak92 is offline   Reply With Quote

Old   August 7, 2014, 12:50
Default
  #2
Senior Member
 
Join Date: Oct 2013
Posts: 397
Rep Power: 19
chriss85 will become famous soon enough
You might want to look into this thread:
http://www.cfd-online.com/Forums/ope...nge-kutta.html
chriss85 is offline   Reply With Quote

Old   August 8, 2014, 05:28
Default
  #3
Senior Member
 
Join Date: Dec 2011
Posts: 121
Rep Power: 14
fshak92 is on a distinguished road
Quote:
Originally Posted by chriss85 View Post
You might want to look into this thread:
http://www.cfd-online.com/Forums/ope...nge-kutta.html
Thank you for the link, however i'm trying to write incompressible solver, which requires solving the Poisson equation for pressure. Unfortunately, only compressible solvers(same as your link) can be found on the net, in which the pressure equation is not solved.

I've already found the problem, which lies on the accumulation of pressure by increasing the time step. If i set the pressure to zero before each time step, the pressure solver is converged, and i get nearly reasonable results. But still i wonder if setting pressure to zero is the correct way!
fshak92 is offline   Reply With Quote

Old   August 8, 2014, 06:30
Default
  #4
Senior Member
 
Join Date: Oct 2013
Posts: 397
Rep Power: 19
chriss85 will become famous soon enough
I have no experience with incompressible solvers unfortunately.
chriss85 is offline   Reply With Quote

Old   August 19, 2015, 17:29
Default
  #5
Senior Member
 
Ehsan Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
syavash is on a distinguished road
Quote:
Originally Posted by fshak92 View Post
Thank you for the link, however i'm trying to write incompressible solver, which requires solving the Poisson equation for pressure. Unfortunately, only compressible solvers(same as your link) can be found on the net, in which the pressure equation is not solved.

I've already found the problem, which lies on the accumulation of pressure by increasing the time step. If i set the pressure to zero before each time step, the pressure solver is converged, and i get nearly reasonable results. But still i wonder if setting pressure to zero is the correct way!
Hi,

Could you finish developing your solver?!
I am working on a LES simulation and I think a runge-kutta solver is preffered compared to an implicit solver like pisoFoam.
Can you share it with me?!

Thanks,
Syavash
syavash 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
Incompressible Flow: Retrieving Pressure from Velocity Field lordvon Main CFD Forum 9 July 6, 2013 12:24
1D Burgers euqation with 4th Runge Kutta dokeun Main CFD Forum 3 August 8, 2011 07:34
Does star cd takes reference pressure? monica Siemens 1 April 19, 2007 12:26
Hydrostatic pressure in 2-phase flow modeling (long) DS & HB Main CFD Forum 0 January 8, 2000 16:00
incompressible flow - prescribing pressure drop - how best to do it? M. Gerritsen Main CFD Forum 4 January 10, 1999 10:53


All times are GMT -4. The time now is 02:40.