# Understanding icoFoam.C

 Register Blogs Members List Search Today's Posts Mark Forums Read

 July 8, 2010, 18:34 Understanding icoFoam.C #1 Member   Pascal Join Date: Jun 2009 Location: Montreal Posts: 65 Rep Power: 8 Hi all, After looking at this web page : http://openfoamwiki.net/index.php/IcoFoam I still had one question : I assume that: Code: ``` fvVectorMatrix UEqn ( fvm::ddt(U) + fvm::div(phi, U) - fvm::laplacian(nu, U) );``` is equivalent to : Code: ` fvVectorMatrix UEqn = fvm::ddt(U) + fvm::div(phi, U) - fvm::laplacian(nu, U)` Am I right ? If yes, what does the following code mean? : Code: ```fvScalarMatrix pEqn ( fvm::laplacian(rUA, p) == fvc::div(phi) );``` I know it define the pressure equation 'pEqn'. How Is pEqn obtained? Is it possible to write a similar equation as the one obtained for UEqn (UEqn = ...)? Thank you, Pascal

 July 9, 2010, 03:05 how derive the pressure equation #2 Member   Jianye Xia Join Date: Mar 2009 Posts: 32 Rep Power: 8 i have also the same question about the pressure equation. Can anybody explain how this equation is derived?

 July 9, 2010, 11:24 #3 Senior Member   David Gaden Join Date: Apr 2009 Location: Winnipeg, Canada Posts: 397 Rep Power: 12 Look at Hrvoje Jasak's PhD thesis. The link is at the top of the wiki page you posted: http://openfoamwiki.net/index.php/IcoFoam He uses the same annotation there as OpenFOAM. The pressure equation is derived in section 3.8.1 starting on page 145.

 July 9, 2010, 11:47 #4 Member   Pascal Join Date: Jun 2009 Location: Montreal Posts: 65 Rep Power: 8 Thank you! So it iterate over 'p' and when the equality is reached p become pEqn as describe in equation 3.141 in Jasak's thesis. Am I right? Pascal

 Tags icofoam

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post MatP OpenFOAM Running, Solving & CFD 1 May 15, 2010 13:21 siw CFX 4 October 4, 2009 10:23 fs82 OpenFOAM 1 September 23, 2009 10:36 jaron Fluent UDF and Scheme Programming 0 April 15, 2009 03:29 Gustavo Main CFD Forum 0 February 14, 2007 11:12

All times are GMT -4. The time now is 23:53.