CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [waves2Foam] setWaveField: command not found (https://www.cfd-online.com/Forums/openfoam-community-contributions/205696-setwavefield-command-not-found.html)

mgharaati November 21, 2017 19:05

setWaveField: command not found
 
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?

cfd_hchen November 25, 2017 07:59

Quote:

Originally Posted by mgharaati (Post 672415)
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

mgharaati November 25, 2017 10:40

1 Attachment(s)
Quote:

Originally Posted by cfd_hchen (Post 672829)
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.

cfd_hchen November 26, 2017 07:05

Quote:

Originally Posted by mgharaati (Post 672847)
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

mgharaati November 27, 2017 08:48

Quote:

Originally Posted by cfd_hchen (Post 672890)
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.

AUbuntu October 23, 2021 20:07

setWaveField: command not found
 
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

ngj October 24, 2021 06:38

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 October 24, 2021 08:24

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

salicTo October 11, 2023 10:06

1 Attachment(s)
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."

imzwz January 15, 2024 04:36

Quote:

Originally Posted by salicTo (Post 858192)
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.

salicTo January 15, 2024 05:01

Quote:

Originally Posted by imzwz (Post 863154)
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.

imzwz January 15, 2024 05:08

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.

salicTo January 15, 2024 05:16

Quote:

Originally Posted by imzwz (Post 863161)
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

edo2822 February 17, 2024 11:52

Quote:

Originally Posted by salicTo (Post 863159)
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/?

imzwz February 19, 2024 04:12

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 February 19, 2024 04:15

Quote:

Originally Posted by edo2822 (Post 864878)
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

edo2822 February 19, 2024 04:19

Quote:

Originally Posted by imzwz (Post 864935)
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 February 19, 2024 07:19

1 Attachment(s)
Quote:

Originally Posted by imzwz (Post 864935)
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

imzwz February 20, 2024 11:24

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

edo2822 February 20, 2024 11:29

Quote:

Originally Posted by imzwz (Post 865030)
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:o

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?


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