|
[Sponsors] |
I cannot find the route from fvmdivphi gamma to Gamma201 scheme |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 17, 2005, 12:12 |
I want to make it clear how on
|
#1 |
Member
Luckyluke
Join Date: Mar 2009
Posts: 51
Rep Power: 17 |
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? |
|
June 17, 2005, 16:58 |
1. looks up the scheme to be u
|
#2 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
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. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fundamental problem with Gamma scheme | dominik_christ | OpenFOAM Running, Solving & CFD | 3 | August 29, 2008 09:24 |
Display regions central linear and upwind for gamma scheme | braennstroem | OpenFOAM Post-Processing | 3 | May 28, 2008 04:49 |
How to find order of the scheme | madhunitturi | OpenFOAM Running, Solving & CFD | 3 | April 12, 2007 06: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 15:36 |