# Equation discretisation in icoFoam

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

 February 9, 2008, 15:18 Hello, looking at the icoFo #1 Senior Member   Kārlis Repsons Join Date: Mar 2009 Location: Latvia Posts: 111 Rep Power: 9 Hello, looking at the icoFoam solver code, I don't understand how U*(div(U)) is represented by fvm::div(phi,U). Could you please explain? k.

 February 10, 2008, 01:48 Hello Karlis, If you ta #2 Senior Member   Michael Jaworski Join Date: Mar 2009 Location: Champaign, IL, USA Posts: 126 Rep Power: 9 Hello Karlis, If you take a look in the Programmers guide, page P-38 discusses the way OpenFOAM discretises the convection term. In addition, Table 2-2 a couple pages above that tells you that when you write out the convective derivative this way: div(phi, U), that the first field (phi) has to be a surface scalar field. So, during the initiation of the PISO loops, I believe, this phi surface scalar field is created which represents the divergence of the velocity field. I hope that helps. Regards, Mike J. P.S. The programmers guide can be downloaded from the "documentation" section of the OpenCFD website.

 February 10, 2008, 06:12 Hello, My question was wron #3 Senior Member   Kārlis Repsons Join Date: Mar 2009 Location: Latvia Posts: 111 Rep Power: 9 Hello, My question was wrong - div(Ui*U), i = 1,2,3 is represented by fvm::div(phi,U). I would think, flux phi is used later to avoid volume integration, so I still don't understand this one.. Looking at ProgrammersGuide p. 38, equation 2.16 - why is Sf&(ro*U)_f just rewrited as "F"? I think is should be interpolated and integrated somehow. Also from which time step U values are taken? I guess old one, else, how fvMatrix could be solved..

 February 10, 2008, 07:34 Why don't you just take a look #4 Senior Member   Hrvoje Jasak Join Date: Mar 2009 Location: London, England Posts: 1,783 Rep Power: 22 Why don't you just take a look at my Thesis - it goes through it step by step. Hrv __________________ Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk

 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 manuel OpenFOAM Running, Solving & CFD 8 September 22, 2010 04:10 sa FLUENT 0 March 8, 2007 08:19 Sigit Main CFD Forum 3 October 26, 2000 11:49 mehdi Main CFD Forum 1 May 31, 2000 15:29 peter grafenberger Main CFD Forum 7 October 29, 1999 06:32

All times are GMT -4. The time now is 02:17.