CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   How to add and compile a new limiter scheme in openFOAM!? (https://www.cfd-online.com/Forums/openfoam-programming-development/139946-how-add-compile-new-limiter-scheme-openfoam.html)

yourvahid August 4, 2014 12:50

How to add and compile a new limiter scheme in openFOAM!?
 
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.

Tushar@cfd August 5, 2014 05:57

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!

Bernhard August 5, 2014 10:16

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 August 6, 2014 11:55

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

Tushar@cfd August 7, 2014 01:19

Dear Bernhard,
I am also interested for the same.

santiagomarquezd August 9, 2014 21:50

Hi, this

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

might be useful.

Regards.

Bernhard August 12, 2014 08:50

Quote:

Originally Posted by yourvahid (Post 504678)
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.

Even.Sun November 2, 2021 02:36

Quote:

Originally Posted by santiagomarquezd (Post 505196)

Hi, thank U very much for this sharing. I find this paper enlightening and I'm wondering is there any possibility that I can read the full version? Thanks a lot


All times are GMT -4. The time now is 20:11.