|
[Sponsors] |
[OpenFOAM.com] Ubuntu 14.04: installation going bizzard |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 12, 2016, 09:59 |
Ubuntu 14.04: installation going bizzard
|
#1 |
Senior Member
|
I just hope that ESI is not trying to follow other companies' steps and make the OF installation harder with every new version.
I have v2.4 installed, it took some time to build and make back in the day but every little step was very clear. With version 3.0+ they have included new (LES)kwSST models, which I prefer rather than SA-IDDES. I have tried to install this new version, without removing the previous one (just in case) ... and I'm glad of my decision. First of all, the Docker way is rubbish. Once I exited the docker environment I couldn't find the example icoFoam cavity simulation. If the advise not to run graphics when inside Docker, anything generated in there should be easily available. Therefore, I decided to install OF from source. The first strange thing I've noticed, the source (tar.gz) was rather smaller than older versions. Now, my problem is I cannot install following the (very small) instructions provided in the webpage. Could anyone, PLEASE, either share with me good instructions for installation? or, improve that URL (http://www.openfoam.com/code/build-guide.php) so we don't become dissapointed and stop using OpenFOAM? Thanks! |
|
April 12, 2016, 19:35 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Quick question: If you roughly follow the instructions given at the following wiki page for OpenFOAM 3.0.1: https://openfoamwiki.net/index.php/I...u#Ubuntu_14.04 - doesn't it work with OpenFOAM+ 3.0+ as well? I haven't had the time needed to try this myself
As for improving the instructions at http://openfoam.com, it's best that you report this directly at their bug tracker: http://www.openfoam.com/code/bug-reporting.php |
|
April 12, 2016, 21:33 |
|
#3 |
Senior Member
|
Thanks wyldckat,
I will test those instructions tomorrow and let you know. Carlos |
|
April 13, 2016, 07:02 |
|
#4 |
Senior Member
|
Thanks again Wyldckat!
Following the instructions at https://openfoamwiki.net/index.php/I...u#Ubuntu_14.04 and going into the first link http://www.openfoam.org/download/ubuntu.php to install OpenFOAM-3.0.1 as a new installation has worked just fine. "Worked just fine"? Installation has gone smoothly, a couple of tutorial cases have worked ok, paraview4.4.0 has opened with paraFoam command, and I have been able to open an old case of mine with paraFoam too. cheers!!! C. |
|
April 13, 2016, 12:42 |
|
#5 |
Senior Member
|
well, sad to say this.
But the 3.0.1 version you have helped me to install is not the one I was interested in. You see, I want to use the new DES models implemented in 3.0+, namely, kOmegaSST DES, DDES and IDDES. And, these are not available in version 3.0.1. What is going on? is ESI following the steps of other software companies ???? |
|
April 13, 2016, 13:19 |
|
#6 |
Senior Member
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 10 |
Binaries for openfoam-v3.0+ is available via docker only. If you donot want to use docker then you have to compile OpenFOAM source code by yourself. You can follow simple instruction from here
http://openfoam.com/documentation/sy...quirements.php Also in docker environment, you are supposed to copy tutorial from their default location to your home area and then run it . Then even when you excited docker environment , tutorial will be there . Parafoam work fine in docker environment . |
|
April 16, 2016, 15:33 |
|
#7 | |||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@Carlos: I've learned over the years with OpenFOAM that every single detail, no matter how small, is more important than we want it to be. For example, "9.81" and "98.1" is not the same, but failing to notice that the dot is in the wrong place, is the difference between Earth's standard gravity versus 10 times Earth's gravity. Quote:
Quote:
Nonetheless, I've finally managed to take a look into this and here is the wiki page that has the detailed instructions on how to install OpenFOAM+ 3.0+ from source code in Ubuntu 14.04 and they are now written here: http://openfoamwiki.net/index.php/In...M+-3.0+/Ubuntu It's not as simple as installing via apt-get, but it's the next best thing, since you only have to follow each step... very carefully follow each step Quote:
Best regards, Bruno
__________________
|
||||
April 19, 2016, 15:03 |
|
#8 |
Senior Member
|
Thanks Bruno,
I will follow the steps in that wiki link you sent me I just hope that ESI does not step into darkness (for us) when submerged in that evolutionary quest cheers! |
|
April 19, 2016, 15:44 |
|
#9 |
Senior Member
|
well ...
following the steps exactly as they are written in that link does not work. when i get to step 6 "For building OpenFOAM+ itself, it depends on whether you have installed the i686 or x86_64 architecture of Ubuntu." I run the command for my x86_64 architecture, namely: "source $HOME/OpenFOAM/OpenFOAM-v3.0+/etc/bashrc" ... getting the following error messages: -bash: /opt/OpenFOAM-v3.0+/bin/foamEtcFile: No such file or directory -bash: /opt/OpenFOAM-v3.0+/bin/foamCleanPath: No such file or directory -bash: /opt/OpenFOAM-v3.0+/bin/foamCleanPath: No such file or directory -bash: /opt/OpenFOAM-v3.0+/bin/foamCleanPath: No such file or directory -bash: /opt/OpenFOAM-v3.0+/etc/config/settings.sh: No such file or directory -bash: /opt/OpenFOAM-v3.0+/etc/config/aliases.sh: No such file or directory -bash: /opt/OpenFOAM-v3.0+/bin/foamEtcFile: No such file or directory -bash: /opt/OpenFOAM-v3.0+/bin/foamEtcFile: No such file or directory -bash: /opt/OpenFOAM-v3.0+/bin/foamEtcFile: No such file or directory -bash: /opt/OpenFOAM-v3.0+/bin/foamEtcFile: No such file or directory -bash: /opt/OpenFOAM-v3.0+/bin/foamCleanPath: No such file or directory -bash: /opt/OpenFOAM-v3.0+/bin/foamCleanPath: No such file or directory -bash: /opt/OpenFOAM-v3.0+/bin/foamCleanPath: No such file or directory i'm inside my ~/OpenFOAM folder (at home) So, I imagine I should have OF30+ folder in /opt/. ... I run the previous command again, getting a different message this time: -bash: /home/carlos/OpenFOAM/OpenFOAM-v3.0+/etc/bashrc: No such file or directory I move the folder back again to where the instructions say the .tar.gz file should be extracted, and try to follow step 7: "Save an alias in the personal .bashrc file, simply by running the following command" ... no error message this time. Next step, though, step 8: "cd $WM_THIRD_PARTY_DIR" gives a new error: "-bash: cd: /opt/ThirdParty-v3.0+: No such file or directory" Why 'it' keeps looking into /opt/ directory when the instructions tell us to work under home? I'll just go into the ThirdParty folder extracted from .tar.gz into ~/OpenFOAM/ the usual way: "cd ThirdParty-v3.0+" and keep following instructions. But, a new error, actually the same as before appears in step 8 when running "wmSET $FOAM_SETTINGS" and, that is: "-bash: /opt/OpenFOAM-v3.0+/etc/bashrc: No such file or directory" So ... conclusion ... I will try 3.0+ in a few months when they fix the installation procedure. Installation steps that ESI has inherited from OpenFOAM, they just need to build onto it ... good luck to them ... |
|
April 19, 2016, 19:05 |
|
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Quick answer: The problem is that the other installations of OpenFOAM that you have are in conflict with OpenFOAM+, but not in the way you're thinking... the problem is common with any OpenFOAM version, when the installation folders are very different, due to the definition made in the shell variable "FOAM_INST_DIR". For more details, you can read this page: http://openfoamwiki.net/index.php/In...with_the_Shell
As for fixing the current problem, please edit the file "~/.bashrc" and change this line: Code:
source /opt/openfoam30/etc/bashrc Code:
alias of30="source /opt/openfoam30/etc/bashrc" Code:
of30 Now, going back to trying to install 3.0+, start a new terminal and try the steps again starting from and including step #6. |
|
April 20, 2016, 05:12 |
|
#11 |
Senior Member
|
Still getting errors in step 8
I don't think it's a matter of defining alias at this point, when no installation has been finalized yet. The installation instructions tell me to work under /home/.../OpenFOAM/, but I get errors because files in /opt/OpenFOAM-v3.0+/ are not found. command of30+ gives me the same type of error of files not found. This I might understand since the installation has not been done yet. |
|
April 20, 2016, 18:23 |
|
#12 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128 |
Not so quick answer: If you want to understand a bit better what is going on wrong, run this command:
Code:
echo $FOAM_INST_DIR Code:
/opt Code:
wmUNSET echo $FOAM_INST_DIR Now try running this command: Code:
of30+ Now start a new terminal and try running this command again: Code:
echo $FOAM_INST_DIR Then run this command: Code:
of30+ So, what happened? Because you have a lost source command in the file "~/.bashrc", you are automatically loading the shell environment for a specific OpenFOAM version, namely the one installed at "/opt". |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] OpenFOAM 3.0.1 installation on Ubuntu 14.04 | Hrushi | OpenFOAM Installation | 6 | July 8, 2017 19:47 |
[OpenFOAM.org] Ubuntu 14.04 LTS OpenFoam 4.1 Installation Error | behzad-cfd | OpenFOAM Installation | 2 | March 5, 2017 03:44 |
[Other] Problem in Open foam installation in ubuntu 14.04 | zannatul | OpenFOAM Installation | 2 | November 3, 2014 21:56 |
foam-extend-3.0 installation in Ubuntu 14.04 | Maimouna | OpenFOAM Installation | 2 | May 16, 2014 12:23 |
Installation of OF 2.3.0 on Ubuntu 14.04 LTS | marluc | OpenFOAM Installation | 1 | May 15, 2014 09:38 |