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

wmake files and options details

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

Like Tree1Likes
  • 1 Post By abilash

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 23, 2011, 11:13
Default wmake files and options details
  #1
Member
 
Rui Vizinho de Oliveira
Join Date: Sep 2011
Posts: 31
Rep Power: 14
RuiVO is on a distinguished road
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:
files
options

Example files:

mykOmegaSST.C
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).

Example options:

EXE_INC = \
-I$(LIB_SRC)/turbulenceModels \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/turbulenceModels/incompressible/RAS/lnInclude
LIB_LIBS =


or another options file:


EXE_INC = \
-I./combustionModels/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/turbulenceModels/compressible/turbulenceModel \
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude


EXE_LIBS = \
-lcombustionModels \
-lspecie \
-lreactionThermophysicalModels \
-lbasicThermophysicalModels \
-lfiniteVolume \
-lcompressibleLESModels \
-lcompressibleRASModels \
-lradiation

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:
http://www.openfoam.com/docs/user/co...plications.php

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.

Best regards

Rui
RuiVO is offline   Reply With Quote

Old   November 23, 2011, 12:26
Default
  #2
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
Hi Rui,

From the page you reference, this is all explained quite well; the first paragraph in 3.2.1, and all of sections 3.2.2.1 and 3.2.2.2 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.
mturcios777 is offline   Reply With Quote

Old   November 30, 2011, 09:35
Default
  #3
Senior Member
 
Bernhard Linseisen
Join Date: May 2010
Location: Heilbronn
Posts: 183
Blog Entries: 1
Rep Power: 15
Linse is on a distinguished road
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...
Linse is offline   Reply With Quote

Old   December 1, 2011, 10:47
Default
  #4
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
To add to the previous answers, here's a list of environment variables that can be used:

http://openfoamwiki.net/index.php/Environment_variables
akidess is offline   Reply With Quote

Old   December 1, 2011, 16:14
Default
  #5
Member
 
Rui Vizinho de Oliveira
Join Date: Sep 2011
Posts: 31
Rep Power: 14
RuiVO is on a distinguished road
Thank you all soo much !

Best regards

Rui
RuiVO is offline   Reply With Quote

Old   December 24, 2017, 00:31
Default
  #6
Member
 
Ali Noaman Ibrahim
Join Date: Sep 2015
Location: US_Chicago
Posts: 97
Rep Power: 10
alinuman15 is on a distinguished road
Quote:
Originally Posted by RuiVO View Post
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:
files
options

Example files:

mykOmegaSST.C
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).

Example options:

EXE_INC = \
-I$(LIB_SRC)/turbulenceModels \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/turbulenceModels/incompressible/RAS/lnInclude
LIB_LIBS =


or another options file:


EXE_INC = \
-I./combustionModels/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/turbulenceModels/compressible/turbulenceModel \
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude


EXE_LIBS = \
-lcombustionModels \
-lspecie \
-lreactionThermophysicalModels \
-lbasicThermophysicalModels \
-lfiniteVolume \
-lcompressibleLESModels \
-lcompressibleRASModels \
-lradiation

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:
http://www.openfoam.com/docs/user/co...plications.php

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.

Best regards

Rui
Hi Rui:-
The link http://www.openfoam.com/docs/user/co...plications.php is not available anymore, could you find the replacement?
Thanks!
alinuman15 is offline   Reply With Quote

Old   January 3, 2018, 13:38
Default
  #7
New Member
 
Abilash Ananthula
Join Date: Sep 2017
Posts: 9
Rep Power: 8
abilash is on a distinguished road
https://cfd.direct/openfoam/user-gui...-applications/
abilash is offline   Reply With Quote

Old   January 3, 2018, 13:40
Default
  #8
New Member
 
Abilash Ananthula
Join Date: Sep 2017
Posts: 9
Rep Power: 8
abilash is on a distinguished road
The documentation for compilation of applications is here,

https://cfd.direct/openfoam/user-gui...-applications/
silvino likes this.
abilash is offline   Reply With Quote

Old   January 3, 2018, 13:54
Default
  #9
Member
 
Ali Noaman Ibrahim
Join Date: Sep 2015
Location: US_Chicago
Posts: 97
Rep Power: 10
alinuman15 is on a distinguished road
Thanks Ailash.
I just wanted to have it on the same www.openfoam.com website as a completion to the fabulous materials available on that website.
alinuman15 is offline   Reply With Quote

Reply

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
wmake compiling new solver mksca OpenFOAM Programming & Development 14 June 22, 2018 06:29
Remeshing with User Defined Options ChristianF CFX 2 September 24, 2014 09:19
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 08:48
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
Writing geometry files in STAR-CD Sachin Siemens 5 April 22, 2008 16:38


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