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

I cannot find the route from fvmdivphi gamma to Gamma201 scheme

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 17, 2005, 11:12
Default I want to make it clear how on
  #1
Member
 
Luckyluke
Join Date: Mar 2009
Posts: 51
Rep Power: 17
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)
<2>.fv::convectionScheme<type>::New
(
vf.mesh(),
flux,
vf.mesh().divScheme(name)
)().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
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
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

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
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 17: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:36.