|
[Sponsors] |
November 23, 2008, 21:19 |
Hello
I find the following
|
#1 |
Member
srinath
Join Date: Mar 2009
Location: Champaign, USA
Posts: 91
Rep Power: 17 |
Hello
I find the following quite puzzling. In icoFoam.C, i find the foll. lines solve(UEqn == -fvc::grad(p)); // --- PISO loop for (int corr=0; corr<nCorr; corr++) { volScalarField rUA = 1.0/UEqn.A(); U = rUA*UEqn.H(); ...... } Solving UEqn presumably changes the value of U. But what is the point if couple of lines later, we store rUA*Ueqn.H() in U If solving UEqn is a predictor for a U value, what is the point if we never use the value and overwrite it? I would appreciate it if someone could clarify this as i find it quite puzzling. Regards Srinath p.s. commenting out the solve UEqn line, seems to give visually acceptable results for the cavity case, but diff says the results are different. So clearly it is not a bug, but is doing something quite subtle |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
IcoFoam | aap | OpenFOAM Running, Solving & CFD | 15 | May 28, 2012 08:30 |
Density in icoFoam Densidad en icoFoam | manuel | OpenFOAM Running, Solving & CFD | 8 | September 22, 2010 04:10 |
About phi in icoFoam | kar | OpenFOAM Running, Solving & CFD | 3 | February 20, 2008 05:20 |
Possible bug in icoFoam | msrinath80 | OpenFOAM Bugs | 6 | November 19, 2007 17:35 |
IcoFoam on AIX 53 | ds2taieb | OpenFOAM Installation | 1 | March 24, 2006 03:22 |