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

IcoFoam query

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   November 23, 2008, 21:19
Default Hello I find the following
  #1
Member
 
srinath
Join Date: Mar 2009
Location: Champaign, USA
Posts: 91
Rep Power: 17
srinath is on a distinguished road
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
srinath is offline   Reply With Quote

 


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
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


All times are GMT -4. The time now is 10:37.