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

Numerical schemes: under the hood

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 1 Post By elvis
  • 1 Post By samiam1000
  • 2 Post By elvis
  • 1 Post By Tushar@cfd

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 9, 2012, 03:54
Default Numerical schemes: under the hood
  #1
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 18
samiam1000 is on a distinguished road
Dear foamers,

I am interested in finding out how the different numerical schemes available in OpenFOAM work.

I would like to understand some details. Is there any documentation available and/or which are the files in the src where they are expliceted?

Thanks a lot,
Samuele
samiam1000 is offline   Reply With Quote

Old   March 9, 2012, 04:29
Default
  #2
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
Hi,

you can browse the doxygen http://www.openfoam.org/docs/cpp/
http://foam.sourceforge.net/docs/cpp...c3619d681.html might be what you looking for
Tobi likes this.
elvis is offline   Reply With Quote

Old   March 9, 2012, 04:31
Default
  #3
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 18
samiam1000 is on a distinguished road
Thanks Elvis,

that's could be a good starting point. Also, do you know if a more `theoretical' documentation exists?

Thanks,

Samuele
samiam1000 is offline   Reply With Quote

Old   March 9, 2012, 05:59
Default
  #4
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 18
samiam1000 is on a distinguished road
And how can I understand which is the best numerical scheme for each solver?

Thanks again,
Samuele
samiam1000 is offline   Reply With Quote

Old   March 9, 2012, 07:00
Default
  #5
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
Bernhard is on a distinguished road
Any textbook on CFD will give information on numerical scheme and how they are defined and can be related to stability and stuff like that.

Which schemes you should use depends on the case more than the solver.
Bernhard is offline   Reply With Quote

Old   March 9, 2012, 08:50
Default
  #6
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 18
samiam1000 is on a distinguished road
Dear Bernhard,

thanks for answering.

Actually, I agree when you say that I should read a book about Fluiddynamycs.

The point is that I would like to find a book which uses the names used by OF. For example, reading here, if I have to solve a laplacian I can write:

laplacian(nu,U) Gauss <interpolationScheme> <snGradScheme>

What I would like to und is what is it meant by <interpolationScheme> and by <snGradScheme>.

Could you give me a brief explanation? Or a link?

Thanks a lot.

Samuele
nanavati likes this.
samiam1000 is offline   Reply With Quote

Old   March 9, 2012, 10:22
Default
  #7
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
Hi,

if you take a look at the PHD thesis collection from Dr. Jasak http://powerlab.fsb.hr/ped/kturbo/OpenFOAM/docs/ you find OF based/releated CFD-reseach, but the syntax is not source code like you could find s.th. like that in the OF wiki but those Documentations are hiden somewhere in the wiki. Holger Marschall had a docu project in mind, but he was stopped by somebody´s lawyers (who owns a copyright.)

you know Hakan´s Stuff allready?
http://www.tfd.chalmers.se/~hani/kurser/OS_CFD_2011/
..2007

or the Gothenburg OpenFOAM workshop Penn State OF Workshop training Summerschool stuff etc.
Tushar@cfd and nanavati like this.
elvis is offline   Reply With Quote

Old   March 12, 2012, 03:22
Default
  #8
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 18
samiam1000 is on a distinguished road
Hi Elvis,

thanks for help.

Actually, I am finding out something very interesting.

I have a questio: do you know why the `linear' interpolation scheme is a second order scheme?

Being linear, shouldn't it be first order?
samiam1000 is offline   Reply With Quote

Old   August 25, 2014, 09:57
Default
  #9
Member
 
Pratik Nanavati
Join Date: May 2014
Location: Munich, Germany
Posts: 40
Rep Power: 11
nanavati is on a distinguished road
Quote:
Originally Posted by samiam1000 View Post
Hi Elvis,

thanks for help.

Actually, I am finding out something very interesting.

I have a questio: do you know why the `linear' interpolation scheme is a second order scheme?

Being linear, shouldn't it be first order?
Hello Samuele,

this post is almost 5 years old. but i am new to openfoam. i also have the same question.
i.e. complete description of fvSchemes in OpenFoam terms (well documented).

(I read the Elvis's suggestions as well in the thread)

have u found any ? if yes, can you please paste the link or share any material over the email ?
nanavati is offline   Reply With Quote

Old   August 26, 2014, 05:06
Default
  #10
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 620
Blog Entries: 6
Rep Power: 24
elvis will become famous soon enough
Hi,
there is a very slooowly improving initiative
http://www.cocoons-project.org/ The goal of the CoCoons Project is to provide peer and technical reviewed, high-quality documentation of C++ libraries for Computational Continuum Numerics on Arbitrary Unstructured Meshes in the Open Source Spirit (OSS).

Asking your Question at the http://www.extend-project.de/ =>OpenFOAM Community (OF-extend people) might lead to some information.

http://www.sourceflux.de/book/
elvis is offline   Reply With Quote

Old   August 26, 2014, 06:56
Default
  #11
Member
 
Pratik Nanavati
Join Date: May 2014
Location: Munich, Germany
Posts: 40
Rep Power: 11
nanavati is on a distinguished road
thanks for the suggestion elvis
nanavati is offline   Reply With Quote

Old   December 9, 2014, 05:51
Default
  #12
Member
 
Tobias Adam
Join Date: Oct 2013
Location: Siegen
Posts: 55
Rep Power: 12
Tobias Adam is on a distinguished road
Hey everyone

I try to find an explantation to the fv-schemes.
I shortly searched on the pages elvis suggested, but there is so much information on that many pages that I just don´t know where to start to find the information about the schemes.

I know how to use the main schemes. But I like to understand all schemes from this list.

https://docs.google.com/document/d/1...it?usp=sharing


Best regards Tobi
Tobias Adam is offline   Reply With Quote

Old   December 9, 2014, 06:00
Default Edit of above
  #13
Member
 
Tobias Adam
Join Date: Oct 2013
Location: Siegen
Posts: 55
Rep Power: 12
Tobias Adam is on a distinguished road
Hmm,
I cannot edit the post!?
Maybe cfd-online does not work very well with google chrome?
EDIT:
Right link to the list of schemes I´m interested in:

https://docs.google.com/document/d/1...it?usp=sharing

best regards Tobi
Tobias Adam is offline   Reply With Quote

Old   January 30, 2017, 05:56
Default
  #14
New Member
 
muhammet çevik
Join Date: Oct 2016
Location: turkey
Posts: 5
Rep Power: 9
muhmt.cvk is on a distinguished road
Hİ tobias
I am laso trying to find an explantation to the fv-schemes. Did you find anything useful.

Best
muhmt.cvk is offline   Reply With Quote

Old   February 1, 2017, 02:28
Default
  #15
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Dear Muhmt,

please read the notes from Elvis. There you will find all the necessary information. If you want to have all informations, use Doxygen and analyze the C++ code. As it is already written above:

  • Schemes are related to numerical mathematics and not OpenFOAM, so you will find everything in books or other documentation
  • Based on the fact that I am replying here... the linear scheme is a second order one
  • Documentation about schemes can be found in Ferziger - Perić
  • After you know the meaning of the schemes (discretization) you probably understand each scheme
  • Google is your friend (http://bfy.tw/9ot0)
  • And the schemes you use should be related to the problem, e.g. you would never use an Euler time discretization for solving the chemistry
Good luck
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   August 18, 2017, 09:39
Default
  #16
Senior Member
 
T. Chourushi
Join Date: Jul 2009
Posts: 321
Blog Entries: 1
Rep Power: 17
Tushar@cfd is on a distinguished road
Quote:
Hİ tobias
I am laso trying to find an explantation to the fv-schemes. Did you find anything useful.

Best
Refer the following article on implementation of numerical schemes in OpenFOAM:

http://www.sciencedirect.com/science...95034917300077
elvis likes this.
Tushar@cfd 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
Numerical schemes for free surface flows (VOF) botp OpenFOAM 2 March 11, 2011 15:27
numerical schemes Valerio FLUENT 2 July 28, 2008 04:02
Kinetic schemes and numerical dissipation Praveen Main CFD Forum 0 September 6, 2002 07:09
Behaviour of Numerical Schemes Ravi. B. R Main CFD Forum 3 September 22, 2001 10:18
Standard for checking and testing numerical schemes? X. Ye Main CFD Forum 7 August 31, 1999 17:05


All times are GMT -4. The time now is 10:27.