CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/96668-openfoam-installation.html)

Meisam January 29, 2012 05:28

OpenFOAM Installation
 
Dear friends,
can you help me for OpenFOAM installation, please?
I attempted to install the OpenFOAM, but I could not overcome.
would I should install Debian pack and then install Source pack or in the first step I should install the Source pack? Essentially, what sections of the OpenFoam site should be installed by me?

Thanks a lot.

wyldckat January 29, 2012 10:46

Greetings Meisam and welcome to the forum!

Well, it basically depends on what your goals are. But if you are just getting started, then simply follow the instructions for the Debian pack, assuming of course that you have installed Ubuntu or Debian: http://www.openfoam.org/download/ubuntu.php
The system was broken yesterday, but today it should be working!

Best regards,
Bruno

Meisam January 29, 2012 11:57

Quote:

Originally Posted by wyldckat (Post 341740)
Greetings Meisam and welcome to the forum!

Well, it basically depends on what your goals are. But if you are just getting started, then simply follow the instructions for the Debian pack, assuming of course that you have installed Ubuntu or Debian: http://www.openfoam.org/download/ubuntu.php
The system was broken yesterday, but today it should be working!

Best regards,
Bruno


Thank you Bruno
I think that installing the source pack is necessary, is it?
I explain my installation process in bellow:

1- VERS=`lsb_release -cs`
1- sudo sh -c "echo deb http://www.openfoam.org/download/ubuntu $VERS main >....
2- sudo apt-get update
3- sudo apt-get install openfoam210
but after downloading some files, I encountered with following error:

Failed to fetch http://www.openfoam.com/download/ubu...1_0-1_i386.deb Got a single header line over 360 chars
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?



what do I need to perform?

thanks

wyldckat January 29, 2012 12:27

Mmm... I thought that had already been fixed. I guess that when connections are too far away, they still get bounced around.

OK, the not so pretty way of doing this is to run the following commands... and be sure that you fully copy-paste each line, otherwise it will not work as intended:
Quote:

Originally Posted by wyldckat (Post 341679)
Code:

sudo wget `apt-get -qq --print-uris install openfoam210 | sed "s='\(.*\)'.*=\1="` -P /var/cache/apt/archives/
sudo wget `apt-get -qq --print-uris install paraviewopenfoam3120 | sed "s='\(.*\)'.*=\1="` -P /var/cache/apt/archives/
sudo apt-get install openfoam210 paraviewopenfoam3120

It's not very pretty, but it does the trick ;) And when I say "copy-pasting", I do mean literally copy-pasting these lines, because if you mistype any character, it will not work :(

And you don't need to install the Source pack if you can install the Debian pack... at least until you learn how to use OpenFOAM ;)

Best regards,
Bruno

Meisam January 30, 2012 14:41

Quote:

Originally Posted by wyldckat (Post 341750)
Mmm... I thought that had already been fixed. I guess that when connections are too far away, they still get bounced around.

OK, the not so pretty way of doing this is to run the following commands... and be sure that you fully copy-paste each line, otherwise it will not work as intended:


And you don't need to install the Source pack if you can install the Debian pack... at least until you learn how to use OpenFOAM ;)

Best regards,
Bruno


thanks
I should test it .

Meisam January 31, 2012 03:46

Dear Bruno,
Thanks for your kindness.
I ran these three line in terminal after running the following line :

apt-get install openfoam170

apt-get install paraviewopenfoam380

but I received error comments as follow:

E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?


Do I can install OpenFOAM finally?:o
I need to install that for my thesis.

thanks.

wyldckat January 31, 2012 16:43

Hi Meisam,

I'm not quite certain why you are stepping back into the past and installing that version, but anyway this should work:
Code:

sudo apt-get install openfoam170
sudo  apt-get install paraviewopenfoam380

Notice the sudo command, which will grant super user permissions (namely access as root).

Best regards,
Bruno


All times are GMT -4. The time now is 21:49.