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. |
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! |
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! |
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 |
Dear Bernhard,
I am also interested for the same. |
|
Quote:
I think it answers most of your questions. |
Quote:
|
All times are GMT -4. The time now is 20:11. |