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

Equation discretisation in icoFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 9, 2008, 14:18
Default Hello, looking at the icoFo
  #1
kar
Senior Member
 
Kārlis Repsons
Join Date: Mar 2009
Location: Latvia
Posts: 111
Rep Power: 17
kar is on a distinguished road
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.
kar is offline   Reply With Quote

Old   February 10, 2008, 00:48
Default Hello Karlis, If you ta
  #2
Senior Member
 
Michael Jaworski
Join Date: Mar 2009
Location: Champaign, IL, USA
Posts: 126
Rep Power: 17
mike_jaworski is on a distinguished road
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.
mike_jaworski is offline   Reply With Quote

Old   February 10, 2008, 05:12
Default Hello, My question was wron
  #3
kar
Senior Member
 
Kārlis Repsons
Join Date: Mar 2009
Location: Latvia
Posts: 111
Rep Power: 17
kar is on a distinguished road
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..
kar is offline   Reply With Quote

Old   February 10, 2008, 06:34
Default Why don't you just take a look
  #4
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
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
hjasak is offline   Reply With Quote

Reply


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
Density in icoFoam Densidad en icoFoam manuel OpenFOAM Running, Solving & CFD 8 September 22, 2010 04:10
Discretisation sa FLUENT 0 March 8, 2007 07:19
FEM discretisation for eps-equation Sigit Main CFD Forum 3 October 26, 2000 11:49
finite volume Discretisation mehdi Main CFD Forum 1 May 31, 2000 15:29
FV discretisation on tet meshes peter grafenberger Main CFD Forum 7 October 29, 1999 06:32


All times are GMT -4. The time now is 22:49.