|
[Sponsors] |
Change of Poisson solver in a predictor-corrector scheme gives inaccurate results |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 7, 2016, 16:16 |
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 |
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! |
|
December 7, 2016, 16:48 |
|
#2 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,879
Rep Power: 73 |
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? |
|
December 20, 2016, 18:15 |
|
#3 |
Senior Member
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 16 |
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 |
|
|
|
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 |