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 |
Quote:
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 |
1 Attachment(s)
Quote:
|
Quote:
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 |
Quote:
Thank you so much. |
setWaveField: command not found
Hi
I installed all third-party dependencies on Foam-extend 4.0.
PHP Code:
when the compilation is finished. in the tutorial test case: waveFlume I receives this error: PHP Code:
Could someone help me to solve this please. Regards |
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 |
Quote:
Many thanks for your swift reply. it is working now. Quote:
I appreciate it. I will consider it. Regards |
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." |
Quote:
I am also facing the same questions, all command can't work. Did you find the solutions? Thx a lot. |
Quote:
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 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. |
Quote:
|
Quote:
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/? |
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 |
Quote:
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 |
Quote:
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 |
1 Attachment(s)
Quote:
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 |
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 |
Quote:
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. |