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

OpenFOAM-1.6 install cookbook

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 17, 2010, 06:35
Default
  #301
Member
 
Javed
Join Date: Mar 2010
Location: Mumbai,India
Posts: 32
Rep Power: 16
Javed is on a distinguished road
Hi Sir,
Can u please send me ur script on sk1.javed@gmail.com,
I am not able to download from the link.

Thanks
Javed
Javed is offline   Reply With Quote

Old   March 17, 2010, 06:48
Default
  #302
New Member
 
Join Date: Feb 2010
Posts: 21
Rep Power: 16
jishnusoni is on a distinguished road
Hi,

You could download from this link, according to your system.

I would suggest you download the new Ubuntu 9.10.

http://hvirvel.dk/wp/?p=3

cheers
jish
jishnusoni is offline   Reply With Quote

Old   March 17, 2010, 09:23
Default new script
  #303
Member
 
Fábio César Canesin
Join Date: Mar 2010
Location: Florianópolis
Posts: 67
Rep Power: 16
Canesin is on a distinguished road
Hi all, I have made some changes to the script.. it is attached in this reply
Have made:
- Unification of versions ( 9.10 x64 + 9.10 + 9.04 x64 + 9.04 = installOF )
- Mirror selecting
- Architeture detection (uname is default in ubuntu)
- Ubuntu version detection (based in the third number of kernel)
- General fix for tutorials source (fixing wrong calls to bash)
- Code cleanup

I have send the new script to Mads, he has been very supportive.. I believe that the fix for tutorials IS A MUST because novices will find hard times trying to run the tutorials.

Tested on Ubuntu 9.10 x64 ... PLEASE, HELP TESTING THE SCRIPT.
Attached Files
File Type: gz installOF.tar.gz (1.7 KB, 29 views)
Canesin is offline   Reply With Quote

Old   March 17, 2010, 10:15
Default
  #304
New Member
 
Join Date: Mar 2010
Posts: 14
Rep Power: 16
rahulrp is on a distinguished road
Hi
I am new in ubuntu 9.04 and I am trying to get paraView. I followed following procedure after sourcing the file OpenFOAM-1.6/etc/bashrc.


Compile ParaView. Ship into OpenFOAM/ThirdParty-1.6 and execute

sh makeParaView

Link OpenFOAM ParaView reader and ParaView.

:/$ cd $FOAM_UTILITIES/postProcessing/graphics/PV3FoamReader
:/$ ./Allwclean
:/$ ./Allwmake





But now I am getting following error msg and I'm stucked in it...Pls help m in regard
Thankx..

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
OPENGL_INCLUDE_DIR
used as include directory in directory /home/rahul/OpenFOAM/OpenFOAM-1.6/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader

-- Configuring incomplete, errors occurred!
+ make
make: *** No targets specified and no makefile found. Stop.
rahulrp is offline   Reply With Quote

Old   March 17, 2010, 10:23
Default
  #305
Member
 
Fábio César Canesin
Join Date: Mar 2010
Location: Florianópolis
Posts: 67
Rep Power: 16
Canesin is on a distinguished road
Remove all the folders and try to use the script I have attached in the topic, you need to libqt4-dev, flex and python-dev to compile paraview under Ubuntu...
Please, use the script.. it fix other errors you may find in future.
Canesin is offline   Reply With Quote

Old   March 18, 2010, 01:18
Default
  #306
Member
 
Javed
Join Date: Mar 2010
Location: Mumbai,India
Posts: 32
Rep Power: 16
Javed is on a distinguished road
Thanks Jish,
I have successfully installed the openfoam, thanks a lot for the script u sent.
Can u plz do one more favour just want to know how to open GUI , or any link which can guide for further work.

Thanks a lot again.
Javed
Javed is offline   Reply With Quote

Old   March 18, 2010, 07:26
Default
  #307
New Member
 
Join Date: Feb 2010
Posts: 21
Rep Power: 16
jishnusoni is on a distinguished road
Quote:
Originally Posted by Javed View Post
Thanks Jish,
Can u plz do one more favour just want to know how to open GUI , or any link which can guide for further work.

Hello I dont think there is a GUI for OF 1.6. Its just a terminal window. And to view the results you can open paraview by typing in the command window 'paraFoam'

cheers
jish
jishnusoni is offline   Reply With Quote

Old   March 18, 2010, 08:39
Default
  #308
Member
 
83_Ale_83's Avatar
 
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 17
83_Ale_83 is on a distinguished road
OpenFoam hasn't a GUI, by command window you can type a lots of commands.

Regards
__________________

83_Ale_83 is offline   Reply With Quote

Old   March 18, 2010, 11:40
Default
  #309
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 Javed,

Quote:
Originally Posted by Javed View Post
or any link which can guide for further work.
Check the online official OpenFOAM documentation here.
Or the unofficial wiki here.
Or even what IDdesigner has found so far, he made available here.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 18, 2010, 23:56
Default
  #310
New Member
 
Dian
Join Date: Mar 2010
Posts: 1
Rep Power: 0
deenou is on a distinguished road
Hi,

I'm new in town and I hope the experts here can give me solutions. I have installed openfoam 1.6 in my ubuntu 9.04 and it works, Base configuration ok and Critical System ok. But question left, if I upgrade my ubuntu 9.04 to Ubuntu 9.10 without deleting ubuntu 9.04 are there some configuration systems should be changed to keep my openfoam-1.6 working?

Thank you for your attention.
deenou is offline   Reply With Quote

Old   March 19, 2010, 04:29
Default
  #311
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
sandy is on a distinguished road
Quote:
Originally Posted by 83_Ale_83 View Post
OpenFoam hasn't a GUI, by command window you can type a lots of commands.

Regards
Sure, sir, we can get any information, if we have limitless time and energy and want.
sandy is offline   Reply With Quote

Old   March 19, 2010, 07:33
Default
  #312
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 Dian and welcome to the forum!

Quote:
Originally Posted by deenou View Post
I'm new in town and I hope the experts here can give me solutions. I have installed openfoam 1.6 in my ubuntu 9.04 and it works, Base configuration ok and Critical System ok. But question left, if I upgrade my ubuntu 9.04 to Ubuntu 9.10 without deleting ubuntu 9.04 are there some configuration systems should be changed to keep my openfoam-1.6 working?
It will depend on how you made the installation! Did you follow Mads cookbook script? Did you simply unpack everything from the downloaded packages and it was just plug-N-play? Did you build everything with just the General packages?
I'm asking all of these, because it depends on how you installed OpenFOAM!

So, for the first two hypothesis, just run that block of code I've posted in post #282.
For the third hypothesis, there are two other possibilites: did you build the gcc-4.3.3 that comes with the ThirdParty package or did you use Ubuntu's gcc-4.3.3? Honestly, either one of these should allow continuing to use OpenFOAM+Paraview properly. Or at the very least, just do an ./Allwmake at OpenFOAM-1.6 to make sure it is linked properly. Ditto for Paraview.

Oh, and another thing: is it OpenFOAM-1.6 or OpenFOAM-1.6.x that you installed? Just to make sure

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 21, 2010, 13:41
Default Problem with directory structure
  #313
New Member
 
Aleksey Matyushev
Join Date: Mar 2010
Posts: 10
Rep Power: 16
aleksey is on a distinguished road
Quote:
Originally Posted by Canesin View Post
Hi all, I have made some changes to the script.. it is attached in this reply
Have made:
- Unification of versions ( 9.10 x64 + 9.10 + 9.04 x64 + 9.04 = installOF )
- Mirror selecting
- Architeture detection (uname is default in ubuntu)
- Ubuntu version detection (based in the third number of kernel)
- General fix for tutorials source (fixing wrong calls to bash)
- Code cleanup

I have send the new script to Mads, he has been very supportive.. I believe that the fix for tutorials IS A MUST because novices will find hard times trying to run the tutorials.

Tested on Ubuntu 9.10 x64 ... PLEASE, HELP TESTING THE SCRIPT.
I tried to run this script on a fresh installation of Ubuntu 9.10 x64 and I get this error running Mads script:

FIX up for Ubuntu 9.10
cd: 74: can't cd to /home/aleksey/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/lib64

Somehow the folder structure has changed in the package and I'm not sure if this fix is needed.

And with your script I get

sudo sh ./installOF
-----------------------------------------------------
--------- OpenFOAM 1.6.x Install for Ubuntu ---------
-----------------------------------------------------
Created by..................Mads Reck
Revisions and updates.......Bruno Santos
Anton Kidess
Fabio Canesin
-----------------------------------------------------
What is your Geographical location ? (if not in list, chose closest)
1 - Brazil
2 - US
3 - Germany
4 - Switzerland
5 - Japan
6 - Australia
7 - UK
8 - Italy
9 - China/Taiwan
10 - EXIT INSTALL
-----------------------------------------------------
2
------------------------------------------------------
Your system appears to be x86_64 Acting accordingly
------------------------------------------------------
Making sure that you have all needed libraries
------------------------------------------------------
Apparently we need to run apt-get multiple times to
be SURE that everything is installed
------------------------------------------------------
--Installing dependencies ----------------------------
------------------------------------------------------
------------------------------------------------------
Downloading ThirdParty stuff
------------------------------------------------------
./installOF: 111: [[: not found
./installOF: 146: [[: not found
------------------------------------------------------
Checking installation - you should see NO criticals...
------------------------------------------------------
./installOF: 151: foamInstallationTest: not found

Any help would be appreciated.

Many thanks for all your hard work,
Aleksey
aleksey is offline   Reply With Quote

Old   March 21, 2010, 14:24
Default
  #314
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 Aleksey,

I've already seen some of the errors in Mads latest script versions.
Attached is the 9.10 version with a few fixes for it that should make it fully functional as intended. You'll have to:
Code:
tar -xzf installOF9.10.tar.gz
to unpack the script

As for Fabio's version, he has the latest version in http://code.google.com/p/openfoam-ubuntu/

Currently I'm working on a buffed up version of Fabio's script, and will be posting it later on after doing a few test runs. I'll be posting on Fabio's thread.

Best regards,
Bruno
Attached Files
File Type: gz installOF9.10.tar.gz (1.3 KB, 6 views)
wyldckat is offline   Reply With Quote

Old   March 21, 2010, 14:33
Default
  #315
New Member
 
Aleksey Matyushev
Join Date: Mar 2010
Posts: 10
Rep Power: 16
aleksey is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings Aleksey,

I've already seen some of the errors in Mads latest script versions.
Attached is the 9.10 version with a few fixes for it that should make it fully functional as intended. You'll have to:
Code:
tar -xzf installOF9.10.tar.gz
to unpack the script

As for Fabio's version, he has the latest version in http://code.google.com/p/openfoam-ubuntu/

Currently I'm working on a buffed up version of Fabio's script, and will be posting it later on after doing a few test runs. I'll be posting on Fabio's thread.

Best regards,
Bruno
Thanks for the quick reply Bruno. I tried running this new script and got this error:

sudo sh ./installOF9.10
-----------------------------------------------------
Created by..................Mads Reck
Revisions and updates.......Bruno Santos
Anton Kidess
Fabio Canesin
-----------------------------------------------------
[: 127: x86_64: unexpected operator

Thanks for your continuing help,
Aleksey
openAE Administrator
http://openae.org
aleksey is offline   Reply With Quote

Old   March 21, 2010, 14:59
Default
  #316
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
Sorry about that, I missed the missing quotes in the if for the x86_64 option

Attached is the (hopefully) fixed version.

Additionally, don't run the script with the sudo command on it! The script itself already has sudo where it is needed!

Best,
Bruno

edit: in the post #335 you now have a more up-to-date version.
Attached Files
File Type: gz installOF9.10.tar.gz (1.3 KB, 35 views)
File Type: gz installOF9.04.tar.gz (1.1 KB, 3 views)

Last edited by wyldckat; April 9, 2010 at 09:42. Reason: added the same fixes for architecture detection from 9.10 in 9.04
wyldckat is offline   Reply With Quote

Old   March 21, 2010, 18:27
Default
  #317
New Member
 
Aleksey Matyushev
Join Date: Mar 2010
Posts: 10
Rep Power: 16
aleksey is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Sorry about that, I missed the missing quotes in the if for the x86_64 option

Attached is the (hopefully) fixed version.

Additionally, don't run the script with the sudo command on it! The script itself already has sudo where it is needed!

Best,
Bruno
I actually just got your post, but I tried Fabio's version from the repositories and it worked like a charm. Thanks for all of your guys' help!

Also, I had to run:

. $HOME/.bashrc

To get the bash environment updated after Fabio's script installation. I think it would be a good idea to put that command into the script.

Again, thanks for all your hard work guys on these scripts. OpenFOAM is a wonderful tool but it seems that most users don't even get around to seeing its potential because they get bogged down in the installation. These scripts is exactly what was needed.

When I write my article, I will be sure to source these scripts and the hard working individuals making it all possible.

Aleksey
openAE Administrator
http://openae.org
aleksey is offline   Reply With Quote

Old   March 21, 2010, 19:54
Default
  #318
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
Hello again Aleksey,

Quote:
Originally Posted by aleksey View Post
Also, I had to run:

. $HOME/.bashrc

To get the bash environment updated after Fabio's script installation. I think it would be a good idea to put that command into the script.
Well, actually Mads had that already figured out. If you see Mads latest blog post here, he says to use:
Code:
run the scripts by typing either
. ./installOF9.04
or
. ./installOF9.10
which will implicitly apply the OpenFOAM environment, for both the script, as well as the calling shell. It's something called "sourcing" the script, because you can run either of these commands (on some Linux distros):
Code:
source ./installOF9.10
. ./installOF9.10
Oh, as for when you write your article, you better do some heavy testing first There are some things that sometimes go sour, depending on what the computer's hardware and installed packages are!

Ah, and I suggest roaming the OpenFOAM forum for a couple of hours searching for links to useful sites, because there is a lot of knowledge richness, given by various users for various topics!

Best regards,
Bruno

Last edited by wyldckat; March 21, 2010 at 19:55. Reason: typos...
wyldckat is offline   Reply With Quote

Old   March 21, 2010, 22:20
Default
  #319
New Member
 
Aleksey Matyushev
Join Date: Mar 2010
Posts: 10
Rep Power: 16
aleksey is on a distinguished road
Thanks for all the wonderful information Bruno, this has definitely been a day of learning for me.

I already started rummaging through the OpenFOAM forums (lots of good info). In all honesty this definitely is very different to the commercial CFD codes integrated into software packages such as CATIA and ProE, but seems just as powerful.

As for the article and the scripts...I'm sure these scripts won't work for everyone, but as long as they provide a viable solution to MOST of the users, they deserve special mention. Not to mention that if you just read through them, they give someone more insight as to how to get OpenFOAM more so than the "Read Me".

Thanks again for all your help Bruno!
Aleksey
openAE Adminsitrator
http://openae.org
aleksey is offline   Reply With Quote

Old   March 27, 2010, 12:39
Default
  #320
New Member
 
JohnMichaelKane
Join Date: Mar 2010
Posts: 18
Rep Power: 16
JohnMichaelKane is on a distinguished road
Good afternoon.

Using the script at beginning of thread. OpenFOAM managed to install.

Upon reviewing the make.log, some errors were notice.

Code:
make[1]: Target `application' not remade because of errors.
make[1]: Leaving directory `/home/xxx/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical'
make: *** [thermophysical] Error 2
make: Target `application' not remade because of errors.
xxx= is used in place of user name.

The machine used is running a stock and fully updated Ubuntu 9.10 install.

Are errors normal when running said script?
Could said error be eliminated?
JohnMichaelKane 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
install OpenFoam 1.6 by building source: how? niudie OpenFOAM Installation 13 April 26, 2011 01:48
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 15:43
install openfoam 1.6 on opensuse 11.0 andresbh OpenFOAM Installation 8 September 30, 2009 01:48
Install openFOAM 1.6 on debian 32bit - blockMesh: command not found fossy OpenFOAM Installation 1 August 28, 2009 05:06
Install of OpenFOAM 1.6 Error 1 Error 2 & run tutorial potac OpenFOAM Installation 3 August 27, 2009 10:04


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