|
[Sponsors] |
Programmig own limiter function, modifying r function in limitedLinear.H |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 12, 2010, 02:17 |
Programmig own limiter function, modifying r function in limitedLinear.H
|
#1 |
Senior Member
Claus Meister
Join Date: Aug 2009
Location: Wiesbaden, Germany
Posts: 241
Rep Power: 17 |
Hello Foamers,
I copied limitedLinear directory to somewhere else where I have modified some entries (for test purposes). Now, I want to compiled it and to integrate it into OpenFOAM: How do I have to proceed? Cany anyone advice me, please? Cheers in advance |
|
October 13, 2010, 16:06 |
wmake libso
|
#2 |
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0 |
I would probably try the following:
1. Create a Make directory in your folder containing the code you want to compile 2. create the "files" and "options" files and fill them appropriately for compilation of a shared object library 2.a files should have the name of your C file on the first line and the line LIB=$(FOAM_LIBBIN)/lib<your C file name without .C> 2.b the options file should have EXE_INC= -I<any included files you need here> LIB_LIBS = -l<any other libraries you need here> 3. then outside of your make folder, call wmake libso and it should compile 4. In the controlDict file of the case you want to use your new scheme, you add the line libs("libSharedObject.so") where the words sharedobject is the name from 2.a I hope this helps. Dan |
|
October 14, 2010, 04:20 |
|
#3 |
Senior Member
Claus Meister
Join Date: Aug 2009
Location: Wiesbaden, Germany
Posts: 241
Rep Power: 17 |
Thank you very much! I got it.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compile problem | ivanyao | OpenFOAM Running, Solving & CFD | 1 | October 12, 2012 09:31 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 14:11 |
latest OpenFOAM-1.6.x from git failed to compile | phsieh2005 | OpenFOAM Bugs | 25 | February 9, 2010 04:37 |
Error with Wmake | skabilan | OpenFOAM Installation | 3 | July 28, 2009 00:35 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 14:00 |