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

[waves2Foam] Trying to compile the Wave2Foam tools in the OF-3.0.1

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 20, 2016, 10:17
Default Trying to compile the Wave2Foam tools in the OF-3.0.1
  #1
New Member
 
Pierre-Henri Musiedlak
Join Date: Dec 2015
Posts: 11
Rep Power: 10
phmusi is on a distinguished road
Hello everyone,

After a bit of struggle, I want to share with you the way I manage to compile waves2Foam with openFOAM 3.0.1 (which is the one recommended nowadays by openfoam.org)

- Error in solver 301 " No solver 301"
=> change name of the folder waves2foam/applications/solvers/solver300 to solver301

Then I get a second error in compiling the solvers waveFoam "ld permission denied in the directory /opt/openfoam30/platforms/linux64GccDPInt32Opt/bin/"
=> before running the ./Allwmake :
Code:
sudo chown -R username:username /path/to/the/directory
(more info on: http://askubuntu.com/questions/46660...mission-denied

example for me:
Code:
sudo chown -R phmusi:phmusi /opt/openfoam30/platforms/linux64GccDPInt32Opt/bin/
Now everything seems to compile correctly

Then in order to run the tutorial waveFoam/waveFlume, add the line:
Code:
div(((rho*nuEff)*dev2(T(grad(U)))))

in the dictionary system/fvSchemes.divSchemes
like in the damBreak user-guide: http://cfd.direct/openfoam/user-guide/dambreak/

Cheers

Last edited by wyldckat; August 25, 2018 at 08:47. Reason: Added [CODE][/CODE] markers
phmusi is offline   Reply With Quote

Old   May 24, 2016, 04:08
Default Trying to compile the Wave2Foam tools in the OF-3.0.1
  #2
New Member
 
Chun-Han Ko
Join Date: Apr 2016
Posts: 8
Rep Power: 10
Peter Ko is on a distinguished road
Hi there,

I had trying to compile the Wave2Foam tools in the OF-3.0.1,
but it seems that the path was wrong or the files loses.

attachment is the log by Allwmake

Any common will be very helpful! I will really appreciate it.

Best Regards,
Peter Ko
Attached Files
File Type: txt log.txt (5.0 KB, 13 views)
Peter Ko is offline   Reply With Quote

Old   May 24, 2016, 04:49
Default
  #3
New Member
 
Pierre-Henri Musiedlak
Join Date: Dec 2015
Posts: 11
Rep Power: 10
phmusi is on a distinguished road
Hello Peter,

The log.txt only shows what has worked - so it is difficult to conclude anything

But if it is link to a wrong path, the first step to look is the waves2Foam/bin/bashrc: "user defined environmental variables"

Cheers

Pierre-Henri
phmusi is offline   Reply With Quote

Old   May 24, 2016, 06:04
Default
  #4
New Member
 
Chun-Han Ko
Join Date: Apr 2016
Posts: 8
Rep Power: 10
Peter Ko is on a distinguished road
Quote:
Originally Posted by phmusi View Post
Hello Peter,

The log.txt only shows what has worked - so it is difficult to conclude anything

But if it is link to a wrong path, the first step to look is the waves2Foam/bin/bashrc: "user defined environmental variables"

Cheers

Pierre-Henri
Thanks for your kindly reply, I upload another error log, I just can't figure out that the application can't found the commands, is that I put the waveFoam.C in the wrong folder? OR I totally download the wrong edition of waves2Foam tool box?? my OF is -3.0.1

best regards,

Peter Ko
Attached Files
File Type: txt error Log.txt (425 Bytes, 10 views)
Peter Ko is offline   Reply With Quote

Old   May 24, 2016, 06:33
Default
  #5
New Member
 
Pierre-Henri Musiedlak
Join Date: Dec 2015
Posts: 11
Rep Power: 10
phmusi is on a distinguished road
You don't have compiled waves2foam - obviously as nothing seems to work

Let's try to sort this out: (I supposed you are on linux and you had follow the steps to install openFOAM)
1/ be sure your OpenFOAM 3.0.1 is working: run the damBreak tutorial for example
At this point you have a folder opt/openfoam30
and home/OpenFOAM/username-3.0.1/run

2/ Download waves2Foam with all the dependencies
This gives you a waves2Foam/ folder in home/

3/ Copy-paste it in home/OpenFOAM/username-3.0.1/

4/ Go in home/OpenFOAM/username-3.0.1/waves2Foam/bin and edit the bashrc ###User Defined Environmental variables
it looks like this for me:
### USER DEFINED ENVIRONMENTAL VARIABLES
export WAVES_DIR=$WM_PROJECT_USER_DIR/waves2Foam
export WAVES_APPBIN=$FOAM_USER_APPBIN
export WAVES_LIBBIN=$FOAM_USER_LIBBIN

save and close it

5/ in a terminal command enter the waves2Foam folder and run ./Allwclean then ./Allwmake
(good to clean before make if you made any changes)

6/ Go back up on this page and follow the instruction I wrote previously OpenFOAM 3.0.1 with waves2Foam : issues compiling solved

7/ Hope it works

Pierre-henri
phmusi is offline   Reply With Quote

Old   May 25, 2016, 04:38
Default
  #6
New Member
 
Chun-Han Ko
Join Date: Apr 2016
Posts: 8
Rep Power: 10
Peter Ko is on a distinguished road
Hi phmusi, cause I still cannot found the folder "opt", so I re-install the OF-3.0.1 and encounter the problems as follows...
(further explain: I was completed the several tutorial tasks, like dambreak and etc.)
root@Linux-PC:~/OpenFOAM# uname -m
x86_64
root@Linux-PC:~/OpenFOAM# source $HOME/OpenFOAM/OpenFOAM-3.0.1/etc/bashrc WM_LABEL_SIZE=64
bash: /opt/OpenFOAM-3.0.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-3.0.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-3.0.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-3.0.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-3.0.1/etc/config/settings.sh: No such file or directory
bash: /opt/OpenFOAM-3.0.1/etc/config/aliases.sh: No such file or directory
bash: /opt/OpenFOAM-3.0.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-3.0.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-3.0.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-3.0.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-3.0.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-3.0.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-3.0.1/bin/foamCleanPath: No such file or directory
root@Linux-PC:~/OpenFOAM#


How should I do to solve this problems?? I need to create the folder "opt" myself??? or the package which I download was wrong?? I very sure that I do the some command as the "https://openfoamwiki.net/index.php/Installation/Linux/OpenFOAM-3.0.1/Ubuntu" told

best regards to every one,
Peter Ko
Peter Ko is offline   Reply With Quote

Old   May 25, 2016, 04:44
Default
  #7
New Member
 
Pierre-Henri Musiedlak
Join Date: Dec 2015
Posts: 11
Rep Power: 10
phmusi is on a distinguished road
Hello Peter,

This is how you should install OpenFOAM on linux :

http://openfoam.org/download/3-0-1-ubuntu/

Ths opt/ folder is a folder already existing in Ubuntu (one of the basic folder) so you must have it

Pierre-Henri
phmusi is offline   Reply With Quote

Old   May 25, 2016, 04:44
Default
  #8
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
Good morning,

@Pierre-Henri: Thanks for helping out with the compilation issues.

Kind regards,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.

Last edited by wyldckat; August 25, 2018 at 08:44. Reason: removed answers to other posts that were on the main thread
ngj is offline   Reply With Quote

Old   May 28, 2016, 02:04
Default
  #9
New Member
 
Chun-Han Ko
Join Date: Apr 2016
Posts: 8
Rep Power: 10
Peter Ko is on a distinguished road
Quote:
Originally Posted by phmusi View Post
Hello Peter,

This is how you should install OpenFOAM on linux :

http://openfoam.org/download/3-0-1-ubuntu/

Ths opt/ folder is a folder already existing in Ubuntu (one of the basic folder) so you must have it

Pierre-Henri
Hi Phmusi, first, thank you for your kindly replied, and I was re-install the system and OF-3.0.1
I was fallow your steps, it's was clearly.
However I still encounter some errors.
In the step 5, the command ./Allwclean will kept my machine running for 1 day and all I can do was shut the terminal down.
Than I do the command ./Allwmake, it was encounter the error in the end.
like:
make[1]: *** [/home/peter/OpenFOAM/peter-3.0.1/platforms/linux64GccDPInt32Opt/bin/postProcessWaves2Foam] Error 1
make[1]: Leaving directory `/home/peter/OpenFOAM/peter-3.0.1/waves2Foam/applications/utilities/postProcessing/postProcessWaves2Foam'
make: *** [postProcessWaves2Foam] Error 2

=====================================
COMPILATION DONE
=====================================

If I ignore the errors, I tried to run the waveFlume->blockMesh
I got my core dumped as fallows:


/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 3.0.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 3.0.1-119cac7e8750
Exec : blockMesh
Date : May 28 2016
Time : 13:35:06
Host : "Peter-Linux"
PID : 17691
Case : /home/peter/OpenFOAM/peter-3.0.1/waves2Foam/tutorials/waveFoam/waveFlume
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

fileName::stripInvalid() called for invalid fileName 0
For debug level (= 2) > 1 this is considered fatal
Aborted (core dumped)


Does anyone got the same dilemma??

Any recommendations would be very thankful

Best regards,
Peter Ko
Peter Ko 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
[waves2Foam] How to compile waveDyMFoam in openfoam 3.0.1 Yage OpenFOAM Community Contributions 0 January 8, 2017 08:41
[OpenFOAM.org] Failed to compile OpenFOAM 3.0.1 with icc xuegy OpenFOAM Installation 1 July 13, 2016 16:03
New Tools Section pete Site News & Announcements 0 April 9, 2011 18:32
PV3FoamReader compile error.... PEM_GUY OpenFOAM Installation 6 April 5, 2010 17:22
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 21:51


All times are GMT -4. The time now is 15:35.