|
[Sponsors] |
June 30, 2016, 07:39 |
Compiling with OpenFoam4
|
#1 |
New Member
Alireza Bahmanpour
Join Date: Jul 2014
Posts: 12
Rep Power: 12 |
Hi Niels,
Any chance you will be making waves2Foam compatible with the new OpenFOAM 4.0.0? Best regards, Alireza |
|
June 30, 2016, 09:25 |
|
#2 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hallo Alireza,
It is possible that waves2Foam will be made compatible with OpenFoam-4.0.0. There have been substantial changes in the code (see e.g. http://bugs.openfoam.org/view.php?id=2134#c6474), so it will take a bit of time to handle the cross-version compatibility. Furthermore, it appears that the approach to run-time sampling has changed substantially in OpenFoam-4.0.0 (functionObjects) and some of the canonical classes does no longer exist. Consequently, I cannot promise that sampling tools such as waveGauges and overtopping will be supported. Kind regards, Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
July 1, 2016, 17:52 |
|
#3 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Please follow this link on compatibility with OpenFoam-4.0.0:
http://www.cfd-online.com/Forums/ope...tml#post607668 Kind regards, Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
August 2, 2016, 08:12 |
Remarks in compiling waves2Foam with OpenFoam4
|
#4 |
New Member
Pierre-Henri Musiedlak
Join Date: Dec 2015
Posts: 11
Rep Power: 10 |
Hello everyone,
Thanks Niels for the compiling of waves2Foam with OpenFOAM4. I still get some stuffs happening for whatever the reason: - some librairies doesn't compile because they try to compile with "extended" files => So in bin/bashrc: I manually fix: EXTBRANCH=0 (avaoiding the if loop) => When I compile I do get at the very beginning: EXTBRANCH=0 But then, the same compiling errors are done The only solution I found was to go in files and comment the if loop to force the right #include: Code:
/*if EXTBRANCH==1 #if 310<OFVERSION #include "foamTime.H" #else #include "Time.H" #endif #else #include "Time.H" #endif*/ #include "Time.H" Pierre-Henri |
|
August 2, 2016, 16:56 |
|
#5 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Hi Pierre-Henri,
Are you sure that you are using Openfoam-40 and not the current development number for foam-extend-4.0? Something goes wrong elsewhere and I have not had those problems, so you need to provide more information. I am currently on holiday, so do not know, when I check in again. Make sure that you use the most recent version of the svn-repository. Kind regards Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
August 3, 2016, 07:19 |
|
#6 |
New Member
Pierre-Henri Musiedlak
Join Date: Dec 2015
Posts: 11
Rep Power: 10 |
Hello Niels,
I am sure I am using OpenFOAM-40 because I download it directly from : HTML Code:
http://openfoam.org/download/4-0-ubuntu/ Code:
git clone https://github.com/ogoe/waves2Foam I am also having troubles compiling waveDyMFoam. I made a copy of interDyMFoam and follows the instructions to convert interFoam in waveFoam, but I still have some issues : createFields.H gives some troubles with readGravitationalAcceleration.H, readWaveProperties.H and createExternalWaveForcing.H. If I come up with an answer I will post it here. Enjoy your holidays Thanks Pierre-Henri |
|
August 3, 2016, 14:00 |
|
#7 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Sorry, I cannot vouch for other mirrors. I recommend that you manage to use svn.
Kind regards Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
August 4, 2016, 07:55 |
|
#8 |
New Member
Pierre-Henri Musiedlak
Join Date: Dec 2015
Posts: 11
Rep Power: 10 |
Hello Niels,
I manage to make the svn works and I do get the same errors in compiling: "foamTime.H" which means it still think I am using foam-extended but in Environmental variables EXTBRANCH=0 and FOAMEXTENDPROJECT=0 Pierre-Henri |
|
August 9, 2016, 09:51 |
|
#9 |
Senior Member
ArielJ
Join Date: Aug 2015
Posts: 127
Rep Power: 11 |
Hi everyone,
I'm getting a symbol lookup error when I try any of the utilities with waveFoam, i.e.: Code:
setWaveParameters: symbol lookup error: /ichec/packages/OpenFOAM/2.4.0/intel/OpenFOAM-2.4.0/platforms/linux64IccDPOpt/lib/libwaves2Foam.so: undefined symbol: globalvariables_mp_time_ |
|
August 11, 2016, 05:11 |
|
#10 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,903
Rep Power: 37 |
Good morning,
I am back from my holiday. I have just compiled waves2Foam on OpenFoam-4.0. I do not experience any problems. You will need to post the errors from the compilation and the places/files, where it goes wrong. Otherwise, it is virtually impossible to help any further. Also, please acquaint yourself with these instructions: http://www.cfd-online.com/Forums/ope...-get-help.html @Ariel: I guess that something has gone wrong with your installation of OceanWave3D (at least the missing symbol looks like something from the coupling between OceanWave3D and waves2Foam). I simply recommend to recompile waves2Foam. Kind regards, Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request. |
|
August 11, 2016, 07:25 |
|
#11 |
Senior Member
ArielJ
Join Date: Aug 2015
Posts: 127
Rep Power: 11 |
Hi Niels,
Thank you for your reply... I noticed the same thing and tried to do a clean and recompile, but still having a lot of linking issues. However, as this was working perfectly before but I am running it on a public cluster, my suspicion is that the issues are to do with some other linking or missing libraries on the cluster and not an issue with waves2Foam. I will keep trying here and hopefully get it back up and running again. Ariel |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Compiling OpenFOAM 5.0 on the Titan Supercomputer | wildfire230 | OpenFOAM Installation | 20 | May 6, 2020 08:30 |
Getting error both interpreting and compiling | serene6390 | Fluent UDF and Scheme Programming | 1 | October 27, 2017 01:49 |
All files present. but solver not compiling | saddy | OpenFOAM Programming & Development | 1 | July 29, 2017 10:50 |
[OpenFOAM.org] Trouble Compiling OpenFOAM-dev using Intel Compiler 15 for use on Xeon Phi | foamer123 | OpenFOAM Installation | 9 | August 20, 2015 15:03 |
Help with KIVA4 source code compiling | geothokar | Main CFD Forum | 0 | September 3, 2010 06:40 |