|
[Sponsors] |
November 6, 2014, 03:44 |
Construction of a new ddtScheme
|
#1 |
Senior Member
Laurent DASTUGUE
Join Date: May 2014
Location: Chartres, France
Posts: 122
Rep Power: 11 |
Hi Foamers,
I am currently trying to construct a new ddtScheme to use it on OpenFOAM. But i don't understand how to compile a new ddtScheme. Concerning the solvers, i know the rule : to have a 'Make' directory and to type wmake, but in the ddtScheme directories there is no 'Make' directory and the command wmake doesn't work. There is something i don't know, can you help me to learn it ? Thank you. LD |
|
November 6, 2014, 03:50 |
|
#2 |
Senior Member
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 20 |
The "Make"-directory is a few directories up:
Code:
$FOAM_SRC/finiteVolume/Make Code:
ddtSchemes = finiteVolume/ddtSchemes $(ddtSchemes)/ddtScheme/ddtSchemes.C Code:
$FOAM_SRC/finiteVolume |
|
November 6, 2014, 03:53 |
|
#3 |
Senior Member
Laurent DASTUGUE
Join Date: May 2014
Location: Chartres, France
Posts: 122
Rep Power: 11 |
Thank you, i will try it.
Have a good day, LD |
|
November 6, 2014, 05:35 |
|
#4 |
Senior Member
Laurent DASTUGUE
Join Date: May 2014
Location: Chartres, France
Posts: 122
Rep Power: 11 |
I found the directory with the 'Make' subdirectory and i used te 'wmake' utility.
But after a few minutes, the process crashes and prints tghe message : ld a retourné un code en état d'éxecution". In enfglish, it means : "ld returned a process which is actually running". Does this error speak to you ? Laurent |
|
November 7, 2014, 08:48 |
|
#5 |
Senior Member
Laurent DASTUGUE
Join Date: May 2014
Location: Chartres, France
Posts: 122
Rep Power: 11 |
Hi Foamers,
i am back because this problem is stopping me in my work. Does anybody know the solution for this kind of compilation problem. Briefly : I want to compile a ddtScheme so i go in the finiteVolume directory and i run wmake. After a few minutes and a lot of things written on my screen i can read the following message : collect 2: ld retourne un code d'état exécution. What's the problem ??? Sincerely, Me |
|
November 7, 2014, 09:27 |
|
#6 |
Senior Member
|
Hi,
well (sometimes localisation is evil ), the error in fact just means "there was a problem during linking" (as ld is linker, and it returned 1 as the process exit code). The reason for the error? No idea. Show the output of wmake command. If you'd like to discuss your problem further: 1. What's your OpenFOAM version? 2. How it was installed? (i.e. binary package using package manager or self-compilation from sources) In general it's not a good idea to mess with original source tree. If you'd like to create your own ddtScheme, create a folder in your home folder (or elsewhere), copy there sources of EulerDdtScheme (for example), rename source files (and classes inside) to myNewCoolDdtScheme, create Make folder, there create 'files' and 'options' files with necessary contents (or you can use wmakeFilesAndOptions to do it semi-automatically). |
|
November 7, 2014, 10:01 |
|
#7 |
Senior Member
Laurent DASTUGUE
Join Date: May 2014
Location: Chartres, France
Posts: 122
Rep Power: 11 |
Well,
the output of the wmake is a very big file so i can write here the last lines. Note that the word 'error' doesn't appear before those lines : " collect 2 : ld a retourné un code d'état d'exécution make: *** [OpenFOAM.out] Erreur 1 " No more informations... I have to add that when i remove all the new files and do wmake on the initial content, the same error occurs... When i try to compile a solver, like buoyantPimpleFoam, it works. But not for the content of finiteVolume/ Thanks to give me some of your time. Laurent |
|
November 7, 2014, 10:12 |
|
#8 |
Senior Member
|
IIRC in old versions of OpenFOAM wmake wasn't clever enough and it was necessary to state explicitly if you'd like to build library (i.e. run wmake libso instead of just wmake). And it seems that it's the case as in 2.3.0 for example wmake will search for Make folder in parent folders (and actually will work in ddtScheme folder).
Unfortunately with the amount of information you've provided it's almost impossible to understand the source of the error, hope somebody will have a desire to continue guessing. |
|
November 7, 2014, 11:43 |
|
#9 |
Senior Member
Laurent DASTUGUE
Join Date: May 2014
Location: Chartres, France
Posts: 122
Rep Power: 11 |
Thank you Alexey,
i have tried the command : wmake libso and the result is different. The last line told me that libFiniteVolume.so is up to date. How can i know if the compilation has succeed ? Laurent |
|
November 12, 2014, 04:51 |
|
#10 |
Senior Member
Laurent DASTUGUE
Join Date: May 2014
Location: Chartres, France
Posts: 122
Rep Power: 11 |
Does anybody know a way to confirm that the compilation has succeed ?
Laurent |
|
November 12, 2014, 05:04 |
|
#11 |
Senior Member
|
Comme toujours: try using what you were trying to compile. Also there are compiler and linker messages to check for errors.
|
|
November 12, 2014, 09:07 |
|
#12 |
Senior Member
Laurent DASTUGUE
Join Date: May 2014
Location: Chartres, France
Posts: 122
Rep Power: 11 |
Thank you Alexey but i knew it. My question was about a new compilation of something which works. If a try to use it it will works even if the second compilation has broken.
Anyway, i succeed to verify the compilation using the command : /usr/bin/time -v -o wmake libso 1> log 2> log.err After compilation i have three files : log (with the details of compilation), log.err (with the errors which occur during the compilation, and which is empty if all was good) and report with details about the time and the memory needed for the compilation. Thank you Alexey from Nancy, for your time and your knowledge. See you soon on this forum. Laurent |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[DesignModeler] Need to create construction lines to plot data along them in cfd-post | Soheyl.ysf | ANSYS Meshing & Geometry | 0 | April 29, 2014 02:42 |
Convective heat loss out of a solar receiver construction | Lionel Trébuchon | CFX | 10 | April 6, 2014 20:25 |
Rotating flow through a construction | EA1990 | Main CFD Forum | 0 | July 13, 2013 10:49 |
Mirror mesh and construction lines? | plunge11 | ANSYS Meshing & Geometry | 1 | March 2, 2011 07:31 |
Modeling construction with movable details | Bloshchitsyn Vladimir | CFX | 4 | June 21, 2007 05:45 |