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 Members List Search Today's Posts Mark Forums Read

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 8, 2009, 07:35
Default OpenFOAM-1.6 install cookbook
  #1
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 17
MadsR is on a distinguished road
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
MadsR is offline   Reply With Quote

Old   September 8, 2009, 17:03
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
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
akidess is offline   Reply With Quote

Old   September 9, 2009, 03:15
Default
  #3
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 17
MadsR is on a distinguished road
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
MadsR is offline   Reply With Quote

Old   September 9, 2009, 14:26
Default
  #4
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
Oh, in that case, it's "see", not "se".
akidess is offline   Reply With Quote

Old   September 10, 2009, 03:39
Default
  #5
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 17
MadsR is on a distinguished road
That's right - thanks.


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

Old   September 14, 2009, 16:00
Default
  #6
New Member
 
Dalibor
Join Date: Mar 2009
Location: Sweden
Posts: 8
Rep Power: 17
dado is on a distinguished road
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
dado is offline   Reply With Quote

Old   September 15, 2009, 03:18
Default
  #7
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 17
MadsR is on a distinguished road
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
MadsR is offline   Reply With Quote

Old   September 15, 2009, 03:32
Default
  #8
New Member
 
Dalibor
Join Date: Mar 2009
Location: Sweden
Posts: 8
Rep Power: 17
dado is on a distinguished road
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
dado is offline   Reply With Quote

Old   September 15, 2009, 05:05
Default
  #9
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 17
MadsR is on a distinguished road
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
MadsR is offline   Reply With Quote

Old   September 15, 2009, 14:53
Default
  #10
New Member
 
Dalibor
Join Date: Mar 2009
Location: Sweden
Posts: 8
Rep Power: 17
dado is on a distinguished road
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.
dado is offline   Reply With Quote

Old   September 16, 2009, 03:14
Default
  #11
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 17
MadsR is on a distinguished road
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
MadsR is offline   Reply With Quote

Old   September 18, 2009, 06:14
Default
  #12
Senior Member
 
Dr. Alexander Vakhrushev
Join Date: Mar 2009
Posts: 250
Blog Entries: 1
Rep Power: 19
makaveli_lcf is on a distinguished road
Send a message via ICQ to makaveli_lcf
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
makaveli_lcf is offline   Reply With Quote

Old   September 21, 2009, 03:37
Default
  #13
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,677
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
This looks like the type of information that could go into the wiki.
olesen is offline   Reply With Quote

Old   September 22, 2009, 07:43
Default
  #14
Member
 
Nugroho Adi
Join Date: Mar 2009
Location: norway
Posts: 79
Rep Power: 17
mahaputra is on a distinguished road
Quote:
Originally Posted by MadsR View Post
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
Dear Mads


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
mahaputra is offline   Reply With Quote

Old   September 22, 2009, 07:46
Default
  #15
Member
 
Nugroho Adi
Join Date: Mar 2009
Location: norway
Posts: 79
Rep Power: 17
mahaputra is on a distinguished road
Quote:
Originally Posted by mahaputra View Post
Dear Mads


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
sorry for my stupid mistake.

that problem already solved.

just close the terminal and open the new one

mahaputra is offline   Reply With Quote

Old   September 22, 2009, 07:55
Default
  #16
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,677
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by MadsR View Post
...
I know that you can run compilations in parallel, but I haven't figured out how to do that with the Allwmake of OpenFOAM.
I guess you didn't find the corresponding wiki entry:
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.
olesen is offline   Reply With Quote

Old   September 22, 2009, 08:17
Default
  #17
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 17
MadsR is on a distinguished road
Great! Thanks Mark.

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

Old   September 23, 2009, 16:13
Default
  #18
Member
 
Join Date: May 2009
Posts: 54
Rep Power: 16
gfilip is on a distinguished road
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
gfilip is offline   Reply With Quote

Old   September 23, 2009, 17:27
Default
  #19
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
Quote:
Originally Posted by gfilip View Post
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

Were there any errors when executing the script? Did you try:

Quote:
Originally Posted by mahaputra View Post
sorry for my stupid mistake.

that problem already solved.

just close the terminal and open the new one
akidess is offline   Reply With Quote

Old   September 23, 2009, 17:30
Default
  #20
Member
 
Join Date: May 2009
Posts: 54
Rep Power: 16
gfilip is on a distinguished road
I did not see any errors when running the script and I did try closing all terminals and starting new ones, but no luck.
gfilip is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 03:20.