CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Proper Referencing of Custom Libraries in Options File (http://www.cfd-online.com/Forums/openfoam-programming-development/115451-proper-referencing-custom-libraries-options-file.html)

c_dowd March 31, 2013 11:10

Proper Referencing of Custom Libraries in Options File
 
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?

ngj March 31, 2013 18:31

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

c_dowd March 31, 2013 19:37

Thanks a lot, that got it sorted.


All times are GMT -4. The time now is 07:23.