|
[Sponsors] |
[waves2Foam] Trying to compile the Wave2Foam tools in the OF-3.0.1 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 20, 2016, 10:17 |
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 |
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 example for me: Code:
sudo chown -R phmusi:phmusi /opt/openfoam30/platforms/linux64GccDPInt32Opt/bin/ 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 |
|
May 24, 2016, 04:08 |
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 |
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 |
|
May 24, 2016, 04:49 |
|
#3 |
New Member
Pierre-Henri Musiedlak
Join Date: Dec 2015
Posts: 11
Rep Power: 10 |
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 |
|
May 24, 2016, 06:04 |
|
#4 | |
New Member
Chun-Han Ko
Join Date: Apr 2016
Posts: 8
Rep Power: 10 |
Quote:
best regards, Peter Ko |
||
May 24, 2016, 06:33 |
|
#5 |
New Member
Pierre-Henri Musiedlak
Join Date: Dec 2015
Posts: 11
Rep Power: 10 |
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 |
|
May 25, 2016, 04:38 |
|
#6 |
New Member
Chun-Han Ko
Join Date: Apr 2016
Posts: 8
Rep Power: 10 |
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 |
|
May 25, 2016, 04:44 |
|
#7 |
New Member
Pierre-Henri Musiedlak
Join Date: Dec 2015
Posts: 11
Rep Power: 10 |
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 |
|
May 25, 2016, 04:44 |
|
#8 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,901
Rep Power: 37 |
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 |
|
May 28, 2016, 02:04 |
|
#9 | |
New Member
Chun-Han Ko
Join Date: Apr 2016
Posts: 8
Rep Power: 10 |
Quote:
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 |
||
|
|
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 |