|
[Sponsors] |
Implementation of new convection/interpolation scheme |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 16, 2013, 11:06 |
Implementation of new convection/interpolation scheme
|
#1 |
Senior Member
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 168
Rep Power: 16 |
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 It should be something like HTML Code:
Uf= max(phi,0) U(P) + max(-phi,0)U(N) HTML Code:
phi = U(upwind) + 1/4 [(1+k) (U(downwind) - U(upwind)) + (1-k) (U(upwind) - U (upwindupwind))] 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 |
|
May 19, 2016, 13:57 |
implementation of backwardD2dt2Scheme
|
#2 |
Member
Join Date: Oct 2015
Location: montreal- canada
Posts: 46
Rep Power: 11 |
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 |
|
May 19, 2016, 14:06 |
|
#3 |
Member
Join Date: Oct 2015
Location: montreal- canada
Posts: 46
Rep Power: 11 |
Hi Anne
did u solve the problem? if so, how did u compile new scheme? |
|
April 13, 2017, 17:38 |
|
#4 | |
Member
mahdi
Join Date: Nov 2015
Location: Paris, France
Posts: 32
Rep Power: 11 |
Quote:
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 |
||
April 15, 2017, 18:59 |
|
#5 |
Member
Join Date: Oct 2015
Location: montreal- canada
Posts: 46
Rep Power: 11 |
Hi dear mahdi,
Thank you for your kind response. Best regards, Mohammad |
|
|
|
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 |