|
[Sponsors] |
How to add and compile a new limiter scheme in openFOAM!? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 4, 2014, 13:50 |
How to add and compile a new limiter scheme in openFOAM!?
|
#1 |
New Member
Vahid E.
Join Date: Jul 2014
Posts: 6
Rep Power: 12 |
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. |
|
August 5, 2014, 11:16 |
|
#3 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
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! |
|
August 6, 2014, 12:55 |
|
#4 |
New Member
Vahid E.
Join Date: Jul 2014
Posts: 6
Rep Power: 12 |
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 |
|
August 9, 2014, 22:50 |
|
#6 |
Senior Member
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 24 |
__________________
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 |
|
August 12, 2014, 09:50 |
|
#7 | |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22 |
Quote:
I think it answers most of your questions. |
||
November 2, 2021, 03:36 |
|
#8 | |
New Member
Yifan Sun
Join Date: Dec 2020
Posts: 1
Rep Power: 0 |
Quote:
|
||
Tags |
compile, compile from source, scheme, schemes, wmake |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Add temperature to icoFoam in OpenFOAM 2.1.1 | magnounibo | OpenFOAM Programming & Development | 12 | February 17, 2020 06:28 |
How to add the extra term to k-epsilon model in OpenFOAM | COC | OpenFOAM Programming & Development | 0 | July 9, 2014 09:34 |
OpenFOAM 2.2.2 source pack installation on Xubuntu 13.10 | zordiack | OpenFOAM Installation | 1 | October 26, 2013 14:08 |
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 14:50 |