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

PISO algorithm instability in Python

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By j_02

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 15, 2016, 03:42
Default PISO algorithm instability in Python
  #1
New Member
 
Robyn Povey
Join Date: Mar 2016
Posts: 1
Rep Power: 0
Nduna is on a distinguished road
Hi there

I am trying to code the PISO algorithm in Python (I can't use a CFD package due to the editing I will do in the next step). My algorithm starts off well, begins to converge (for about 4 iterations) and then just diverges really badly. I've picked up on some possible errors for this instability, but I have no idea if they are even the errors, let alone how to solve them.

I am using finite volume method and solving the velocity and pressure fields at the cell centers.

1. I used the Upwind Scheme while discretising my equations. Could this result in instability? Should I rather use the Central Difference Method?

2. My velocity solution is very dependent on the size of my step size. Could this be right or have I made a bigger error somewhere else?

3. My velocity update uses the pressure correction and the coefficient of the velocity at the point only (not all the neighbouring points). Could this result in instability?

It solves perfectly for any inlet conditions (my boundary conditions are a velocity inlet and a pressure outlet with two symmetry planes) provided that the flow field is uniform. However, as soon as a solid is inserted in the middle of the domain it does not converge (or if there is any disturbance in the flow field).

Additionally, when the amount of elements is increased (to above a 25 by 25 square system) the U-velocity field is no longer symmetric. Could this be a symptom of a larger problem?

Any advise/suggestions would be greatly appreciated
Nduna is offline   Reply With Quote

Old   March 15, 2016, 09:26
Default
  #2
New Member
 
Join Date: Mar 2014
Posts: 14
Rep Power: 12
j_02 is on a distinguished road
The only point I can address is this one:

Quote:
Originally Posted by Nduna View Post
Hi there
1. I used the Upwind Scheme while discretising my equations. Could this result in instability? Should I rather use the Central Difference Method?
The upwind scheme is more stable than the central difference scheme due to additional numerical diffusion. Using UDS instead of CDS should help preserve stability.

Good luck, and hopefully someone else with more knowledge will chime in.
Nduna likes this.
j_02 is offline   Reply With Quote

Reply

Tags
instable, piso, python script, upwind finite volume


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
reactindFoam (v 2.1.1) doesn't want PISO algorithm ? camille131 OpenFOAM Running, Solving & CFD 6 May 29, 2013 10:40
Peric Piso Algorithm Yahoo Main CFD Forum 1 September 14, 2012 03:06
Non-linearity Pressure Equation -- PISO algorithm gdeneyer OpenFOAM Programming & Development 1 August 23, 2012 06:19
Is it possible to use PISO algorithm for steady case Gearb0x OpenFOAM Running, Solving & CFD 9 July 15, 2010 01:49
PISO Algorithm Benedikt Flurl Main CFD Forum 1 March 15, 2005 09:51


All times are GMT -4. The time now is 18:31.