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

Change of Poisson solver in a predictor-corrector scheme gives inaccurate results

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By FMDenaro

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 7, 2016, 16:16
Default Change of Poisson solver in a predictor-corrector scheme gives inaccurate results
  #1
New Member
 
oyrabl
Join Date: Dec 2016
Posts: 1
Rep Power: 0
oyrabl is on a distinguished road
Hi.

I'm implementing a new higher order method for the Poisson equation, to do the pressure correction in a predictor-corrector scheme.
The rest of the code is discretized with FDM on a staggered grid.

The code is tested for the flow around a square cylinder, in the laminar regime. With the old, second order solver, I'm able to reproduce benchmarks from the literature. However, the new Poisson solver is not able to reproduce the same results. The drag coefficient obtained with the new method is too high, and the wake is not properly reproduced. The results are not improving when the grid is refined.

The only thing that is changed is the routine for the solving the Poisson equation. I'm using Neumann BC at all boundaries (dp/dn=0), except for one corner where the pressure is fixed.

I've tested that the volume integral of the RHS is zero.

The developer of the originally code is on vacation, and I've not access to the entire source code. My code is implemented with matlab engine in a fortran code.

Any ideas what the problem could be? I've attached the streamlines and contour plots of the pressure for the two methods(for a very coarse grid). The Reynolds number is 40.

Thanks!
Attached Images
File Type: jpg pressure_new_method.jpg (36.3 KB, 25 views)
File Type: jpg pressure_old_method.jpg (37.6 KB, 22 views)
File Type: jpg stream_old_method.jpg (56.1 KB, 22 views)
File Type: jpg stream_new_method.jpg (80.5 KB, 20 views)
oyrabl is offline   Reply With Quote

Old   December 7, 2016, 16:48
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
If you are using a fractional-step method, the Poisson equation must enforce the divergence-free constraint. It means you have to discretize the equation

Div Grad p = q ,

not the equation

Lap p = q .

The Grad p term that you discretize in the pressure equation must then be used in the correction of the momentum.

Said that, if your solver fulfill the integral of the RHS to be zero, your solver must converge also without fixing te value, thus I suggest to check that. Furthermore, check if the divergence-free constraint is satisfied as the same way as for the second order code.

Are you sure that the figures are taken at the same steady state threshold?
psakievich likes this.
FMDenaro is offline   Reply With Quote

Old   December 20, 2016, 18:15
Default
  #3
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 16
Santiago is on a distinguished road
Why you enforce a dirichlet BC in for the poisson solver? Remember that the 'pressure' expressed in the laplacian equation is a lagrange multiplier that 'optimizes' the velocity field towards a divergence-free space. No physical BCs should be imposed to it, except those coming from a normal projection of the momentum equation. Try to use homogeneous neumann everywhere

Sent from my GT-I8190L using CFD Online Forum mobile app
Santiago 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
Problem Exporting results from CFX Solver Manager anairene_c CFX 2 January 22, 2016 13:32
Star cd es-ice solver error ernarasimman STAR-CD 2 September 12, 2014 01:01
Mass Transfer: save results for the expressions from every solver step? AliLemprex CFX 4 August 18, 2014 09:55
thobois class engineTopoChangerMesh error Peter_600 OpenFOAM 4 August 2, 2014 10:52
Parallel Poisson solver nikosb Main CFD Forum 0 February 27, 2012 15:24


All times are GMT -4. The time now is 03:26.