CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

Problem about fvMatrix in OpenFOAM, over volume or not

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

LinkBack Thread Tools Display Modes
Old   September 26, 2012, 19:45
Default Problem about fvMatrix in OpenFOAM, over volume or not
Haomin Yuan
Join Date: Jan 2012
Location: Madison, Wisconsin, USA
Posts: 56
Rep Power: 5
yhaomin2007 is on a distinguished road
Dear All foamers:

I have a question about the equations in OpenFOAM. When we set those equations, like UEqn and PEqn, is every term over by cell volume or not? Like in UEqn, the fvm::div term is value integral the cell volume, but the grad(p) term is divided by cell volume. That really confused me,

Can anybody give me a clear explanation about this issue? Or where can I find the answer about this??

thank you all in advance.
yhaomin2007 is offline   Reply With Quote

Old   July 6, 2015, 21:11
Arrow Problem about fvMatrix in OpenFOAM, over volume or not
New Member
Join Date: Nov 2013
Posts: 1
Rep Power: 0
Nazmul Khan is on a distinguished road
for the source term in UEqn should follow similar expression of other ddt or div terms , for example fvm::ddt(rho, U) terms already includes mesh.V() as (see in src finiteVolume code for schemes)

fvm.source() = rDeltaT*mesh().V()*
- coefft00*vf.oldTime().oldTime().internalField()

for updating any source terms following fvm.source() function just update the function that does not need to divide by V. See the example in OpenFoam >src lagrangian> intermediate> KinematicCloudI.H for SU(U) source term.
Nazmul Khan is offline   Reply With Quote


Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] volume mesh leaking out of the surface, in a multi zone problem premchandpendota ANSYS Meshing & Geometry 6 July 31, 2012 01:36
Negative cell volume problem in-cylinder ziani.lotfi FLUENT 0 April 11, 2012 07:54
OpenFOAM 1.7.1 installation problem on Fedora 14 armonica OpenFOAM Installation 16 March 31, 2011 13:16
Problem of negative volume.......Please help nims FLUENT 3 November 2, 2010 03:07
Zero Volume Fraction in Free Surface Problem marega CFX 1 September 10, 2009 06:31

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