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

The meaning of the divergence term

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 22, 2014, 10:58
Default The meaning of the divergence term
  #1
Senior Member
 
Robert Sawko
Join Date: Mar 2009
Posts: 117
Rep Power: 22
AlmostSurelyRob will become famous soon enough
This is a difficult question for me to ask provided I've been using OpenFOAM for some time, but I really wonder what is the real meaning of the divergence term as given by fvm::div(phi, U). Is it

a) u \cdot grad(u)
b) \nabla \cdot uu^T

The reason why I am asking is that I want to have an fvm based Burgers equation for 1D with the flux f(u) = 0.5 u^2 and I don't know whether I should or shouldn't include the 0.5 term.

Code:
        while (simple.correctNonOrthogonal())
        {
            solve
            (
                fvm::ddt(U)
              + 0.5 * fvm::div(phi, U) //*0.5?
              - fvm::laplacian(DT, U) 
            );
        }
        phi = linearInterpolate(U) & mesh.Sf();
AlmostSurelyRob 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
[ANSYS Meshing] Help with element size sandri_92 ANSYS Meshing & Geometry 14 November 14, 2018 07:54
Divergence detected in pressure correction term problem calculation lm_laxman FLUENT 0 September 23, 2014 00:28
Divergence problem Smaras FLUENT 13 February 21, 2013 05:03
Is it possible to use divergence in the source term of an scalar transport equation? jannnesss CFX 0 January 8, 2010 19:53
Problem in divergence term titio OpenFOAM Running, Solving & CFD 1 April 7, 2009 09:47


All times are GMT -4. The time now is 10:45.