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

[foam-extend.org] OpenFOAM-extend 4.1 installation

Register Blogs Community New Posts Updated Threads Search

Like Tree13Likes
  • 5 Post By JETZ
  • 1 Post By sadsid
  • 1 Post By JETZ
  • 1 Post By sadsid
  • 1 Post By JETZ
  • 1 Post By sadsid
  • 1 Post By sadsid
  • 2 Post By sadsid

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 11, 2020, 09:39
Default OpenFOAM-extend 4.1 installation
  #1
New Member
 
Jitish
Join Date: Apr 2020
Posts: 12
Rep Power: 6
JETZ is on a distinguished road
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
JETZ is offline   Reply With Quote

Old   April 13, 2020, 16:27
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
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?
HPE is offline   Reply With Quote

Old   April 13, 2020, 17:16
Default
  #3
New Member
 
Jitish
Join Date: Apr 2020
Posts: 12
Rep Power: 6
JETZ is on a distinguished road
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.
JETZ is offline   Reply With Quote

Old   April 18, 2020, 18:02
Default
  #4
New Member
 
Jitish
Join Date: Apr 2020
Posts: 12
Rep Power: 6
JETZ is on a distinguished road
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.
cryabroad, lpz456, IFX21 and 2 others like this.
JETZ is offline   Reply With Quote

Old   June 15, 2020, 18:38
Default
  #5
Member
 
Join Date: Jan 2017
Posts: 71
Rep Power: 9
sadsid is on a distinguished road
Quote:
Originally Posted by JETZ View Post
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.
So you have two folders for extend 4.1? One in opt\ and one in ~/foam/foam-extend-4.1/ ?
lpz456 likes this.
sadsid is offline   Reply With Quote

Old   June 15, 2020, 18:46
Default
  #6
New Member
 
Jitish
Join Date: Apr 2020
Posts: 12
Rep Power: 6
JETZ is on a distinguished road
Quote:
Originally Posted by sadsid View Post
So you have two folders for extend 4.1? One in opt\ and one in ~/foam/foam-extend-4.1/ ?
Hi no it's only the one folder in the opt\ directory. From then on you can basically use the alias "fe41" to access the foam-extend environment through the terminal.
lpz456 likes this.
JETZ is offline   Reply With Quote

Old   June 15, 2020, 18:58
Default
  #7
Member
 
Join Date: Jan 2017
Posts: 71
Rep Power: 9
sadsid is on a distinguished road
Quote:
Originally Posted by JETZ View Post
Hi no it's only the one folder in the opt\ directory. From then on you can basically use the alias "fe41" to access the foam-extend environment through the terminal.
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?
lpz456 likes this.
sadsid is offline   Reply With Quote

Old   June 15, 2020, 19:06
Default
  #8
New Member
 
Jitish
Join Date: Apr 2020
Posts: 12
Rep Power: 6
JETZ is on a distinguished road
Quote:
Originally Posted by sadsid View Post
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?
What does the error say?

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.
lpz456 likes this.
JETZ is offline   Reply With Quote

Old   June 15, 2020, 19:17
Default
  #9
Member
 
Join Date: Jan 2017
Posts: 71
Rep Power: 9
sadsid is on a distinguished road
Quote:
Originally Posted by JETZ View Post
What does the error say?

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.
Thank you for your concern. I am trying again and will post the error if encounter in this attempt.
lpz456 likes this.
sadsid is offline   Reply With Quote

Old   June 15, 2020, 19:37
Default
  #10
Member
 
Join Date: Jan 2017
Posts: 71
Rep Power: 9
sadsid is on a distinguished road
Quote:
Originally Posted by JETZ View Post
What does the error say?

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.

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.
IFX21 likes this.
sadsid is offline   Reply With Quote

Old   June 15, 2020, 22:49
Default
  #11
Member
 
Join Date: Jan 2017
Posts: 71
Rep Power: 9
sadsid is on a distinguished road
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!!!
JETZ and IFX21 like this.
sadsid is offline   Reply With Quote

Old   April 19, 2024, 14:07
Default
  #12
New Member
 
Milad Bagheri
Join Date: May 2019
Posts: 5
Rep Power: 7
MiladBagheri is on a distinguished road
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.
MiladBagheri is offline   Reply With Quote

Old   April 29, 2024, 18:51
Default
  #13
Member
 
Join Date: May 2016
Posts: 40
Rep Power: 10
esma is on a distinguished road
Quote:
Originally Posted by MiladBagheri View Post
if you install it in your home directory, there should be no issues.
I'm having difficulties to install Foam-Extend (any version) no matter what. I have tried the home directory as well as /opt/ as recommended above and keep receiving the same error message as highlighted below. by home directory, I mean (cd ~) This is very strange. I'm following step-by-step from installation page

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.
esma is offline   Reply With Quote

Reply

Tags
openfoam installation, openfoam-extend-4.0


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
[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


All times are GMT -4. The time now is 12:04.