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

How to add and compile a new limiter scheme in openFOAM!?

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

Like Tree1Likes
  • 1 Post By Bernhard

Reply
 
LinkBack Thread Tools Display Modes
Old   August 4, 2014, 12:50
Default How to add and compile a new limiter scheme in openFOAM!?
  #1
New Member
 
Vahid E.
Join Date: Jul 2014
Posts: 6
Rep Power: 5
yourvahid is on a distinguished road
I wanted to add a new limiter scheme such as "STACS" in openFOAM. I've already written the codes, however, I dont know how shall i compile and add it to openFOAM.
please note that I'm new in openFOAM environment and the interface is unfamiliar for me.
thanks a million.
yourvahid is offline   Reply With Quote

Old   August 5, 2014, 05:57
Default
  #2
Senior Member
 
T Chourushi
Join Date: Jul 2009
Posts: 321
Blog Entries: 1
Rep Power: 11
Tushar@cfd is on a distinguished road
I don't think any literature for the mentioned task is available.

If you are successful with your findings? you can share it with others.

-
Best Luck!
Tushar@cfd is offline   Reply With Quote

Old   August 5, 2014, 10:16
Default
  #3
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 15
Bernhard is on a distinguished road
Compile your code as a library, see e.g. $FOAM_SRC/finiteVolume

Use the files in Make as an example. Add the source .C files you need to compile in "files". Compile into a new library by "LIB = $(FOAM_USER_LIBBIN)/libmyLimiter" and see what dependencies you need for "options" (see, as an example $FOAM_SRC/finiteVolume/Make/options).

Compile using wmake (or wmake libso for older versions).

Add your library to the libs( ); list in your controlDict file. The TypeName you defined in the header file for your limiter should be available to select now. Good luck!
yourvahid likes this.
Bernhard is offline   Reply With Quote

Old   August 6, 2014, 11:55
Default
  #4
New Member
 
Vahid E.
Join Date: Jul 2014
Posts: 6
Rep Power: 5
yourvahid is on a distinguished road
dear Bernhard,
I truly appreciate your guidance, the thing is Im new in openFOAM and i dont know how to compile my codes using "wmake". actually i donno how to compile new written codes to add to the original open library. can u please give me an heads up, a link or a quick note would suffice.

thanks a million
yourvahid is offline   Reply With Quote

Old   August 7, 2014, 01:19
Default
  #5
Senior Member
 
T Chourushi
Join Date: Jul 2009
Posts: 321
Blog Entries: 1
Rep Power: 11
Tushar@cfd is on a distinguished road
Dear Bernhard,
I am also interested for the same.

Last edited by Tushar@cfd; August 7, 2014 at 05:52.
Tushar@cfd is offline   Reply With Quote

Old   August 9, 2014, 21:50
Default
  #6
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 436
Rep Power: 17
santiagomarquezd will become famous soon enough
Hi, this

https://drive.google.com/file/d/1Y0c...it?usp=sharing

might be useful.

Regards.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Research Scientist
Research Center for Computational Methods (CIMEC) - CONICET/UNL
Tel: 54-342-4511594 Int. 7032
Colectora Ruta Nac. 168 / Paraje El Pozo
(3000) Santa Fe - Argentina.
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Old   August 12, 2014, 08:50
Default
  #7
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 15
Bernhard is on a distinguished road
Quote:
Originally Posted by yourvahid View Post
dear Bernhard,
I truly appreciate your guidance, the thing is Im new in openFOAM and i dont know how to compile my codes using "wmake". actually i donno how to compile new written codes to add to the original open library. can u please give me an heads up, a link or a quick note would suffice.

thanks a million
Did you study section 3.2 of the User Guide? http://www.openfoam.org/docs/user/co...plications.php

I think it answers most of your questions.
Bernhard is offline   Reply With Quote

Reply

Tags
compile, compile from source, scheme, schemes, wmake

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
How to add the extra term to k-epsilon model in OpenFOAM COC OpenFOAM Programming & Development 0 July 9, 2014 08:34
OpenFOAM 2.2.2 source pack installation on Xubuntu 13.10 zordiack OpenFOAM Installation 1 October 26, 2013 13:08
Add temperature to icoFoam in OpenFOAM 2.1.1 magnounibo OpenFOAM Programming & Development 11 April 14, 2013 13:20
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 15:43
OpenFOAM Debian packaging current status problems and TODOs oseen OpenFOAM Installation 9 August 26, 2007 13:50


All times are GMT -4. The time now is 17:56.