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

implementation of schemes in openfoam

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

Like Tree2Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 15, 2011, 00:22
Default implementation of schemes in openfoam
  #1
Member
 
venkat
Join Date: Mar 2011
Location: Bangalore,india
Posts: 47
Rep Power: 15
venkataramana is on a distinguished road
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
venkataramana is offline   Reply With Quote

Old   June 15, 2011, 02:16
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
Bernhard is on a distinguished road
Upwind schemes are implemented a long, long time ago, see here how to use them: http://www.openfoam.com/docs/user/fvSchemes.php
Bernhard is offline   Reply With Quote

Old   June 15, 2011, 02:33
Default
  #3
Member
 
venkat
Join Date: Mar 2011
Location: Bangalore,india
Posts: 47
Rep Power: 15
venkataramana is on a distinguished road
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,
venkataramana is offline   Reply With Quote

Old   June 15, 2011, 03:21
Default
  #4
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21
Bernhard is on a distinguished road
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.
Bernhard is offline   Reply With Quote

Old   June 15, 2011, 05:38
Default
  #5
Member
 
venkat
Join Date: Mar 2011
Location: Bangalore,india
Posts: 47
Rep Power: 15
venkataramana is on a distinguished road
thank u very much, i will try it
venkataramana is offline   Reply With Quote

Old   June 15, 2011, 09:20
Default
  #6
Senior Member
 
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 196
Rep Power: 17
vatavuk is on a distinguished road
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
vatavuk is offline   Reply With Quote

Old   June 15, 2011, 09:37
Default
  #7
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
See vanLeer.H
akidess is offline   Reply With Quote

Old   June 16, 2011, 09:18
Default
  #8
Senior Member
 
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 196
Rep Power: 17
vatavuk is on a distinguished road
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 11:18. Reason: Correct small errors
vatavuk is offline   Reply With Quote

Old   June 21, 2011, 02:37
Default
  #9
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
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.
akidess is offline   Reply With Quote

Old   June 21, 2011, 05:01
Default hi,
  #10
Member
 
venkat
Join Date: Mar 2011
Location: Bangalore,india
Posts: 47
Rep Power: 15
venkataramana is on a distinguished road
Quote:
Originally Posted by Bernhard View Post
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.
where should i call in controlDict file..
venkataramana is offline   Reply With Quote

Old   June 21, 2011, 06:01
Default
  #11
Senior Member
 
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 196
Rep Power: 17
vatavuk is on a distinguished road
Hi Anton,
Thanks for the help.
Paulo
vatavuk is offline   Reply With Quote

Old   June 21, 2011, 06:25
Default hi vatavuk,
  #12
Member
 
venkat
Join Date: Mar 2011
Location: Bangalore,india
Posts: 47
Rep Power: 15
venkataramana is on a distinguished road
can u write a procedure, to edit any scheme with steps in openFoam. i need to edit Gauss linear scheme.

thank u,
venkataramana is offline   Reply With Quote

Old   June 22, 2011, 15:11
Default
  #13
Senior Member
 
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 196
Rep Power: 17
vatavuk is on a distinguished road
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
vatavuk is offline   Reply With Quote

Old   June 22, 2011, 15:12
Default
  #14
Senior Member
 
Paulo Vatavuk
Join Date: Mar 2009
Location: Campinas, Brasil
Posts: 196
Rep Power: 17
vatavuk is on a distinguished road
Sorry I dupplicated the above post and I don't know how to remove it.

Last edited by vatavuk; June 22, 2011 at 15:35.
vatavuk is offline   Reply With Quote

Old   November 10, 2011, 03:16
Default schemes
  #15
Member
 
nsreddy
Join Date: Sep 2010
Posts: 40
Rep Power: 15
nsreddysrsit is on a distinguished road
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.
nsreddysrsit is offline   Reply With Quote

Old   January 9, 2014, 04:40
Default
  #16
Senior Member
 
Anne Gerdes
Join Date: Aug 2010
Location: Hamburg
Posts: 168
Rep Power: 15
Anne Lincke is on a distinguished road
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
Anne Lincke is offline   Reply With Quote

Old   February 21, 2015, 20:34
Default
  #17
Member
 
Paolo Capobianchi
Join Date: Sep 2014
Posts: 35
Rep Power: 11
pablitobass is on a distinguished road
Quote:
Originally Posted by Anne Lincke View Post
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?

Anne
Hi Anne,

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
pablitobass is offline   Reply With Quote

Old   February 21, 2015, 23:40
Default
  #18
Senior Member
 
T. Chourushi
Join Date: Jul 2009
Posts: 321
Blog Entries: 1
Rep Power: 17
Tushar@cfd is on a distinguished road
Quote:
Originally Posted by pablitobass View Post
Hi Anne,

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
Dear Paolo,

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!
Tushar@cfd is offline   Reply With Quote

Old   February 22, 2015, 00:18
Default
  #19
New Member
 
Andrew Smith
Join Date: Jan 2015
Location: North Dakota
Posts: 24
Rep Power: 11
Andrew_Sm is on a distinguished road
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

Andrew_Sm is offline   Reply With Quote

Old   February 22, 2015, 07:23
Default
  #20
Member
 
Paolo Capobianchi
Join Date: Sep 2014
Posts: 35
Rep Power: 11
pablitobass is on a distinguished road
@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
pablitobass 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
High Schemes implementation in a UDF Dinocrack Fluent UDF and Scheme Programming 0 December 31, 2010 12: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 15:39
OpenFOAM 1.5.x package - CentOS 5.3 x86_64 linnemann OpenFOAM Installation 7 July 30, 2009 03:14
OpenFOAM Install problem masb OpenFOAM 3 May 25, 2009 11:32
Critical errors during OpenFoam installation in OpenSuse 11.0 amscosta OpenFOAM 5 May 1, 2009 14:06


All times are GMT -4. The time now is 22:09.