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

Proper Referencing of Custom Libraries in Options File

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

Like Tree1Likes
  • 1 Post By ngj

Reply
 
LinkBack Thread Tools Display Modes
Old   March 31, 2013, 11:10
Default Proper Referencing of Custom Libraries in Options File
  #1
New Member
 
Cameron
Join Date: Jul 2012
Posts: 22
Rep Power: 4
c_dowd is on a distinguished road
Hi all,
I'm trying to build an incompressible form of the firefoam solver, to do this i've edited the combustion model I want to use and compiled it as a new library. I'm trying to compile my edited version of the firefoam solver and I'm not sure if i'm referencing the library properly. The way I'm doing it at the moment is:

Code:
EXE_LIBS = \
    -L$(FOAM_USER_LIBBIN)/customcombustionModels \
    -lincompressibleTransportModels \
    -lincompressibleTurbulenceModel \
    -lincompressibleRASModels \
    -lincompressibleLESModels \
Is that how it should be or is there some other way?
c_dowd is offline   Reply With Quote

Old   March 31, 2013, 18:31
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Rotterdam, The Netherlands
Posts: 1,527
Rep Power: 23
ngj will become famous soon enoughngj will become famous soon enough
Hi Cameron,

No, I think you will be running into troubles in this way. I have successfully been using the following format previously with the original libraries first and then your custom libraries:

Code:
LIBS = \
    -lincompressibleTransportModels \
    -lincompressibleTurbulenceModel \
    -lincompressibleRASModels \
    -lincompressibleLESModels \
    -L$(FOAM_USER_LIBBIN) \
    -lcustomcombustionModels
Note, that once you have defined the line "-L$(FOAM_USER_LIBBIN)" you can add any number of custom libraries following this line.

Kind regards,

Niels
nimasam likes this.
ngj is online now   Reply With Quote

Old   March 31, 2013, 19:37
Default
  #3
New Member
 
Cameron
Join Date: Jul 2012
Posts: 22
Rep Power: 4
c_dowd is on a distinguished road
Thanks a lot, that got it sorted.
c_dowd is offline   Reply With Quote

Reply

Tags
compiling, firefoam, incompressible, libraries

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
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 10:57
error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Native Meshers: blockMesh 2 March 14, 2012 10:56
mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 12 December 12, 2011 04:16
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 15:16


All times are GMT -4. The time now is 13:21.