wmake files and options details
Good day to you all,
I'm a noobish OF user, and I wish to know where i can find detailed information regarding the meaning of the entries in the following files inside a Make folder:
LIB = $(FOAM_USER_LIBBIN)/libmyIncompressibleRASModels
I know that the first line states the program to be compiled. The second line is amazing because it has (FOAM_USER_LIBBIN) and i have seen ((FOAM_APPBIN).
EXE_INC = \
or another options file:
EXE_INC = \
EXE_LIBS = \
Why is there a diference between the two files? One with LIB_LIBS and the other with EXE_LIBS. What is the meaning of this?
I don't expect all of this questions to be answered, I just wanted to have some good documentation on this besides the OpenFoam link:
I want to be able to understand what am I doing when I want to compile something to be run as an user application of user lib ( if there is such thing as a user lib .. i don't know). I want to know if i can include a lib or app made by me as an (FOAM_APPBIN ou FOAM_LIBBIN) or something of the sort.
From the page you reference, this is all explained quite well; the first paragraph in 3.2.1, and all of sections 126.96.36.199 and 188.8.131.52 in particular will answer your questions. Briefly, you are compiling a library, which is why the location of the executable is different (compiled applications and libraries are each stored in specific places). The formatting of the options file is to specify where the header and object files are for compiling and linking.
Concerning this second line:
If it is something with APPBIN it is an APPlication, with LIBBIN it is a LIBrary.
In case it says something like FOAM_APPBIN that means it is in the basic directory for OpenFOAM applications. With FOAM_USER_APPBIN it is in the directory reserved for applications made by the user. The same principle is true for libraries.
It is advisable to use the "USER"-locations, as this way you will not damage any part of the standard installation of OpenFOAM.
In case you use the same solver name for the selfmade one as for the standard one, I read that the selfmade one will be chosen by OpenFOAM. In any case it is advisable to change the name of the own solver or library, so you can distinguish between new and old implementations...
To add to the previous answers, here's a list of environment variables that can be used:
Thank you all soo much !
|All times are GMT -4. The time now is 15:09.|