|
[Sponsors] |
July 28, 2009, 14:28 |
rUA inside/outside PISO loop
|
#1 |
Senior Member
John Deas
Join Date: Mar 2009
Posts: 160
Rep Power: 17 |
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++) { Code:
for (int corr=0; corr<nCorr; corr++) { volScalarField rUA = 1.0/UEqn.A(); 1. Is this correct ? 2. If yes, why isn't rUA calculated once and for all outside the PISO loop, in oodles too ? |
|
September 24, 2009, 13:55 |
|
#2 |
Senior Member
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18 |
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 |
|
October 1, 2009, 18:20 |
|
#3 |
Member
Ola Widlund
Join Date: Mar 2009
Location: Sweden
Posts: 87
Rep Power: 17 |
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 |
|
October 2, 2009, 03:53 |
|
#4 |
Senior Member
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18 |
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 |
|
October 21, 2009, 08:28 |
|
#5 |
Senior Member
John Deas
Join Date: Mar 2009
Posts: 160
Rep Power: 17 |
fs82: I just moved on other problems , still have no answers on that one...
|
|
October 22, 2009, 08:13 |
|
#6 |
Senior Member
Dr. Fabian Schlegel
Join Date: Apr 2009
Location: Dresden, Germany
Posts: 222
Rep Power: 18 |
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.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Gmsh] Problem with Gmsh | nishant_hull | OpenFOAM Meshing & Mesh Conversion | 23 | August 5, 2015 03:09 |
PISO loop | 21kalee | OpenFOAM Running, Solving & CFD | 2 | January 15, 2008 06:31 |
NACA0012 geometry/design software needed | Franny | Main CFD Forum | 13 | July 7, 2007 16:57 |
Dimensions of laplacian in PISO loop | kumar2 | OpenFOAM Running, Solving & CFD | 2 | July 3, 2006 15:34 |
Mistake in PISO loop for interFoam solver | kumar2 | OpenFOAM Running, Solving & CFD | 3 | June 30, 2006 19:26 |