|
[Sponsors] |
June 15, 2011, 01:22 |
implementation of schemes in openfoam
|
#1 |
Member
venkat
Join Date: Mar 2011
Location: Bangalore,india
Posts: 47
Rep Power: 15 |
dear all,
i have one question, what is the procedure to make customised schemes in openFoam i mean other than existing schemes in openfoam. i need to implement the schemes like upwind. thanks in advance with regards venkataramana |
|
June 15, 2011, 03:16 |
|
#2 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
Upwind schemes are implemented a long, long time ago, see here how to use them: http://www.openfoam.com/docs/user/fvSchemes.php
|
|
June 15, 2011, 03:33 |
|
#3 |
Member
venkat
Join Date: Mar 2011
Location: Bangalore,india
Posts: 47
Rep Power: 15 |
what i mean to say the schemes other than upwind, linear which are available in openFoam, How to develop a new scheme and how to run it.
thanks for your reply, |
|
June 15, 2011, 04:21 |
|
#4 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
I would it something like this: Start from an existing scheme that looks like the one you are looking for, copy them in your own folder, adjust to your wishes, compile into a library, and call that using controlDict from your simulation.
|
|
June 15, 2011, 06:38 |
|
#5 |
Member
venkat
Join Date: Mar 2011
Location: Bangalore,india
Posts: 47
Rep Power: 15 |
thank u very much, i will try it
|
|
June 15, 2011, 10:20 |
|
#6 |
Senior Member
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 200
Rep Power: 18 |
Hi Bernard,
I have a doubt similar to Venkataramana's. Which file I have to edit to modify the van Leer scheme? Thanks, Paulo Vatavuk |
|
June 16, 2011, 10:18 |
|
#8 |
Senior Member
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 200
Rep Power: 18 |
Hi Anton,
Thanks for the hint. I’ve been navigating the code documentation for almost one hour, but I can’t find the point were the vanLeerLimiter class is instantiated. I want to understand were the LimitedScheme parameter is defined. I’ve been studying C++ for some time but I’m still thinking in the FORTRAN way. Can you help me? Thanks, Paulo Last edited by vatavuk; June 16, 2011 at 12:18. Reason: Correct small errors |
|
June 21, 2011, 03:37 |
|
#9 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
It's a bit tough to find where it is instantiated because the trail breaks due to the use of macros. If you just want to implement a different limiter, just stick to vanLeer.H (updated link) and edit the limiter function there.
|
|
June 21, 2011, 06:01 |
hi,
|
#10 |
Member
venkat
Join Date: Mar 2011
Location: Bangalore,india
Posts: 47
Rep Power: 15 |
where should i call in controlDict file..
|
|
June 21, 2011, 07:01 |
|
#11 |
Senior Member
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 200
Rep Power: 18 |
Hi Anton,
Thanks for the help. Paulo |
|
June 21, 2011, 07:25 |
hi vatavuk,
|
#12 |
Member
venkat
Join Date: Mar 2011
Location: Bangalore,india
Posts: 47
Rep Power: 15 |
can u write a procedure, to edit any scheme with steps in openFoam. i need to edit Gauss linear scheme.
thank u, |
|
June 22, 2011, 16:11 |
|
#13 |
Senior Member
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 200
Rep Power: 18 |
Hi Venkataramana,
I'm still trying to figure out how to do it. I suspect that creating a new scheme is more or less like creating a new boundary condition or a new turbulence model, because they all are runtime selectable. I found a programming tutorial that may help: http://cfd.iut.ac.ir/files/Tutorial,...20Diego%20.pdf Best wishes, Paulo |
|
June 22, 2011, 16:12 |
|
#14 |
Senior Member
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 200
Rep Power: 18 |
Sorry I dupplicated the above post and I don't know how to remove it.
Last edited by vatavuk; June 22, 2011 at 16:35. |
|
November 10, 2011, 04:16 |
schemes
|
#15 |
Member
nsreddy
Join Date: Sep 2010
Posts: 40
Rep Power: 16 |
Dear all openfoam users,
where exactly the code for the following upwind scheme is available in openfoam, . if i want to edit the linear upwind scheme in to 2 nd order and 3rd order and how to implement it ( I mean procedure) anybody implemented any schemes in open Foam. Thanks in advance. |
|
January 9, 2014, 05:40 |
|
#16 |
Senior Member
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 168
Rep Power: 16 |
Dear foamers,
it has been a while since this post has been made. But I am still facing the same question. Where exactly can be found the implementation of the upwind scheme, or higher order convection schemes (deferred correction, k-scheme) in OpenFOAM? See also this thread that I opened. http://www.cfd-online.com/Forums/ope...on-scheme.html Thank you very much for your answers! Anne |
|
February 21, 2015, 21:34 |
|
#17 | |
Member
Paolo Capobianchi
Join Date: Sep 2014
Posts: 35
Rep Power: 12 |
Quote:
I am facing the same problem. Basically I would like to modify an existing scheme but I could not find where the scheme is defined. By following this path: src/finiteVolume/interpolation/surfaceInterpolation/limitedSchemes I found the "interpolation_scheme".H files, but I am afraid that they are related to the limiter of that "interpolation_scheme". Did you sort out the problem, by any chance? Cheers! Paolo |
||
February 22, 2015, 00:40 |
|
#18 | |
Senior Member
|
Quote:
I don't know it will be of any use to you but I think you should refer the following cfd-online post: http://www.cfd-online.com/Forums/ope...tml#post348575 - Best Luck! |
||
February 22, 2015, 01:18 |
|
#19 |
New Member
Andrew Smith
Join Date: Jan 2015
Location: North Dakota
Posts: 24
Rep Power: 11 |
Greetings to all!
@Tushar & Paolo It is because of NDA (https://en.wikipedia.org/wiki/Non-disclosure_agreement). Detailed information of OpenFOAM comes under NDA Check this out http://www.cfd-online.com/Forums/ope...tml#post531559 |
|
February 22, 2015, 08:23 |
|
#20 |
Member
Paolo Capobianchi
Join Date: Sep 2014
Posts: 35
Rep Power: 12 |
@Tushar
Thank you very much for your reply. I have already had a look on th e post you suggested me but I couldn't find a solution to my problem. @Andrew Thanks to you too. I have also seen the post you suggested about the NDA and I think I am in a different situation. In that post they were talking about a particular case posted by the thread starter. If the case is under NDA, you cannot share information about your results whit other people. In my case I have just asked Anne if she had sorted out her problem and asked where I could find the OpenFOAM file I would like to modify. Cheers to you All! Paolo |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
High Schemes implementation in a UDF | Dinocrack | Fluent UDF and Scheme Programming | 0 | December 31, 2010 13:54 |
Cross-compiling OpenFOAM 1.6 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 7 | January 19, 2010 16:39 |
OpenFOAM 1.5.x package - CentOS 5.3 x86_64 | linnemann | OpenFOAM Installation | 7 | July 30, 2009 04:14 |
OpenFOAM Install problem | masb | OpenFOAM | 3 | May 25, 2009 12:32 |
Critical errors during OpenFoam installation in OpenSuse 11.0 | amscosta | OpenFOAM | 5 | May 1, 2009 15:06 |