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

Implementation of new convection/interpolation scheme

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 16, 2013, 11:06
Default Implementation of new convection/interpolation scheme
  #1
Senior Member
 
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 168
Rep Power: 15
Anne Lincke is on a distinguished road
Dear Foamers,

I would like to implement a convection scheme which is of higher order than upwind.
I assume that the schemes are in

HTML Code:
src/finiteVolume/interpolation/surfaceInterpolation
I am afraid that I can not clearly see where exactly the upwind of first order is implemented.
It should be something like
HTML Code:
Uf= max(phi,0) U(P) + max(-phi,0)U(N)
Is there a general scheme in OpenFOAM which computes the value phi at the face via a formula that also includes a deferred correction, like the "k-scheme" which computes phi from

HTML Code:
phi = U(upwind) + 1/4 [(1+k) (U(downwind) - U(upwind)) + (1-k) (U(upwind) - U (upwindupwind))]
and by setting k to different values the scheme is selected?

It would be great if someone could show me where in the code the implementation can be found.
I use OF-2.1.1.

Thank you very much in advance!

Anne
Anne Lincke is offline   Reply With Quote

Old   May 19, 2016, 13:57
Default implementation of backwardD2dt2Scheme
  #2
Member
 
Join Date: Oct 2015
Location: montreal- canada
Posts: 46
Rep Power: 10
Mohammad Jam is on a distinguished road
Hi

i am working with of24x and i got backwardD2dt2Scheme from foam extended 3.2 and now i want to compile it to the openfoam library , the address of backwardD2dt2Scheme is in (/home/OpenFOAM/OpenFOAM-2.4.x/src/finiteVolume/finiteVolume/d2dt2Schemes)
and the backwardD2dt2Scheme to be compiled are attached

could you please help me ?

best regards
mohammad jam


backwardD2dt2Scheme.C

backwardD2dt2Scheme.H

backwardD2dt2Schemes.C
Mohammad Jam is offline   Reply With Quote

Old   May 19, 2016, 14:06
Default
  #3
Member
 
Join Date: Oct 2015
Location: montreal- canada
Posts: 46
Rep Power: 10
Mohammad Jam is on a distinguished road
Hi Anne

did u solve the problem? if so, how did u compile new scheme?
Mohammad Jam is offline   Reply With Quote

Old   April 13, 2017, 17:38
Default
  #4
Member
 
rezaeimahdi's Avatar
 
mahdi
Join Date: Nov 2015
Location: Paris, France
Posts: 32
Rep Power: 10
rezaeimahdi is on a distinguished road
Quote:
Originally Posted by Mohammad Jam View Post
Hi Anne

did u solve the problem? if so, how did u compile new scheme?
Hi Mohammad,

Hope you are doing fine.

If I understood correctly, (and also if you are still looking for solution ) :

For compile new code in OpenFOAM, at first you must add your files in the folder that you want. ( for example in your case : ~/OpenFOAM/OpenFOAM-2.4.x/src/finiteVolume/finiteVolume/d2dt2Schemes/backwardD2dt2Scheme )

Then do not forget to add the directory towards the (.C file) inside the Make folder in ~/OpenFOAM/OpenFOAM-2.4.x/src/finiteVolume.
(you shoud find d2dt2Schemes = finiteVolume/d2dt2Schemes in Files and just add $(d2dt2Schemes)/backwardD2dt2Scheme/backwardD2dt2Schemes.C)

Now everything seems ready . Just come back to OpenFOAM-2.4.x and run ./Allwmake

hoping this reply will be helpful.

Have fun
rezaeimahdi is offline   Reply With Quote

Old   April 15, 2017, 18:59
Default
  #5
Member
 
Join Date: Oct 2015
Location: montreal- canada
Posts: 46
Rep Power: 10
Mohammad Jam is on a distinguished road
Hi dear mahdi,
Thank you for your kind response.
Best regards,
Mohammad
Mohammad Jam is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Implementation of QUICK scheme Romuald Skoda Main CFD Forum 11 November 6, 2017 22:20
Implementation of 2nd order upwind scheme jaason OpenFOAM Running, Solving & CFD 4 February 6, 2015 18:40
MUSCL scheme implementation ANPDEstudent Main CFD Forum 1 June 27, 2010 00:57
FEM Implementation of pressure-correction scheme Markus Main CFD Forum 4 January 6, 2007 02:53
Scheme / TUI implementation Andy R FLUENT 2 December 13, 2006 06:16


All times are GMT -4. The time now is 04:18.