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

Implementation of new convection/interpolation scheme

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 16, 2013, 10:06
Default Implementation of new convection/interpolation scheme
  #1
Senior Member
 
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 168
Rep Power: 8
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, 12:57
Default implementation of backwardD2dt2Scheme
  #2
Member
 
Join Date: Oct 2015
Location: montreal- canada
Posts: 36
Rep Power: 3
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, 13:06
Default
  #3
Member
 
Join Date: Oct 2015
Location: montreal- canada
Posts: 36
Rep Power: 3
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

Reply

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
Implementation of 2nd order upwind scheme jaason OpenFOAM Running, Solving & CFD 4 February 6, 2015 18:40
Implementation of QUICK scheme Romuald Skoda Main CFD Forum 10 August 3, 2010 12:23
MUSCL scheme implementation ANPDEstudent Main CFD Forum 1 June 26, 2010 23: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 12:36.