CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[waves2Foam] waves2Foam on an Ubuntu 18.04 with OpenFOAM 1712

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 13, 2020, 15:31
Default waves2FOAM Ubuntu 20.04 and OP2006
  #21
New Member
 
Luiz Ferreira
Join Date: Oct 2020
Posts: 7
Rep Power: 5
lppferreira is on a distinguished road
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
lppferreira is offline   Reply With Quote

Old   October 20, 2020, 12:46
Default Issue compiling waves2Foam on Ubuntu (Windows 10 WSL)
  #22
New Member
 
Benjamin Norris
Join Date: Oct 2020
Location: California
Posts: 17
Rep Power: 5
bknorris is on a distinguished road
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
Attached Files
File Type: txt Allwmake.txt (24.6 KB, 14 views)
bknorris is offline   Reply With Quote

Old   October 20, 2020, 13:15
Default waves2FOAM WSL
  #23
New Member
 
Luiz Ferreira
Join Date: Oct 2020
Posts: 7
Rep Power: 5
lppferreira is on a distinguished road
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
lppferreira is offline   Reply With Quote

Old   October 20, 2020, 14:36
Default waves2Foam running on Ubuntu (Windows 10) v1912
  #24
New Member
 
Benjamin Norris
Join Date: Oct 2020
Location: California
Posts: 17
Rep Power: 5
bknorris is on a distinguished road
Quote:
Originally Posted by lppferreira View Post

Step by Step:
Luiz,

My utmost thanks for your speedy reply and for providing me the solution to get waves2Foam up and running.

Happy Foam-ing,



Ben
bknorris is offline   Reply With Quote

Old   December 17, 2020, 19:05
Default OF+v2006 and waves2Foam on Ubuntu 18.04.5
  #25
New Member
 
Vahid
Join Date: Jan 2011
Posts: 23
Rep Power: 15
va-ta-cfd is on a distinguished road
Quote:
Originally Posted by lppferreira View Post
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.

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
va-ta-cfd is offline   Reply With Quote

Old   December 18, 2020, 11:49
Default
  #26
New Member
 
Benjamin Norris
Join Date: Oct 2020
Location: California
Posts: 17
Rep Power: 5
bknorris is on a distinguished road
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
bknorris is offline   Reply With Quote

Old   December 18, 2020, 21:26
Default OFv1712 source and details
  #27
New Member
 
Luiz Ferreira
Join Date: Oct 2020
Posts: 7
Rep Power: 5
lppferreira is on a distinguished road
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:
Originally Posted by va-ta-cfd View Post
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:
Attachment 81627

I really appreciate if anyone could help.

Best Regards,
Vahid
lppferreira is offline   Reply With Quote

Old   December 19, 2020, 11:57
Default
  #28
New Member
 
Vahid
Join Date: Jan 2011
Posts: 23
Rep Power: 15
va-ta-cfd is on a distinguished road
Hello Every one,

Many thanks for quick reply.
I will do your instructions and get back soon.

Regards,
Vahid
va-ta-cfd is offline   Reply With Quote

Old   December 19, 2020, 15:47
Default
  #29
New Member
 
Vahid
Join Date: Jan 2011
Posts: 23
Rep Power: 15
va-ta-cfd is on a distinguished road
Quote:
Originally Posted by lppferreira View Post
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
Thank you Luiz and Benjamin,
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
va-ta-cfd is offline   Reply With Quote

Old   December 28, 2020, 05:31
Default cannot find -lwaves2Foam
  #30
Member
 
le
Join Date: Nov 2009
Location: seoul
Posts: 34
Rep Power: 16
fsifsi is on a distinguished road
Quote:
Originally Posted by emiliouk View Post
Just wanted to add the "solution" I found. i downloaded and installed the v1712, from the source code, recompiled in Ubuntu, i didn't even need to change the bashrc file in the bin folder, when i compiled the waves2FOAM i noticed errors regarding missing lgsl, i installed via Synaptic all the packages that appeared when i searched for lgsl, re-tried, and everything this time worked fine and i could run the waveFlume tutorial.


Cheers,
Emilio
Hello
I install wave2foam in OF1812 in centos, get the error "cannot find -lwaves2Foam"

Could you give some tips, please. Many Thanks.
fsifsi is offline   Reply With Quote

Old   December 28, 2020, 08:12
Default Compile ThirdParty VTL
  #31
New Member
 
Luiz Ferreira
Join Date: Oct 2020
Posts: 7
Rep Power: 5
lppferreira is on a distinguished road
You need to compile the thirdparty inside waves2foam. AfterShip you need tô compile Ocean3d again.
lppferreira is offline   Reply With Quote

Old   December 28, 2020, 08:30
Default cannot find -lwaves2Foam
  #32
Member
 
le
Join Date: Nov 2009
Location: seoul
Posts: 34
Rep Power: 16
fsifsi is on a distinguished road
Quote:
Originally Posted by MattS View Post
Hi Niels,


Thank you for the reply!


I was actually just able to compile it successfully! When I checked out the repository yesterday, I may have made a mistake and ended up with the older version.


I checked it out again today, and upon sourcing bin/bashrc, the OF version number v1812 now displayed correctly, and everything worked fine for the waves2Foam compilation.



Thanks so much for your work and your support on here!


Matt
Hello
I also install wave2foam in of1812 centos 7, i get error "cannot find -lwaves2Foam"
Could you give some tips please, thanks.
fsifsi is offline   Reply With Quote

Old   December 28, 2020, 21:42
Default cannot find -lwaves2Foam
  #33
Member
 
le
Join Date: Nov 2009
Location: seoul
Posts: 34
Rep Power: 16
fsifsi is on a distinguished road
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
fsifsi is offline   Reply With Quote

Old   December 29, 2020, 14:14
Default wave2foam of1812
  #34
Member
 
le
Join Date: Nov 2009
Location: seoul
Posts: 34
Rep Power: 16
fsifsi is on a distinguished road
Quote:
Originally Posted by lppferreira View Post
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.
Thousand thanks to your tip. I can compile wave2foam in of1812 centos 7
fsifsi is offline   Reply With Quote

Old   June 29, 2022, 11:15
Default Issue in waves2foam installation
  #35
New Member
 
Sandana Socrates
Join Date: Aug 2021
Posts: 1
Rep Power: 0
socrates3069 is on a distinguished road
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
Attached Images
File Type: jpg Screenshot from 2022-06-29 17-37-45.jpg (90.4 KB, 37 views)
File Type: jpg Screenshot from 2022-06-29 17-38-22.jpg (74.2 KB, 22 views)
File Type: jpg Screenshot from 2022-06-29 17-38-38.jpg (81.2 KB, 19 views)
socrates3069 is offline   Reply With Quote

Old   November 6, 2023, 11:42
Default Issue with waves2foam with openfoamv2012
  #36
New Member
 
Kossivi's Avatar
 
Kossivi GOKPI
Join Date: Jun 2010
Location: France
Posts: 28
Rep Power: 15
Kossivi is on a distinguished road
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.
Kossivi is offline   Reply With Quote

Reply


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
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


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