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

Programmig own limiter function, modifying r function in limitedLinear.H

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 12, 2010, 02:17
Default 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: 9
idrama is on a distinguished road
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
idrama is offline   Reply With Quote

Old   October 13, 2010, 16:06
Default wmake libso
  #2
Senior Member
 
chegdan's Avatar
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 546
Rep Power: 18
chegdan will become famous soon enough
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
chegdan is offline   Reply With Quote

Old   October 14, 2010, 04:20
Default
  #3
Senior Member
 
Claus Meister
Join Date: Aug 2009
Location: Wiesbaden, Germany
Posts: 241
Rep Power: 9
idrama is on a distinguished road
Thank you very much! I got it.
idrama is offline   Reply With Quote

Reply

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
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 09:31
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11
latest OpenFOAM-1.6.x from git failed to compile phsieh2005 OpenFOAM Bugs 25 February 9, 2010 05:37
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 00:35
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00


All times are GMT -4. The time now is 10:26.