CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [foam-extend.org] OpenFOAM-extend 4.1 installation (https://www.cfd-online.com/Forums/openfoam-installation/225908-openfoam-extend-4-1-installation.html)

JETZ April 11, 2020 08:39

OpenFOAM-extend 4.1 installation
 
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 https://www.cfd-online.com/Forums/op...u-18-04-a.html, 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

HPE April 13, 2020 15:27

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?

JETZ April 13, 2020 16:16

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 April 18, 2020 17:02

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.

sadsid June 15, 2020 17:38

Quote:

Originally Posted by JETZ (Post 766326)
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/ ?

JETZ June 15, 2020 17:46

Quote:

Originally Posted by sadsid (Post 774644)
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.

sadsid June 15, 2020 17:58

Quote:

Originally Posted by JETZ (Post 774645)
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?

JETZ June 15, 2020 18:06

Quote:

Originally Posted by sadsid (Post 774646)
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.

sadsid June 15, 2020 18:17

Quote:

Originally Posted by JETZ (Post 774647)
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.

sadsid June 15, 2020 18:37

Quote:

Originally Posted by JETZ (Post 774647)
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.

sadsid June 15, 2020 21:49

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


All times are GMT -4. The time now is 11:33.