|
[Sponsors] |
February 9, 2008, 14:18 |
Hello,
looking at the icoFo
|
#1 |
Senior Member
Kārlis Repsons
Join Date: Mar 2009
Location: Latvia
Posts: 111
Rep Power: 17 |
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, 00:48 |
Hello Karlis,
If you ta
|
#2 |
Senior Member
Michael Jaworski
Join Date: Mar 2009
Location: Champaign, IL, USA
Posts: 126
Rep Power: 17 |
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, 05:12 |
Hello,
My question was wron
|
#3 |
Senior Member
Kārlis Repsons
Join Date: Mar 2009
Location: Latvia
Posts: 111
Rep Power: 17 |
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, 06:34 |
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 |
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 |
|
|
|
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 |