|
[Sponsors] |
[waves2Foam] waves2Foam on an Ubuntu 18.04 with OpenFOAM 1712 |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#21 |
New Member
Luiz Ferreira
Join Date: Oct 2020
Posts: 7
Rep Power: 5 ![]() |
Good evening.
I have compiled OP2006 and waves2FOAm but when I try to run the tutorial wave/Foam/waveFlume appers this error. Can anyone help me? root@25dde8998396:/opt/OpenFOAM/ThirdParty-v2006/waves2Foam/tutorials/waveFoam/waveFlume# ./Allrun v2006 Running blockMesh on /opt/OpenFOAM/ThirdParty-v2006/waves2Foam/tutorials/waveFoam/waveFlume Running waveGaugesNProbes on /opt/OpenFOAM/ThirdParty-v2006/waves2Foam/tutorials/waveFoam/waveFlume Running setWaveParameters on /opt/OpenFOAM/ThirdParty-v2006/waves2Foam/tutorials/waveFoam/waveFlume /opt/OpenFOAM/OpenFOAM-v2006/bin/tools/RunFunctions: line 208: 5241 Aborted $appRun $appArgs "$@" > $logFile 2>&1 Running setWaveField on /opt/OpenFOAM/ThirdParty-v2006/waves2Foam/tutorials/waveFoam/waveFlume Running waveFoam on /opt/OpenFOAM/ThirdParty-v2006/waves2Foam/tutorials/waveFoam/waveFlume Running postProcessWaves2Foam on /opt/OpenFOAM/ThirdParty-v2006/waves2Foam/tutorials/waveFoam/waveFlume /opt/OpenFOAM/OpenFOAM-v2006/bin/tools/RunFunctions: line 208: 5269 Segmentation fault $appRun $appArgs "$@" > $logFile 2>&1 |
|
![]() |
![]() |
![]() |
![]() |
#22 |
New Member
Benjamin Norris
Join Date: Oct 2020
Location: California
Posts: 17
Rep Power: 5 ![]() |
Hello everyone,
Has anyone had luck compiling waves2Foam on Windows Subsystem for Linux? I have attempted to compile waves2Foam using different versions of OpenFOAM (v2006, v1912, v1812, and v1712) without much luck so far. After reading through many forum posts, I realize that waves2Foam is not fully compliable for newer versions of OF, so I intend to use a stable version with v1812 or v1712, whichever works. I have made sure that all the third-party dependencies are installed and are working (git, gfortran, svn, and gsl), which I installed using apt-get install, e.g., sudo apt-get install git ; sudo apt-get install gfortran ; sudo apt-get install subversion ; and sudo apt-get install libgsl-dev My waves2Foam install folder is located at ~/OpenFOAM/<user>-v<version>/OpenFoam/applications/utilities/waves2Foam as indicated in the instruction manual, where <user> is my username and <version> is 1712, 1812, 1912, etc. and my OpenFOAM installation is located at /opt/OpenFOAM/ When I attempt to compile waves2Foam by entering ~/OpenFOAM/<user>-v<version>/OpenFoam/applications/utilities/waves2Foam and then running ./Allwmake , Ubuntu runs through the compilation to completion. However, in all cases, I get error messages like : -limmiscibleIncompressibleTwoPhaseMixture -lturbulenceModels -lincompressibleTurbulenceModels -lfiniteVolume -lfvOptions -lmeshTools -lsampling -L/home/bknorris/OpenFOAM/bknorris-v1712/platforms/linux64Gcc63DPInt32Opt/lib -lwaves2Foam -lwaves2FoamPorosity -lwaves2FoamSampling -L/usr/lib64 -lgsl -lgslcblas -lOpenFOAM -ldl \ -lm -o /home/bknorris/OpenFOAM/bknorris-v1712/platforms/linux64Gcc63DPInt32Opt/bin/porousWaveFoam /usr/bin/ld: cannot find -lwaves2Foam /usr/bin/ld: cannot find -lwaves2FoamSampling If I try to run say the waveFlume tutorial, I get the following error in one of the log files generated by ./Allrun, /opt/OpenFOAM/OpenFOAM-v1712/bin/tools/RunFunctions: line 146: setWaveParameters: command not found Can anyone help? I'm thinking that maybe waves2Foam is just incompatible with Ubuntu on Windows? I have attached my second run of ./Allwmake if it is of use. Thank you! Ben |
|
![]() |
![]() |
![]() |
![]() |
#23 |
New Member
Luiz Ferreira
Join Date: Oct 2020
Posts: 7
Rep Power: 5 ![]() |
Ubuntu and v1912.
Step by Step: sudo apt-get update && sudo apt-get upgrade sudo apt-get install gcc g++ gfortran gsl-bin make sudo apt-get install m4 bison flex subversion ptscotch cmake sudo apt-get install mpi-default-dev wget sudo apt-get install libz-dev libgsl-dev vim nano git cd $WM_PROJECT_DIR/etc nano bashrc Select the system compiler ->Go to the line where is written WM_COMPILER TYPE export WM_COMPILER_TYPE=system source $HOME/.basrhrc Compile waves2FOAM. If you have some problem at Ocean3D-Fortran go to the folder thirdparty and compile the VTK. Last edited by lppferreira; October 20, 2020 at 13:18. Reason: OpenFOAM version |
|
![]() |
![]() |
![]() |
![]() |
#24 |
New Member
Benjamin Norris
Join Date: Oct 2020
Location: California
Posts: 17
Rep Power: 5 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#25 | |
New Member
Vahid
Join Date: Jan 2011
Posts: 23
Rep Power: 15 ![]() |
Quote:
Dear Luiz Hi, Can you explain more how to select system compiler? I cant find it in nano bashrc page ![]() It is for some days that I am trying to install waves2Foam on Ubuntu 18.04. No success ![]() I have tried OpenFoam3.0.1 but failed. Now I have installed openFoam v2006 from source code in HOME folder (I was going to install 1712, but it is no longer available on https://www.openfoam.com/ ). I have done all steps I see in this thread but still no success. I have attached the log file when making waves2FOAM on OFv2006: Waves2FOAM.zip I really appreciate if anyone could help. Best Regards, Vahid |
||
![]() |
![]() |
![]() |
![]() |
#26 |
New Member
Benjamin Norris
Join Date: Oct 2020
Location: California
Posts: 17
Rep Power: 5 ![]() |
Hi Vahid,
I have put together some instructions for installing waves2foam on Ubuntu (WSL). Please note that these installation instructions are for OF v1912, I do not know if they will work for other versions of OF. Also, you might try un-installing any third party dependencies ("sudo apt-get remove..."), including other OF installations, before trying a 'clean' install of waves2foam. Code:
# How to install waves2Foam on Ubuntu (Windows 10) Install OF v1912: 1. Download .tgz from here: https://www.openfoam.com/download/release-history.php to c:\Users\<USER>\Downloads 2. In Ubuntu, run command: cp -ar /mnt/c/Users/<USER>/Downloads/OpenFOAM-v1912-windows10.tgz . 3. run command: sudo tar -xvzf OpenFOAM-v1912-windows10.tgz -C /opt/ 4. run command: sudo chown -R $USER /opt/OpenFOAM 5. run command: echo "source /opt/OpenFOAM/OpenFOAM-v1912/etc/bashrc" >> ~/.bashrc 6. run command: source $HOME/.bashrc 7. OpenFOAM should work (hint: type 'whereis icoFoam'. If bash returns '/opt/OpenFOAM/OpenFOAM-v1912/platforms/linux64Gcc63DPInt32Opt/bin/icoFoam' then it is working) Install third-party dependencies: 1. run command: sudo apt-get update && sudo apt-get upgrade 2. run command: sudo apt-get install gcc g++ gfortran gsl-bin make 3. run command: sudo apt-get install m4 bison flex subversion ptscotch cmake 4. run command: sudo apt-get install mpi-default-dev wget 5. run command: sudo apt-get install libz-dev libgsl-dev vim nano git 6. run command: cd $WM_PROJECT_DIR/etc 7. edit bashrc: nano bashrc 7a. Select the system compiler -> Go to the line where is written WM_COMPILER TYPE and change 'ThirdParty' to 'system' # [WM_COMPILER_TYPE] - Compiler location: # = system | ThirdParty WM_COMPILER_TYPE system 7b. save bashrc and exit nano 7c. run command: source $HOME/.bashrc Compile waves2Foam: 1. run command: cd ~/ 2. run command: mkdir $HOME/../applications/utilities 3. run command: cd $HOME/../applications/utilities 4. run command: svn co http://svn.code.sf.net/p/openfoam-ex...her/waves2Foam 5. run command: cd waves2Foam/ 6. run command: ./Allwmake 7. waves2Foam should now be compiled; type 'whereis waveFoam', bash should return '/opt/OpenFOAM/OpenFOAM-v1912/platforms/linux64Gcc63DPInt32Opt/bin/waveFoam' Last edited by bknorris; December 18, 2020 at 13:58. Reason: formatting |
|
![]() |
![]() |
![]() |
![]() |
#27 | |
New Member
Luiz Ferreira
Join Date: Oct 2020
Posts: 7
Rep Power: 5 ![]() |
Dear Vahid,
I would strongly suggest to you to use OFv1712 rather OFv2006. Here is the link of the respository for the version https://sourceforge.net/projects/openfoam/files/v1712/ Also, I don't believe that waves2Foam has v2006 version. Finally, to find the bashr of OpenFOAM, you need to search for the etc folder the OpenFOAM installation. For example, /home/<Folder where is installed your OpenFOAM>/etc In a more tangible sample, considering that you are using OFv2006: /home/OpenFOAM-v2006/etc There will be the bashrc. Obs.: if you compiled the source code you don't need to change the bashrc because it will be already at system compiler. Cheers, LP Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#28 |
New Member
Vahid
Join Date: Jan 2011
Posts: 23
Rep Power: 15 ![]() |
Hello Every one,
Many thanks for quick reply. I will do your instructions and get back soon. Regards, Vahid |
|
![]() |
![]() |
![]() |
![]() |
#29 | |
New Member
Vahid
Join Date: Jan 2011
Posts: 23
Rep Power: 15 ![]() |
Quote:
I finally made it ![]() As Luiz said, I installed OFv1712 from source code on my Ubuntu18.04. Then downloaded and compiled Wave2Foam exactly according to instructions in its manual. For installing GNU SCIENTIFIC LIBRARY (GSL) dependencies, I found following page helpful: GSL I also tried to install waves2Foam on Ubuntu WSL (on windows10), but it was not successful. I compiled waves2Foam but the tutorials didn't run. Anyway, thank you all for your time. ![]() Best Regards, Vahid |
||
![]() |
![]() |
![]() |
![]() |
#30 | |
Member
le
Join Date: Nov 2009
Location: seoul
Posts: 34
Rep Power: 16 ![]() |
Quote:
I install wave2foam in OF1812 in centos, get the error "cannot find -lwaves2Foam" Could you give some tips, please. Many Thanks. |
||
![]() |
![]() |
![]() |
![]() |
#31 |
New Member
Luiz Ferreira
Join Date: Oct 2020
Posts: 7
Rep Power: 5 ![]() |
You need to compile the thirdparty inside waves2foam. AfterShip you need tô compile Ocean3d again.
|
|
![]() |
![]() |
![]() |
![]() |
#32 | |
Member
le
Join Date: Nov 2009
Location: seoul
Posts: 34
Rep Power: 16 ![]() |
Quote:
I also install wave2foam in of1812 centos 7, i get error "cannot find -lwaves2Foam" Could you give some tips please, thanks. |
||
![]() |
![]() |
![]() |
![]() |
#33 |
Member
le
Join Date: Nov 2009
Location: seoul
Posts: 34
Rep Power: 16 ![]() |
Hello
I also install wave2foam in OF1812 Centos 7, but i got error: cannot find -lgfortran cannot find -lwaves2Foam Could you give me some hints, please. Thanks |
|
![]() |
![]() |
![]() |
![]() |
#34 | |
Member
le
Join Date: Nov 2009
Location: seoul
Posts: 34
Rep Power: 16 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#35 |
New Member
Sandana Socrates
Join Date: Aug 2021
Posts: 1
Rep Power: 0 ![]() |
Dear all,
I am facing an issue with waves2Foam installation in Ubuntu 22.04 with OpenFOAM-v2012. can anyone help me to find this issue? thanks |
|
![]() |
![]() |
![]() |
![]() |
#36 |
New Member
Kossivi GOKPI
Join Date: Jun 2010
Location: France
Posts: 28
Rep Power: 16 ![]() |
Hello Sandana,
I'm facing an issue installing the version 2012 of openfoam with the same issues that yours. Did you find any solutions to them? Thanks. Kossivi
__________________
Thanks in advance, Kossivi. |
|
![]() |
![]() |
![]() |
![]() |
#37 |
New Member
abdulsalam musaad
Join Date: Mar 2024
Posts: 8
Rep Power: 2 ![]() |
Hi Kossivi,
I am facing similar error to what Sandana has attached. i am using openfoamv2312. Please let me know if you found a solution to this problem. Thanks in advance. %%%%%%%%%%% i found the solution to this problem in this thread: Compilation on Ubuntu 22.04 Last edited by AbdoMusaad; April 28, 2024 at 07:16. |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Map of the OpenFOAM Forum - Understanding where to post your questions! | wyldckat | OpenFOAM | 10 | September 2, 2021 05:29 |
[OpenFOAM.org] icoFoam: Command not found in OpenFOAM 3.0.1 installation on Ubuntu 16.10 | febriyan91 | OpenFOAM Installation | 2 | July 27, 2020 00:23 |
[OpenFOAM.org] what happens for OpenFOAM related codes when upgrading ubuntu | babakflame | OpenFOAM Installation | 4 | December 31, 2014 09:40 |
Installing OpenFOAM 2.2.0 on Ubuntu 12.10 i686 | AHutchison | OpenFOAM Installation | 6 | June 4, 2013 12:11 |
OpenFOAM vs Ubuntu 10.10 64 bit | vkrastev | OpenFOAM Installation | 12 | April 23, 2011 10:14 |