CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

I cannot find the route from fvmdivphi gamma to Gamma201 scheme

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

LinkBack Thread Tools Display Modes
Old   June 17, 2005, 11:12
Default I want to make it clear how on
Join Date: Mar 2009
Posts: 51
Rep Power: 8
luckyluke is on a distinguished road
I want to make it clear how one certain scheme (e.g. Gamma201) is called by "div(phi, gamma)".

I got the route as following:
<1>fvm::div(phi, gamma)
)().fvmDiv(flux, vf)
<3>.return cstrIter()(mesh, faceFlux, schemeData)
I cannot understand the '()' operator in step <2> and step <3>. And the member function "fvmDiv(~~)" of convectionScheme class is a virtual one. I am confused.

Jasak,weller, or anyone else, please give me a detailed explanation for my stupid question?

By the way, what should I do if I want use a new scheme in my solver?
luckyluke is offline   Reply With Quote

Old   June 17, 2005, 15:58
Default 1. looks up the scheme to be u
Super Moderator
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
1. looks up the scheme to be used from your fvSchemes dictionary
2. instantiates a scheme with this name

Then fvmDiv uses this scheme to do the discretisation.

Have a look at e.g. linearUpwind.H and .C

Just create a copy of those files and rename them and replace all 'linearUpwind' with your scheme's name. Compile & link in the .C file and you will have your new discretisation scheme.
mattijs 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
Fundamental problem with Gamma scheme dominik_christ OpenFOAM Running, Solving & CFD 3 August 29, 2008 08:24
Display regions central linear and upwind for gamma scheme braennstroem OpenFOAM Post-Processing 3 May 28, 2008 03:49
How to find order of the scheme madhunitturi OpenFOAM Running, Solving & CFD 3 April 12, 2007 05:53
?to implement gamma differencing scheme Gonski Main CFD Forum 15 January 28, 2007 18:00
Where to find Scheme manual Mark Richardson FLUENT 1 August 8, 2001 14:36

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