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

[waves2Foam] setWaveField: command not found

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

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 21, 2017, 19:05
Default setWaveField: command not found
  #1
New Member
 
Masoumeh Gharaati
Join Date: Apr 2017
Posts: 19
Rep Power: 9
mgharaati is on a distinguished road
Dear all

I have faced a problem to install waves2Foam. I followed the instructions according to manual. Then, I tried to run standingwave example from tutorial. These errors happened.

HTML Code:
52: setWaveField: command not found52: setWaveParameters: command not found
Would you please help me?
mgharaati is offline   Reply With Quote

Old   November 25, 2017, 07:59
Default
  #2
New Member
 
Hao Chen
Join Date: Nov 2017
Location: Manchester, UK
Posts: 10
Rep Power: 8
cfd_hchen is on a distinguished road
Quote:
Originally Posted by mgharaati View Post
Dear all

I have faced a problem to install waves2Foam. I followed the instructions according to manual. Then, I tried to run standingwave example from tutorial. These errors happened.

HTML Code:
52: setWaveField: command not found52: setWaveParameters: command not found
Would you please help me?
Hi Masoumeh

Apparently your waves2foam was not correctly installed, you need to upload the log file in order for other people to help you.

Best regards
Hao
cfd_hchen is offline   Reply With Quote

Old   November 25, 2017, 10:40
Default
  #3
New Member
 
Masoumeh Gharaati
Join Date: Apr 2017
Posts: 19
Rep Power: 9
mgharaati is on a distinguished road
Quote:
Originally Posted by cfd_hchen View Post
Hi Masoumeh

Apparently your waves2foam was not correctly installed, you need to upload the log file in order for other people to help you.

Best regards
Hao
I have attached the log file. Thank you so much.
Attached Files
File Type: zip log_.zip (2.3 KB, 34 views)
mgharaati is offline   Reply With Quote

Old   November 26, 2017, 07:05
Default
  #4
New Member
 
Hao Chen
Join Date: Nov 2017
Location: Manchester, UK
Posts: 10
Rep Power: 8
cfd_hchen is on a distinguished road
Quote:
Originally Posted by mgharaati View Post
I have attached the log file. Thank you so much.
Hi,

You did not compile waves2foam successfully. You need some dependencies (GSL lib) in order to install waves2foam. Make sure they are installed before you compile waves2foam.

Hao
cfd_hchen is offline   Reply With Quote

Old   November 27, 2017, 08:48
Default
  #5
New Member
 
Masoumeh Gharaati
Join Date: Apr 2017
Posts: 19
Rep Power: 9
mgharaati is on a distinguished road
Quote:
Originally Posted by cfd_hchen View Post
Hi,

You did not compile waves2foam successfully. You need some dependencies (GSL lib) in order to install waves2foam. Make sure they are installed before you compile waves2foam.

Hao

Thank you so much.
mgharaati is offline   Reply With Quote

Old   October 23, 2021, 20:07
Default setWaveField: command not found
  #6
New Member
 
AUbuntu
Join Date: Oct 2021
Posts: 6
Rep Power: 4
AUbuntu is on a distinguished road
Hi
I installed all third-party dependencies on Foam-extend 4.0.
  • GNU Scientific Library (GSL) -> libgsl2-dev
  • Subversion (SVN)
  • git
  • gfortran
During the waves2Foam compile-preprocessing I received an error:



PHP Code:
sampleIncidentWaveField.C:37:18fatal errorTime.HNo such file or directory 


when the compilation is finished.
in the tutorial test case: waveFlume
I receives this error:
PHP Code:
setWaveFieldcommand not found 
the Foam can recognize the other commands such as setWaveProperties!

Could someone help me to solve this please.

Regards

Last edited by AUbuntu; October 24, 2021 at 05:35.
AUbuntu is offline   Reply With Quote

Old   October 24, 2021, 06:38
Default
  #7
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi,


I have committed small changed in SVN revision 2151 and waves2Foam now compiles on foam-extend-4.0.



Please note that the new development with generating-absorbing boundary conditions (see these references: https://www.researchgate.net/publica...WkL2Sdpdu3opqg, https://www.researchgate.net/publica...WkL2Sdpdu3opqg, and https://www.researchgate.net/publica..._sgd%5Bpc%5D=1) does not work on foam-extend, so if you need these and not specifically foam-extend, it might be useful to consider the OpenFoam-ESI version.


Kind regards


Niels
AUbuntu likes this.
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   October 24, 2021, 08:24
Default
  #8
New Member
 
AUbuntu
Join Date: Oct 2021
Posts: 6
Rep Power: 4
AUbuntu is on a distinguished road
Quote:
I have committed small changed in SVN revision 2151 and waves2Foam now compiles on foam-extend-4.0.

Many thanks for your swift reply. it is working now.


Quote:
Please note that the new development with generating-absorbing boundary conditions (see these references: https://www.researchgate.net/publica...WkL2Sdpdu3opqg, https://www.researchgate.net/publica...WkL2Sdpdu3opqg, and https://www.researchgate.net/publica..._sgd%5Bpc%5D=1) does not work on foam-extend, so if you need these and not specifically foam-extend, it might be useful to consider the OpenFoam-ESI version.

I appreciate it. I will consider it.


Regards
AUbuntu is offline   Reply With Quote

Old   October 11, 2023, 10:06
Default
  #9
New Member
 
Tom SALIC
Join Date: Jul 2023
Posts: 9
Rep Power: 2
salicTo is on a distinguished road
Hello,


I know I'm coming three years late to this thread. I've installed all the dependencies and followed the installation protocol meticulously. However, I can't use any of the Wave2Foam functions. I consistently receive the message 'command not found.' I'm using the OpenFOAM ESI v2212 version. Could the problem be related to that? Either way, thank you in advance. I've attached the log file with this message."
Attached Files
File Type: txt log.txt (190.7 KB, 8 views)
salicTo is offline   Reply With Quote

Old   January 15, 2024, 04:36
Default
  #10
New Member
 
wenzhe zhang
Join Date: Jan 2024
Location: madrid
Posts: 7
Rep Power: 2
imzwz is on a distinguished road
Quote:
Originally Posted by salicTo View Post
Hello,


I know I'm coming three years late to this thread. I've installed all the dependencies and followed the installation protocol meticulously. However, I can't use any of the Wave2Foam functions. I consistently receive the message 'command not found.' I'm using the OpenFOAM ESI v2212 version. Could the problem be related to that? Either way, thank you in advance. I've attached the log file with this message."
Hi salicTo,

I am also facing the same questions, all command can't work. Did you find the solutions? Thx a lot.
imzwz is offline   Reply With Quote

Old   January 15, 2024, 05:01
Default
  #11
New Member
 
Tom SALIC
Join Date: Jul 2023
Posts: 9
Rep Power: 2
salicTo is on a distinguished road
Quote:
Originally Posted by imzwz View Post
Hi salicTo,

I am also facing the same questions, all command can't work. Did you find the solutions? Thx a lot.
Hi Imzwz,


I managed to install it. I took the non-precompiled version 2206. The issue probably stems from the fact that the precompiled version installs in the /usr/lib directory, and Ubuntu restricts writing to these directories. So, I decompiled it in /home/users/, and now it works.
salicTo is offline   Reply With Quote

Old   January 15, 2024, 05:08
Default
  #12
New Member
 
wenzhe zhang
Join Date: Jan 2024
Location: madrid
Posts: 7
Rep Power: 2
imzwz is on a distinguished road
Hi salicTo,
Thank you for your fast reply, I appreciate it.

The v2206 you mentioned is OpenFOAM_v2206 or the waves2foam_v2206? Because I am using Openfoam_v2306 and I noticed there is a lack of solvers2306 in waves2foam, so I created one solvers2306_PLUS. However, it still not work anymore.
imzwz is offline   Reply With Quote

Old   January 15, 2024, 05:16
Default
  #13
New Member
 
Tom SALIC
Join Date: Jul 2023
Posts: 9
Rep Power: 2
salicTo is on a distinguished road
Quote:
Originally Posted by imzwz View Post
Hi salicTo,
Thank you for your fast reply, I appreciate it.

The v2206 you mentioned is OpenFOAM_v2206 or the waves2foam_v2206? Because I am using Openfoam_v2306 and I noticed there is a lack of solvers2306 in waves2foam, so I created one solvers2306_PLUS. However, it still not work anymore.
Yes sorry, I should have clarified, I was talking about OpenFOAM v-2206. The version OpenFOAM_2306 is too recent to make wave2Foam work
salicTo is offline   Reply With Quote

Old   February 17, 2024, 11:52
Default
  #14
New Member
 
Marion Sant
Join Date: Dec 2023
Posts: 23
Rep Power: 2
edo2822 is on a distinguished road
Quote:
Originally Posted by salicTo View Post
Hi Imzwz,


I managed to install it. I took the non-precompiled version 2206. The issue probably stems from the fact that the precompiled version installs in the /usr/lib directory, and Ubuntu restricts writing to these directories. So, I decompiled it in /home/users/, and now it works.
Hi! I'm very new to OpenFoam and trying to install waves2foam as well. I tried with versions Openfoam-2012 and Openfoam-2312 but in both of them, I receive errors like setWaveField: command not found when running any tutorial.

I wil try to use openfoam version 2206,what do you mean when you say it's non-precompiled? If installing the Openfoam version 2206 will it already be installed in /home/users/?
edo2822 is offline   Reply With Quote

Old   February 19, 2024, 04:12
Default
  #15
New Member
 
wenzhe zhang
Join Date: Jan 2024
Location: madrid
Posts: 7
Rep Power: 2
imzwz is on a distinguished road
Hi, Edoardo,

I already compiled waves2Foam successfully, the openfoam v2206 is ok to be used for waves2foam currently. But, please note carefully, using the system ubuntu 20.04, not the 22.04. The newest system environment may cause problems when you compile
imzwz is offline   Reply With Quote

Old   February 19, 2024, 04:15
Default
  #16
New Member
 
wenzhe zhang
Join Date: Jan 2024
Location: madrid
Posts: 7
Rep Power: 2
imzwz is on a distinguished road
Quote:
Originally Posted by edo2822 View Post
Hi! I'm very new to OpenFoam and trying to install waves2foam as well. I tried with versions Openfoam-2012 and Openfoam-2312 but in both of them, I receive errors like setWaveField: command not found when running any tutorial.

I wil try to use openfoam version 2206,what do you mean when you say it's non-precompiled? If installing the Openfoam version 2206 will it already be installed in /home/users/?
Here I also have some tutorials that will be useful, sorry it is in Chinese.

https://www.cfd-china.com/topic/4499...AE%89%E8%A3%85

https://www.cfd-china.com/topic/4499...AE%89%E8%A3%85

https://zhuanlan.zhihu.com/p/541266216
imzwz is offline   Reply With Quote

Old   February 19, 2024, 04:19
Default
  #17
New Member
 
Marion Sant
Join Date: Dec 2023
Posts: 23
Rep Power: 2
edo2822 is on a distinguished road
Quote:
Originally Posted by imzwz View Post
Hi, Edoardo,

I already compiled waves2Foam successfully, the openfoam v2206 is ok to be used for waves2foam currently. But, please note carefully, using the system ubuntu 20.04, not the 22.04. The newest system environment may cause problems when you compile
Dear wenzhe , Thank you for your reply!
I was indeed using ubuntu 22.04. I will now try again with ubuntu 20.04 and let you know if I can make it. Can I also use OpenFOAM-v2012.
Just to be sure I'm doing correctly: my OpenFOAM-v2012 is installed in the directory opt/OpenFOAM/OpenFOAM-v2012, while the waves2foam folder will be in /home/edoardoforte/OpenFOAM/edoardoforte-v2012/applications/utilities/waves2Foam.

My ~/.bashrc file has the following last line:
source /opt/OpenFOAM/OpenFOAM-v2012/etc/bashrc

Also,I'using Windows with ubuntu, not linux
edo2822 is offline   Reply With Quote

Old   February 19, 2024, 07:19
Default
  #18
New Member
 
Marion Sant
Join Date: Dec 2023
Posts: 23
Rep Power: 2
edo2822 is on a distinguished road
Quote:
Originally Posted by imzwz View Post
Hi, Edoardo,

I already compiled waves2Foam successfully, the openfoam v2206 is ok to be used for waves2foam currently. But, please note carefully, using the system ubuntu 20.04, not the 22.04. The newest system environment may cause problems when you compile
Dear wenzhe ,
Thank you very much! It finally worked.
I tried to run a PorouswaveFoam tutorial, it seems to work fine.
However, if I try to run a waveFoam tutorial, the waveFoam log file states:
/usr/lib/openfoam/openfoam2206/bin/tools/RunFunctions: line 271: waveFoam: command not found,
while the other commands are running correctly (setWaveParameters and setWaveFields).
I don't think there was any error with the compilation of waves2foam (I will attach the lo file). But I can see that inside the waves2foam folder, the README file states:
"3. For versions later than 1.7, please refer to the wiki on how to modify interFoam -> waveFoam."

So, I think this could be the problem. Do you know by chance how to solve this? I looked online but didn't find anything
Attached Files
File Type: zip log.make.zip (1.9 KB, 4 views)
edo2822 is offline   Reply With Quote

Old   February 20, 2024, 11:24
Default
  #19
New Member
 
wenzhe zhang
Join Date: Jan 2024
Location: madrid
Posts: 7
Rep Power: 2
imzwz is on a distinguished road
Dear Edoardo,

Sorry, I have no idea what happened on your computer. But if you run wavesFoam and return not found, maybe you don't compile the waves2Foam correctly. Because you are using openfoam.com not openfoam.org, the note version later than 1.7 should not be suitable for your situation.

Today I reinstall my PC, and the installation is written down in my personal note, you are welcome to take a look.

https://www.overleaf.com/read/dkvdsfdqnjqn#5a7e00

Good luck
wenzhe
imzwz is offline   Reply With Quote

Old   February 20, 2024, 11:29
Default
  #20
New Member
 
Marion Sant
Join Date: Dec 2023
Posts: 23
Rep Power: 2
edo2822 is on a distinguished road
Quote:
Originally Posted by imzwz View Post
Dear Edoardo,

Sorry, I have no idea what happened on your computer. But if you run wavesFoam and return not found, maybe you don't compile the waves2Foam correctly. Because you are using openfoam.com not openfoam.org, the note version later than 1.7 should not be suitable for your situation.

Today I reinstall my PC, and the installation is written down in my personal note, you are welcome to take a look.

https://www.overleaf.com/read/dkvdsfdqnjqn#5a7e00

Good luck
wenzhe
Dear,
Thank you for your reply
I could solve the problem by enabling modifications to the folder in which waveFoam should be compiled! It seems like it's working now. However, I see that the controlDict file of the tutorials( like waveFlume) the selected application is interFoam, and not waveFoam. Is it normal?
edo2822 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
[Gmsh] Insatlling gmsh from the source code-issue? CFD-Lover OpenFOAM Meshing & Mesh Conversion 20 June 12, 2018 06:39
Gmsh installation on terminal help spitfire Main CFD Forum 4 July 27, 2017 15:11
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 07:21
Problems Installing OF 1.6 32 bit bucksfan OpenFOAM Installation 19 August 4, 2009 01:36
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32


All times are GMT -4. The time now is 14:08.