CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Main CFD Forum

OpenFOAM fvSchemes: laplacianScheme,

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 18, 2010, 04:39
Default OpenFOAM fvSchemes: laplacianScheme,
  #1
New Member
 
Thomek
Join Date: Oct 2010
Posts: 3
Rep Power: 6
thomek is on a distinguished road
Hi community,

I am quite new to OpenFOAM and have a few questions concerning the implementation fo fvSchemes like the gaussLaplacianScheme for example.

First how it works in my opinion (please correct me if I am wrong):
- within the controlDict the user specifies what type of fvScheme should be used like Gauss.

- the static function laplacianScheme::New within the abstract base class is invoked in order to create the right laplacian scheme and creates the gaussLaplacianScheme.

- next the function fvmLaplacian is called to do real work. And here I have a couple of questions:
-> 3 files exists: gaussLaplacianScheme.H, gaussLaplacianScheme.C and gaussLaplacianSchemes.C
-> Within the files gaussLaplacianScheme.H, gaussLaplacianScheme.C I see the definition and implementation of the fvmLaplacian method. But this function does not get called! Instead within the file gaussLaplacianSchemes.C macros are used to define (redefine? what happens here???) the same fvmLaplacian method which gets called!!! What is the meaning of the file gaussLaplacianSchemes.C? Why are there macros for redefining/reimplementing the fvmLaplacian function? Why is this necessary? Why the implementation not within the gaussLaplacianScheme.C fvmLaplacian function? What is the clue of this implementation detail and why?

Any help and hints on the implementation of gaussLaplacianScheme and why these "strange" macros within gaussLaplacianSchemes.C are necessary are appreciated!!!!

Thanks in advance,
Thomek
thomek is offline   Reply With Quote

Old   October 18, 2010, 05:17
Default Wrong forum... sorry!
  #2
New Member
 
Thomek
Join Date: Oct 2010
Posts: 3
Rep Power: 6
thomek is on a distinguished road
Sorry wrong forum. Tried to delete this post but did not find where to do so...
For the right post, see:

Implementation issues of fvSchemes / laplacianScheme, in particular gaussLaplacianSch

Sorry!!!!
thomek
thomek is offline   Reply With Quote

Reply

Tags
code, fvschemes, gausslaplacianscheme, implementation, laplacianscheme

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
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 06:25
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07
OpenFOAM Debian packaging current status problems and TODOs oseen OpenFOAM Installation 9 August 26, 2007 13:50


All times are GMT -4. The time now is 02:14.