CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Post-Processing

Confirmation needed about calculation of divergence

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

LinkBack Thread Tools Display Modes
Old   June 10, 2010, 18:55
Default Confirmation needed about calculation of divergence
Join Date: Jun 2009
Location: Montreal
Posts: 65
Rep Power: 10
Pascal_doran is on a distinguished road
Hi all,

I created an post processing utility to calculate the divergence of U. I started with the 'vorticity' utility and just changed curl(U) for div(U). Then I compile it without problem.

But when I run the utility I got :

keyword div(U) is undefined in dictionary "/home/ag74290/OpenFOAM/ag74290-1.6.x/run/test/system/fvSchemes::divSchemes"
So I add the fellowing line div(U) Gauss linear to:

    default         none;
    div(phi,U)      Gauss linear;
    div(U)           Gauss linear;
in the /home/ag74290/OpenFOAM/ag74290-1.6.x/run/test/system/fvSchemes file and everything seems to work.

My question: Why do I need to add this line in the fvScheme file?

Thank you,

Pascal_doran is offline   Reply With Quote

Old   June 11, 2010, 02:41
Super Moderator
niklas's Avatar
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 22
niklas will become famous soon enoughniklas will become famous soon enough
Originally Posted by Pascal_doran View Post
Hi all,
My question: Why do I need to add this line in the fvScheme file?
The div-operator needs a discretization-scheme (all operators do) and this is not
decided until you actually use it.

So when you call on any operator, it first looks for which scheme to use and then calculate the result.

niklas 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
Divergence problem for species transport model MY FLUENT 3 January 11, 2014 05:46
MRF and Heat transfer calculation Susan YU FLUENT 0 June 2, 2010 08:46
Warning 097- AB Siemens 6 November 15, 2004 05:41
Divergence in conjugate heat transfer calculation Julie Polyakh Siemens 1 May 18, 2004 13:09
DIVERGENCE with MRF calculation in FLUENT FLUENT USER Main CFD Forum 3 June 28, 1999 15:44

All times are GMT -4. The time now is 07:43.