CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > 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 Search this Thread Display Modes
Old   March 31, 2013, 12:10
Default Proper Referencing of Custom Libraries in Options File
  #1
Member
 
Cameron
Join Date: Jul 2012
Posts: 33
Rep Power: 13
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, 19:31
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
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 offline   Reply With Quote

Old   March 31, 2013, 20:37
Default
  #3
Member
 
Cameron
Join Date: Jul 2012
Posts: 33
Rep Power: 13
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 Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 11:57
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 10:56
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


All times are GMT -4. The time now is 04:06.