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

OpenFOAM Installation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 29, 2012, 05:28
Default OpenFOAM Installation
  #1
New Member
 
Meisam
Join Date: Jan 2012
Posts: 4
Rep Power: 14
Meisam is on a distinguished road
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.
Meisam is offline   Reply With Quote

Old   January 29, 2012, 10:46
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Old   January 29, 2012, 11:57
Default
  #3
New Member
 
Meisam
Join Date: Jan 2012
Posts: 4
Rep Power: 14
Meisam is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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
Meisam is offline   Reply With Quote

Old   January 29, 2012, 12:27
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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 View Post
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
__________________
wyldckat is offline   Reply With Quote

Old   January 30, 2012, 14:41
Default
  #5
New Member
 
Meisam
Join Date: Jan 2012
Posts: 4
Rep Power: 14
Meisam is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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 is offline   Reply With Quote

Old   January 31, 2012, 03:46
Default
  #6
New Member
 
Meisam
Join Date: Jan 2012
Posts: 4
Rep Power: 14
Meisam is on a distinguished road
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?
I need to install that for my thesis.

thanks.
Meisam is offline   Reply With Quote

Old   January 31, 2012, 16:43
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Reply


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.com] OpenFOAM 1.7.1 installation on LINUX UBUNTU 10.10 electrosin OpenFOAM Installation 40 May 31, 2016 06:11
Installation of OpenFOAM 1.7.1 to OprnSUSE 11.2 superfxfund OpenFOAM Installation 3 November 11, 2010 03:15
OpenFOAM Installation Ubuntu 9.04 Problems Sumontro OpenFOAM Installation 8 July 21, 2009 22:40
Some Query on Installation of OpenFoam lzgwhy OpenFOAM Installation 1 July 15, 2009 04:20
Problem in installation of OpenFOAM sachin OpenFOAM Installation 7 January 22, 2008 02:40


All times are GMT -4. The time now is 14:59.