|
[Sponsors] |
[foam-extend.org] OpenFOAM-extend 4.1 installation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 11, 2020, 09:39 |
OpenFOAM-extend 4.1 installation
|
#1 |
New Member
Jitish
Join Date: Apr 2020
Posts: 12
Rep Power: 6 |
Hi everyone
I have followed the instrucations on this page https://openfoamwiki.net/index.php/I...oam-extend-4.1 for the installation , but whenever I get to the source etc/bashrc line the terminal throws the errors listed below bash: /opt/foam-extend-4.1/bin/foamGetSystemInfo: No such file or directory bash: /opt/foam-extend-4.1/bin/foamCleanPath: No such file or directory bash: /opt/foam-extend-4.1/bin/foamCleanPath: No such file or directory bash: /opt/foam-extend-4.1/bin/foamCleanPath: No such file or directory bash: /opt/foam-extend-4.1/etc/settings.sh: No such file or directory bash: /opt/foam-extend-4.1/etc/aliases.sh: No such file or directory bash: /opt/foam-extend-4.1/bin/foamCleanPath: No such file or directory bash: /opt/foam-extend-4.1/bin/foamCleanPath: No such file or directory bash: /opt/foam-extend-4.1/bin/foamCleanPath: No such file or directory I have even tried looking on this forum How to install foam-extend 4.0 in UBUNTU 18.04, but still have no luck. I then found this page https://pingpong.chalmers.se/public/...ml?language=en followed those instrucations and I still get the same errors. Can anyone please help me, and any other individual who is struggling with this. If it makes a difference I already have openFOAM v7 installed. I am fairly new to ubuntu and openfoam, so maybe I am misunderstanding something. Thanks in advance |
|
April 13, 2020, 16:27 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
Depends on what you want. foam-extend and OpenFOAM-Foundation are not the same.
Might look at the links below for the foam-extend issue link, may be asking the installation question there might help?
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
April 13, 2020, 17:16 |
|
#3 |
New Member
Jitish
Join Date: Apr 2020
Posts: 12
Rep Power: 6 |
Thanks, tried looking around at the forums you recommended. I've had no luck so far.
The thing is I can even install Foam-extend 4.0 but even that was giving me the same error. I am busy doing a Udemy course and its focussed on materials as well as structure https://www.udemy.com/course/the-com...chanics/learn/ The instructor here uses Foam-extend 4.0, and I have even tried using his installation process(same as instructed on the site) but still got those errors. I will try installing 4.0 via the .deb package and see if anything differs. Thanks for the help. |
|
April 18, 2020, 18:02 |
|
#4 |
New Member
Jitish
Join Date: Apr 2020
Posts: 12
Rep Power: 6 |
The solution was to basically move my foam-extend folder from ~\foam\foam-extend-4.1 to opt\foam-extend-4.1.
Basically use sudo mkdir foam-extend-4.1 in the opt folder, Then sudo chown (username)/opt/foam-extend-4.1 followed by mv ~/foam/foam-extend-4.1/* /opt/foam-extend-4.1/ This was suggested to me by someone on the openfoam discord server, it worked first time. Pity the installation instructions on the foam-extend page lead to something incorrect. |
|
June 15, 2020, 18:38 |
|
#5 | |
Member
Join Date: Jan 2017
Posts: 71
Rep Power: 9 |
Quote:
|
||
June 15, 2020, 18:46 |
|
#6 |
New Member
Jitish
Join Date: Apr 2020
Posts: 12
Rep Power: 6 |
||
June 15, 2020, 18:58 |
|
#7 |
Member
Join Date: Jan 2017
Posts: 71
Rep Power: 9 |
If I keep folder in opt and delete the other folder then still I get some error. Once I keep both then I do not see any error. It is a little confusing. Can you post all the steps that you followed?
|
|
June 15, 2020, 19:06 |
|
#8 | |
New Member
Jitish
Join Date: Apr 2020
Posts: 12
Rep Power: 6 |
Quote:
I will get back to you with the steps, it'd quite late where I am and don't have my PC on me. But I'll respond once I wake in the morning with regards to the steps. For the most part though I executed the EXACT steps I typed above. The other thing you could do is access your bashrc file in your home directory and using a text editor of your choice create the bash alias in that file. Note this is a hidden text file so select the option to see hidden files and folders and look for the bashrc file. Then create the alias there. Else I will reply in about 12-14 hours with guided steps. |
||
June 15, 2020, 19:17 |
|
#9 | |
Member
Join Date: Jan 2017
Posts: 71
Rep Power: 9 |
Quote:
|
||
June 15, 2020, 19:37 |
|
#10 | |
Member
Join Date: Jan 2017
Posts: 71
Rep Power: 9 |
Quote:
If I copy only in opt folder then I get the following error: bash: /home/sad/foam/foam-extend-4.0/bin/foamGetSystemInfo: No such file or directory bash: /home/sad/foam/foam-extend-4.0/bin/foamCleanPath: No such file or directory bash: /home/sad/foam/foam-extend-4.0/bin/foamCleanPath: No such file or directory bash: /home/sad/foam/foam-extend-4.0/bin/foamCleanPath: No such file or directory bash: /home/sad/foam/foam-extend-4.0/etc/settings.sh: No such file or directory bash: /home/sad/foam/foam-extend-4.0/etc/aliases.sh: No such file or directory bash: /home/sad/foam/foam-extend-4.0/bin/foamCleanPath: No such file or directory bash: /home/sad/foam/foam-extend-4.0/bin/foamCleanPath: No such file or directory bash: /home/sad/foam/foam-extend-4.0/bin/foamCleanPath: No such file or directory And if I save the folder in /home/sad then I get the following: bash: /opt/foam-extend-4.0/bin/foamGetSystemInfo: No such file or directory bash: /opt/foam-extend-4.0/bin/foamCleanPath: No such file or directory bash: /opt/foam-extend-4.0/bin/foamCleanPath: No such file or directory bash: /opt/foam-extend-4.0/bin/foamCleanPath: No such file or directory bash: /opt/foam-extend-4.0/etc/settings.sh: No such file or directory bash: /opt/foam-extend-4.0/etc/aliases.sh: No such file or directory bash: /opt/foam-extend-4.0/bin/foamCleanPath: No such file or directory bash: /opt/foam-extend-4.0/bin/foamCleanPath: No such file or directory bash: /opt/foam-extend-4.0/bin/foamCleanPath: No such file or directory If I save copy in each folder and try to compile then my compilation works. I already added alias fe40='source /opt/foam-extend-4.0/etc/bashrc ' in my bashrc file. |
||
June 15, 2020, 22:49 |
|
#11 |
Member
Join Date: Jan 2017
Posts: 71
Rep Power: 9 |
HI, I resolved the issue. I deleted both copies, restarted my system and downloaded the fresh copy in /opt folder. Now compilation is completed and alias--->fe40 is working perfectly.
I will now test some tutorials.. Thank you!!! |
|
April 19, 2024, 14:07 |
|
#12 |
New Member
Milad Bagheri
Join Date: May 2019
Posts: 5
Rep Power: 7 |
If you're still experiencing this issue with foam-extend-4.0 or foam-extend-5.0, it may be because the default installation directory is "~". Traditionally, students would compile in their home directory and run simulations on their desktop. 😄
For instance, the default installation directory for ESI is now in the /lib/ directory, while for Foundation, it's in /opt/. Apparently, they can't even agree on directories! 😄 Regarding the solution, if you install it in your home directory, there should be no issues. Otherwise, open the file foam-extend-5.0/etc/bashrc and either comment out or replace the line WM_PROJECT_DIR=$WM_PROJECT_INST_DIR/$WM_PROJECT-$WM_FORK-$WM_PROJECT_VERSION with WM_PROJECT_DIR=/opt/foam-extend-5.0 if you're installing it in /opt/. If it's another directory, just replace it with your chosen directory where you cloned it. |
|
April 29, 2024, 18:51 |
|
#13 | |
Member
Join Date: May 2016
Posts: 40
Rep Power: 10 |
Quote:
please note I have OF2206 & OF9 on my machine too and incorporated alias in ~/.bashrc to switch between them. Wondering if there is anything to do with that? i.e. having other versions of OF creates the problem? Also, I need the extend version to be able to use its FSI features. Wondering if there is any other OF package that handles that? Error: Current directory is not $WM_PROJECT_DIR The environment variables are not consistent with the installation. Please source configuration files. Examples: bash: . etc/bashrc tcsh: source etc/cshrc If you sourced the configuration files, please check the 'foamInstall' entry. |
||
Tags |
openfoam installation, openfoam-extend-4.0 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Using OpenFOAM 2.3.0 from Deb pack in Ubuntu 14.04 + ParaView 5 from OpenFOAM 4.1 | ad2eb | OpenFOAM Installation | 12 | May 28, 2017 15:30 |
[Other] Installation of OpenFOAM: Docker or not Docker? | zt49 | OpenFOAM Installation | 2 | December 22, 2016 11:38 |
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | January 5, 2016 04:18 |
OpenFoam 2.0.0 installation | Jan_Peters | OpenFOAM Installation | 86 | April 27, 2012 06:32 |
Problem installing OpenFOAM 1.5 installation on RHEL 4. | vwsj84 | OpenFOAM Installation | 4 | April 23, 2009 05:48 |