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

rUA inside/outside PISO loop

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 28, 2009, 13:28
Default rUA inside/outside PISO loop
  #1
Senior Member
 
John Deas
Join Date: Mar 2009
Posts: 160
Rep Power: 17
johndeas is on a distinguished road
Hi,

I have a question regarding the position of the computation of rUA in les codes. In do not understand if it is important to have it take place inside or outside the PISO loop, and to what extent this affect the solver.

In channeloodles:

Code:
volScalarField rUA = 1.0/UEqn.A();

for (int corr=0; corr<nCorr; corr++)
{
In oodles:

Code:
for (int corr=0; corr<nCorr; corr++)
{
    volScalarField rUA = 1.0/UEqn.A();
My hypothesis is that, since UEqn uses phi from last timestep to create its coefficients, rUA is never modified inside the PISO loop (the new phi computed here is never used to modify the UEqn), and can be calculated outside as well.

1. Is this correct ?
2. If yes, why isn't rUA calculated once and for all outside the PISO loop, in oodles too ?
johndeas is offline   Reply With Quote

Old   September 24, 2009, 12:55
Default
  #2
Senior Member
 
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 17
fs82 is on a distinguished road
Did you now an answer up to now? I am also wondering why rUa is one time included in the PISO loop and one time not. I stored UEqn.A() in a tmp variable outside the PISO loop and compared UEqn.A() with my tmp variable every PISO loop step. There was no change. The difference was zero. So I think its equal to write it inside or outside of PISO loop :-D

kind regards,
Fabian
fs82 is offline   Reply With Quote

Old   October 1, 2009, 17:20
Default
  #3
Member
 
Ola Widlund
Join Date: Mar 2009
Location: Sweden
Posts: 87
Rep Power: 17
olwi is on a distinguished road
Hi,

You might find this note useful: http://www.tfd.chalmers.se/~hani/kur...7/rhiechow.pdf

That site is well worth looking at in general -- there's a lot of useful slides and student papers on Op-nFOAM.

/Ola
olwi is offline   Reply With Quote

Old   October 2, 2009, 02:53
Default
  #4
Senior Member
 
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 17
fs82 is on a distinguished road
Hello,

yes I know this "paper" but in my opinion it is more usefull to read the book of ferziger and peric "Computational Methods for Fluid Dynamics". They describe the PISO algorithm much more in detail and its fundamentals. But the main problem is to find the different equations in the source code. The paper is nice but I missed a little bit the link between theory and source code :-D

Fabian
fs82 is offline   Reply With Quote

Old   October 21, 2009, 07:28
Default
  #5
Senior Member
 
John Deas
Join Date: Mar 2009
Posts: 160
Rep Power: 17
johndeas is on a distinguished road
fs82: I just moved on other problems , still have no answers on that one...
johndeas is offline   Reply With Quote

Old   October 22, 2009, 07:13
Default
  #6
Senior Member
 
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 17
fs82 is on a distinguished road
As I mentioned above, there is no change in the UEqn.A() Operator during the PISO loop. I think is correct, because you only evaluate the correction terms in a PISO approach. So in my opinion its equal to write it inside or outside of the loop.
fs82 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
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 02:09
PISO loop 21kalee OpenFOAM Running, Solving & CFD 2 January 15, 2008 05:31
NACA0012 geometry/design software needed Franny Main CFD Forum 13 July 7, 2007 15:57
Dimensions of laplacian in PISO loop kumar2 OpenFOAM Running, Solving & CFD 2 July 3, 2006 14:34
Mistake in PISO loop for interFoam solver kumar2 OpenFOAM Running, Solving & CFD 3 June 30, 2006 18:26


All times are GMT -4. The time now is 14:47.