|
[Sponsors] |
September 8, 2009, 07:35 |
OpenFOAM-1.6 install cookbook
|
#1 |
Senior Member
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18 |
Hi there.
I am not sure if this helps anyone, but for what it's worth, I thought I'd share how I install OpenFOAM on a fresh Ubuntu 9.04 system in a somewhat fool-proof way...By installing I mean real install with compiling, not "only" downloading of binaries. I have previously spent quite some time, installing OpenFOAM, so I was trying to simplify and organise the process. I like to bake cakes, so I'll put it in a cookbook way if that's okay with you. 1. you need to have a Ubuntu 9.04 system running (or a similar apt-get enabled distro) 2. you need to be logged in as the user you want to be using OF as (not just using su) 3. you need to be allowed to run the sudo command 4. download my install-script found here 5. read through the script and see if you find anything upsetting (please notify me if you do) 6. either - for the not so faint-hearted - run the script "automatically" by typing . ./installOF OR manually copy-paste each line from the script to your command-line and execute, a bit safer, the installation process step-wise 7. you could bake a cake now, as step 6 probably will take a really long time 8. enjoy OpenFOAM, a cup of coffee and your cake 9. if everything above worked out, you can actually maintain your OpenFOAM install by typing git pull in the OpenFOAM-1.6.x-directory followed by ./Allwmake The script is "verision 1.0" - please use this at your own risk and don't hold anything against me if your summer-vacation pictures are deleted (actually if this happens I really wonder how my script could have caused that ) Let me know if this is useless, or if it helps you out. Cheers, Mads
__________________
Online free airfoil-mesher for OpenFOAM here |
|
September 8, 2009, 17:03 |
|
#2 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Hey Mads, I haven't tried the procedure since I'm happy with 8.10 and 1.5 for now However, two little things caught my eye in the script:
1. you have flex twice in the apt-get list (not that I think it matters) 2. What do you mean by "you should se NO critials" ? Cheers, Anton |
|
September 9, 2009, 03:15 |
|
#3 |
Senior Member
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18 |
Hi Anton.
Thank you for your comments - I have revised the script. Critials missed a 'c' and reads Criticals, meaning that you should not see any critical errors. /Mads
__________________
Online free airfoil-mesher for OpenFOAM here |
|
September 9, 2009, 14:26 |
|
#4 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Oh, in that case, it's "see", not "se".
|
|
September 14, 2009, 16:00 |
|
#6 |
New Member
Dalibor
Join Date: Mar 2009
Location: Sweden
Posts: 8
Rep Power: 17 |
Hi Mads,
I am trying to run script on the new Ubuntu 9.04 (64 bit) but I get a lot of: /usr/bin/ld: cannot find -lfiniteVolume collect2: ld return 1 exit status make: *** [/home/ninja/OpenFOAM/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libdynamicMesh.so] Error 1 |
|
September 15, 2009, 03:18 |
|
#7 |
Senior Member
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18 |
Hi Dado.
Thanks for your feedback. I am glad you pointed it out, because I was not aware of this. My script downloads 32-bit thirdparty-stuff and surely that won't work. By downloading 64-bit thirdparty-stuff instead, I am sure we're on the right path, although other problems might surface :-) I have made a new script (found here) which downloads 64 bit thirdparty files. Let me know how far that takes you :-) best regards Mads
__________________
Online free airfoil-mesher for OpenFOAM here |
|
September 15, 2009, 03:32 |
|
#8 |
New Member
Dalibor
Join Date: Mar 2009
Location: Sweden
Posts: 8
Rep Power: 17 |
Hi Mads,
Thanks for your script! I will try it after work and will let you know it works for me. regards /dado P.S. I am HiFi too |
|
September 15, 2009, 05:05 |
|
#9 |
Senior Member
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18 |
Great !
Always when changing something, I expect errors, so bring them on, and we'll see :-) /Mads Ps. Cool! Hifi is a fantastic hobby and an ongoing project which captures your soul...and your wallet...:-)
__________________
Online free airfoil-mesher for OpenFOAM here |
|
September 15, 2009, 14:53 |
|
#10 |
New Member
Dalibor
Join Date: Mar 2009
Location: Sweden
Posts: 8
Rep Power: 17 |
This new 64bit script work so installation was without any errors and output from the foamInstallationTest ends with:
Summary ------------------------------------------------------------------------------- Base configuration ok. Critical systems ok. done. So I guess, everything should work fine. Thanks for the script. /dado p.s. It took approx 3h to compile. |
|
September 16, 2009, 03:14 |
|
#11 |
Senior Member
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18 |
Great! Thanks for your feed-back.
Yeah, compile-times are long. I know that you can run compilations in parallel, but I haven't figured out how to do that with the Allwmake of OpenFOAM. /Mads
__________________
Online free airfoil-mesher for OpenFOAM here |
|
September 18, 2009, 06:14 |
|
#12 |
Senior Member
|
Mads,
thanks for your cookbook!
__________________
Best regards, Dr. Alexander VAKHRUSHEV Christian Doppler Laboratory for "Metallurgical Applications of Magnetohydrodynamics" Simulation and Modelling of Metallurgical Processes Department of Metallurgy University of Leoben http://smmp.unileoben.ac.at |
|
September 21, 2009, 03:37 |
|
#13 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
This looks like the type of information that could go into the wiki.
|
|
September 22, 2009, 07:43 |
|
#14 | |
Member
Nugroho Adi
Join Date: Mar 2009
Location: norway
Posts: 79
Rep Power: 17 |
Quote:
I success to install OF 1.6.x by your script. Thanks Summary ------------------------------------------------------------------------------- Base configuration ok. Critical systems ok. done. i have a stupid question, why i can't running any common command of the OF in terminal? example : blockMesh, run, icoFoam and all of them ? is there something else i have to configure? Takk |
||
September 22, 2009, 07:46 |
|
#15 | |
Member
Nugroho Adi
Join Date: Mar 2009
Location: norway
Posts: 79
Rep Power: 17 |
Quote:
that problem already solved. just close the terminal and open the new one |
||
September 22, 2009, 07:55 |
|
#16 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
http://openfoamwiki.net/index.php/Compiling/Building Use the information for OpenFOAM-1.4.1 and newer. You need a password-less ssh and the OpenFOAM settings must be available - see the wmakeScheduler for more internal details. |
||
September 23, 2009, 16:13 |
|
#18 |
Member
Join Date: May 2009
Posts: 54
Rep Power: 17 |
Hi Mads,
I just installed OF1.6.x using your script and I have a bit of a newbie problem. The OF environment from /etc/bashrc is sourced in my home .bashrc file, but I do not seem to get all the OF commands. For example, "checkMesh" and "blockMesh" are not available commands, while solvers such as icoFoam, etc, are. Any ideas where I might be going wrong? Thanks, -Greg |
|
September 23, 2009, 17:27 |
|
#19 | |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Quote:
Were there any errors when executing the script? Did you try: |
||
September 23, 2009, 17:30 |
|
#20 |
Member
Join Date: May 2009
Posts: 54
Rep Power: 17 |
I did not see any errors when running the script and I did try closing all terminals and starting new ones, but no luck.
|
|
|
|
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 |