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

[waves2Foam] waves2Foam does not run any tutorial

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

Like Tree1Likes
  • 1 Post By ngj

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 17, 2024, 07:23
Default waves2Foam does not run any tutorial
  #1
New Member
 
Marion Sant
Join Date: Dec 2023
Posts: 23
Rep Power: 2
edo2822 is on a distinguished road
Hello everyone,
I am using Ubuntu 22.04.4 in a Windows 10 system.
I am using OpenFOAM-v2012 and trying to use waves2Foam which does not seem to work.
I followed the instruction on the installation manual, made sure to have installed all the third party dependencies (although I am not sure in which directory they were installed). I created a ~/OpenFOAM/edoardoforte-v2012/applications/utilities/ directory where I downloaded waves2Foam. The download process went smoothly and at the end I got the message COMPILATION DONE. During the compilation process I saw some red lines stating Error or Warning such as:

Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(4)/INTEGER(4)), or Warning: Deleted feature: ASSIGN statement at (1), or Error: More actual than formal arguments in procedure call at (1).

However, the compilation went smoothly and did not produce any log.allwMake file.

The problem is when I try to run any kind of tutorial, after correctly running blockMesh, log files are produced for every subsequent comman which states:

/opt/OpenFOAM/OpenFOAM-v2012/bin/tools/RunFunctions: line 254: setWaveField: command not found

Do you know what the source of error could be?
I am pretty new to CFD and when I installed openfoam I may have created confusion with the directories, however the tutorials and run that I have tried in OpenFOAM so far have always worked out.
Could the problem be that waves2foam is looking for function in the directory
/opt/OpenFOAM/OpenFOAM-v2012/bin/tools/RunFunctions while I installed it in the directory ~/OpenFOAM/edoardoforte-v2012/applications/utilities/waves2Foam (as suggested in the manual)?

Many thanks in advance

Last edited by edo2822; February 17, 2024 at 08:53.
edo2822 is offline   Reply With Quote

Old   February 17, 2024, 09:23
Default Allwmake log file
  #2
New Member
 
Marion Sant
Join Date: Dec 2023
Posts: 23
Rep Power: 2
edo2822 is on a distinguished road
Hi,

I will attach the Allwmake log file here.

I also tried to download the newest version of OpenFoam 2312, and then download again the waves2foam package. But when I run a tutorial, I get the same error
Attached Files
File Type: zip make.zip (20.3 KB, 4 views)

Last edited by edo2822; February 17, 2024 at 11:23.
edo2822 is offline   Reply With Quote

Old   September 22, 2024, 20:12
Default
  #3
New Member
 
Sukun Cheng
Join Date: Jul 2023
Posts: 1
Rep Power: 0
sukun.cheng is on a distinguished road
Quote:
Originally Posted by edo2822 View Post
Hi,

I will attach the Allwmake log file here.

I also tried to download the newest version of OpenFoam 2312, and then download again the waves2foam package. But when I run a tutorial, I get the same error
Hi,

The reason is that waves2foam is developed based on older version of GCC, g++ and gfortran compared with the newer openfoam. Try the following script before install waves2foam
apt-get update && apt-get install gcc-9 g++-9 gfortran-9 -y &&\
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90 && \
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 90 && \
update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-9 90 && \
update-alternatives --config gcc && \
update-alternatives --config g++ && \
update-alternatives --config gfortran

Sukun
sukun.cheng is offline   Reply With Quote

Old   September 23, 2024, 11:43
Default
  #4
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,902
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi all,

Just this weekend, I committed a small change to the repository (revision 2157) to support GFortran 11. I hope that this helps for everyone.

Kind regards

Niels
sukun.cheng 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

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
Unable to run 3dTube tutorial in parallel (solids4foam) ff99 OpenFOAM CC Toolkits for Fluid-Structure Interaction 2 June 7, 2023 14:37
[solids4Foam] Unable to run the flexibleOversetCylinder tutorial case Divyaprakash OpenFOAM CC Toolkits for Fluid-Structure Interaction 6 May 25, 2023 11:40
[blockMesh] Unable to run blockMesh for tutorial "cylinder" in OpenFoam bharadwaj1729 OpenFOAM Meshing & Mesh Conversion 4 July 22, 2018 13:03
[OpenFOAM for Windows] Unable to run cavity tutorial Vilma62 OpenFOAM Running, Solving & CFD 1 October 22, 2015 19:30
Problem wirh Axial_Rotor_SRF tutorial run sam.ho OpenFOAM Running, Solving & CFD 0 February 6, 2014 06:30


All times are GMT -4. The time now is 09:29.