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 27, 2010, 15:37
Default
  #321
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 JohnMichaelKane,

Check my post #316, which has a fixed version of the script. Mads hasn't gotten around to fix it yet.

Additionally, that last message from "make.log" only indicates that one or more applications didn't build.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 27, 2010, 16:10
Default
  #322
New Member
 
JohnMichaelKane
Join Date: Mar 2010
Posts: 18
Rep Power: 16
JohnMichaelKane is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings JohnMichaelKane,

Check my post #316, which has a fixed version of the script. Mads hasn't gotten around to fix it yet.

Additionally, that last message from "make.log" only indicates that one or more applications didn't build.

Best regards,
Bruno
Good afternoon.

Thank you for taking time to answer. I will try the script in your post, using a clean install.

Additionally, I apologize. I may not have included the complete error message from "make.log"

Good day.
JohnMichaelKane is offline   Reply With Quote

Old   March 28, 2010, 08:12
Default
  #323
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18
MadsR is on a distinguished road
Hi guys,

Sorry for not updating the script, I have put Brunos latest updates in and I hope that it works now. Also I am sorry for website problems...clearly hosting my own website wasn't the way to go :-) I have now bought a commercial webhotel again and hopefully it will be up and running before easter. Thanks for all the encouraging comments and the great interest in this script, keep posting updates and user experiences.

Cheers,
Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Old   March 28, 2010, 22:24
Default
  #324
New Member
 
JohnMichaelKane
Join Date: Mar 2010
Posts: 18
Rep Power: 16
JohnMichaelKane is on a distinguished road
Quote:
Originally Posted by MadsR View Post
Hi guys,

Sorry for not updating the script, I have put Brunos latest updates in and I hope that it works now. Also I am sorry for website problems...clearly hosting my own website wasn't the way to go :-) I have now bought a commercial webhotel again and hopefully it will be up and running before easter. Thanks for all the encouraging comments and the great interest in this script, keep posting updates and user experiences.

Cheers,
Mads
Good Evening.

I re-ran the updated script, using a clean install.

Upon completion, a review of make.log, and terminal output showed no critical issues.

Additionally, I think the current script is spot on.

Thanks Bruno, and Mads.
JohnMichaelKane is offline   Reply With Quote

Old   March 31, 2010, 13:16
Default
  #325
New Member
 
JohnMichaelKane
Join Date: Mar 2010
Posts: 18
Rep Power: 16
JohnMichaelKane is on a distinguished road
Good afternoon

Using the updated script, and removing the call for git, as it seems to have been depreciated in 10.04, and leaving call for git-core. OpenFOAM managed to install on a clean install of Ubuntu 10.04 beta1.

Upon completion, a review of make.log, and terminal output showed Base configuration ok. Critical systems ok.

This would seem to indicate, that with some minor modifications the script could work on the next Ubuntu release.
JohnMichaelKane is offline   Reply With Quote

Old   March 31, 2010, 17:52
Smile OpenFOAM Script
  #326
New Member
 
Aleksey Matyushev
Join Date: Mar 2010
Posts: 10
Rep Power: 16
aleksey is on a distinguished road
Once more, hi everyone!

I think this is directed more for Bruno and Mads...

I just did a clean install of Karmic 9.10 on my 64 bit machine. I ran your updated script (downloaded today) and it froze on me right after it said "Fix up bash done". It installed OpenFOAM correctly and configured everything but it just didn't exit to bash right after the "bash done" statement.

Below are the last statements from the installOF.log:

Code:
Summary
-------------------------------------------------------------------------------
Base configuration ok.

Critical systems ok.


done.

------------------------------------------------------
Fixing call for bash in tutorials (default is dash in Ubuntu)
Fix up bash done
------------------------------------------------------
------------------------------------------------------
Fixing call for bash in tutorials (default is dash in Ubuntu)
Fix up bash done
------------------------------------------------------
Right after it hit the "Fix up bash done" it would not exit back into bash in the terminal.

I'm not sure if it was just my computer, but I just wanted to give you guys some feedback and comments. I am a huge fan of the work you both have done!

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

Old   March 31, 2010, 18:51
Default
  #327
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,

Ah, you used Fabio's version, not Mads version!! Last I saw Fabio's version, he was still doing some tweaking! His thread is this one.

If you check the code changes here, you'll see that there is a weird bug that Fabio hasn't been able to fix yet. And only this weekend will I get some time to look at it properly to help the development.

Mads version is a more simplified version, pretty much as it is named: the cookbook script. You can copy paste code lines onto the terminal, easy to figure out how stuff works, and should work on most Ubuntu machines.
Fabio's version is aiming to be a more dedicated multi-option OpenFOAM installer for Ubuntu So, it's more related to a robotic cooking machine than a book

If Fabio doesn't fix it by Saturday, I might

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   April 1, 2010, 05:13
Default
  #328
New Member
 
Mike J
Join Date: Apr 2010
Posts: 2
Rep Power: 0
Mike123 is on a distinguished road
To all who have contributed thus far - esp Mads, Bruno, Anton and Fabio
Thanks a million - owe you all a pint

Just finished install of 1.6x on ubuntu 32bit with the lastest code - and as far as i can tell it worked flawlessly!
Cheers for all the time and effort everyone's put in to get this working - its just been brilliant to see

thanks again!

Mike
Mike123 is offline   Reply With Quote

Old   April 2, 2010, 02:19
Default
  #329
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 213
Rep Power: 18
sandy is on a distinguished road
Quote:
Originally Posted by Mike123 View Post
To all who have contributed thus far - esp Mads, Bruno, Anton, Fabio and Sandy. Thanks a million - owe you all a pint

Just finished install of 1.6x on ubuntu 32bit with the lastest code - and as far as i can tell it worked flawlessly!
Cheers for all the time and effort everyone's put in to get this working - its just been brilliant to see

thanks again!

Mike
Which one is the lastest code, Mike? Where are you get it? Thank you a million.

Who finally sum up it?

Hi Mads, why I can not open your website about the installbook, now?

Last edited by sandy; April 2, 2010 at 02:38.
sandy is offline   Reply With Quote

Old   April 2, 2010, 06:28
Default
  #330
New Member
 
Mike J
Join Date: Apr 2010
Posts: 2
Rep Power: 0
Mike123 is on a distinguished road
Hi Sandy

I believe there have been a few problems with Mads website recently
but i got the latest code (update yesterday i think) from
http://hvirvel.dk/OF/

If you would like to install openfoam1.6x on ubuntu 9.10 (32 bit) just use the following two lines of code (from Mads blog --> http://hvirvel.dk/)

wget http://hvirvel.dk/OF/installOF9.10

. ./installOF9.10


Last edited by Mike123; April 2, 2010 at 06:30. Reason: Removed link in code
Mike123 is offline   Reply With Quote

Old   April 3, 2010, 14:41
Default
  #331
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18
MadsR is on a distinguished road
@Mike: Looking forward to that pint! I like weissbeer but can do with the occasional dark larger :-)

@Sandy: Are you still installing? :-)

@Bruno: "robotic cooking machine?" Hahaha

I hope that the script is accessible from my website, it is hosted by a commercial service now which is a bit more reliable than my setup (i kinda hate that).

It seems to me that it runs smoothly but let me know if it doesn't.

Cheers
Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Old   April 8, 2010, 13:31
Default
  #332
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 to all,

@Mads, I've updated my post #316 and added the fixed installOF9.04 script, analogous to the fixes I made to installOF9.10.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   April 8, 2010, 14:37
Default
  #333
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18
MadsR is on a distinguished road
@Bruno: Okay. Not sure I follow you, though :-)

For the record (we like to hear about successful installs also :-)): I just installed Ubuntu 9.10-x64 on a new machine, and OpenFOAM using the script two days ago without any trouble. So, the script (still/again) works on such a fresh install.

/Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Old   April 8, 2010, 14:59
Default
  #334
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
Quote:
Originally Posted by MadsR View Post
@Bruno: Okay. Not sure I follow you, though :-)
Oh right, I omitted the train of thought
The update is because I got a pm referring to the installOF9.04 script from someone who didn't manage to get it working in Ubuntu 9.04 x86_64
wyldckat is offline   Reply With Quote

Old   April 9, 2010, 09:41
Default
  #335
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 to all,

Well, Peter reminded me of something that was missing in Mads install cookbook: the 32bit version didn't change OpenFOAM's bashrc to use 32bit architecture.
So attached are the fixed versions, with a little addon: multicore detection and setting WM_NCOMPPROCS to that value, thus enabling OpenFOAM to be built with as many cores as available... well, it limits to 8 cores max.

Oh, and I removed the git package from the apt-get list, because that package is transitional for git-core in both 9.04 and 9.10! So, try the 9.10 script version in the soon to be released Ubuntu 10.04 Just as JohnMichaelKane told us about in post #325

Best regards,
Bruno
Attached Files
File Type: gz installOF9.04.tar.gz (1.4 KB, 3 views)
File Type: gz installOF9.10.tar.gz (1.5 KB, 37 views)
__________________
wyldckat is offline   Reply With Quote

Old   April 14, 2010, 16:16
Default
  #336
New Member
 
JohnMichaelKane
Join Date: Mar 2010
Posts: 18
Rep Power: 16
JohnMichaelKane is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings to all,

Well, Peter reminded me of something that was missing in Mads install cookbook: the 32bit version didn't change OpenFOAM's bashrc to use 32bit architecture.
So attached are the fixed versions, with a little addon: multicore detection and setting WM_NCOMPPROCS to that value, thus enabling OpenFOAM to be built with as many cores as available... well, it limits to 8 cores max.

Oh, and I removed the git package from the apt-get list, because that package is transitional for git-core in both 9.04 and 9.10! So, try the 9.10 script version in the soon to be released Ubuntu 10.04 Just as JohnMichaelKane told us about in post #325

Best regards,
Bruno
Fantastic, 9.10 script installed without issue on 10.04.

Passing.
Code:
./foamSystemCheck
Returned.

Code:
Checking basic system...
-----------------------------------------------------------------------
Shell:           /bin/bash
Host:            xxx
OS:              Linux version 2.6.32-20-generic
User:            xxx


System check: PASS
Good day.
JohnMichaelKane is offline   Reply With Quote

Old   April 15, 2010, 01:57
Default
  #337
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18
MadsR is on a distinguished road
Is there an error in my script for 32-bit? As mentioned I am sure that the 64-bit version works.

/Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Old   May 9, 2010, 08:16
Default
  #338
New Member
 
JohnMichaelKane
Join Date: Mar 2010
Posts: 18
Rep Power: 16
JohnMichaelKane is on a distinguished road
Quote:
Originally Posted by MadsR View Post
Is there an error in my script for 32-bit? As mentioned I am sure that the 64-bit version works.

/Mads
Greetings Mads.

Apologies for not responding promptly to your question.

I installed Ubuntu 10.04 32bit, upon completion of updates. I installed OpenFOAM using the script from wyldckat post #335.

I next ran
Code:
./foamSystemCheck.
Which returned.

Code:
Checking basic system...
-----------------------------------------------------------------------
Shell:           /bin/bash
Host:            foamtesting-desktop
OS:              Linux version 2.6.32-22-generic-pae
User:            foamtesting


System check: PASS
==================
Continue OpenFOAM installation.
I than run airFoil2D benchmark, completion-time from log file.

Execution-time at time 500 = 22.99 s Clock Time = 23 s

Benchmark done on
Intel Core 2 Duo E8400 @ 3.0GHz
6GB DDR2 800

Additionally: Would it be possible to update the script, stating support on Ubuntu 10.04?

Good day.

Edit: I looked in the make.log, and spotted these lines at the end.
Code:
make[1]: Target `application' not remade because of errors.
make: *** [postProcessing] Error 2
make: Target `application' not remade because of errors.

Last edited by JohnMichaelKane; May 9, 2010 at 08:32.
JohnMichaelKane is offline   Reply With Quote

Old   May 10, 2010, 04:31
Default
  #339
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
John, can you look again if there is an error further up? Looks like something went wrong compiling the PV-Reader.
akidess is offline   Reply With Quote

Old   May 10, 2010, 07:32
Default
  #340
New Member
 
JohnMichaelKane
Join Date: Mar 2010
Posts: 18
Rep Power: 16
JohnMichaelKane is on a distinguished road
Quote:
Originally Posted by akidess View Post
John, can you look again if there is an error further up? Looks like something went wrong compiling the PV-Reader.
Greetings akidess
I had another look in make.log, and further up spotted these lines regarding PV3FoamReader.

Code:
make[5]: Target `CMakeFiles/PV3FoamReader_SM.dir/build' not remade because of errors.
make[4]: *** [CMakeFiles/PV3FoamReader_SM.dir/all] Error 2
make[4]: Target `all' not remade because of errors.
make[3]: *** [all] Error 2
make[3]: Target `default_target' not remade because of errors.
make[2]: *** [PV3FoamReader] Error 2
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:30.