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   October 27, 2009, 01:14
Default
  #81
New Member
 
Kurt Pudniks
Join Date: Sep 2009
Location: Australia
Posts: 6
Rep Power: 16
skinduptruk is on a distinguished road
Quote:
Originally Posted by MadsR View Post
Hi Kurt.

I am glad the script worked out. I do not understand your git issue and why the r-directory should be added to the url :-) ?

With regards to the wiki I can't help, I guess everything should work when the script runs to the end without errors, no?

/Mads
Hi Mads,

nice to get a reply from the script author

the good news is that the allwmake worked, and the test was passed with systems ok.

i was able to run the cavity and dambreak tutorials as a test. can you recommend a "tutorial guide" to understand the others?

another question i have is that paraview help failed with a "failed to start qt assistant". does this mean my ubuntu 9.04 (latest) is missing a package or it is mis-configured? sorry i have not researched more myself - does it work for you?
skinduptruk is offline   Reply With Quote

Old   October 27, 2009, 03:15
Default
  #82
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 Kurt.

I can't really recommend a tutorial guide as I aren't aware know of such. But what is the problem you are trying to solve? Maybe the good readers of this forum can point you in the right direction - but maybe it's worth a new thread, since it's a bit off topic.

Paraview "should work" as everything else should ;-) but you might miss a QT library, which is odd, as the script is installing QT. Could you provide the full output from paraview (if more) and also tell us if paraview is failing to run, or just is spitting out some errors when running?

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

Old   October 27, 2009, 21:01
Default
  #83
New Member
 
Leong
Join Date: Mar 2009
Location: Malaysia
Posts: 20
Rep Power: 17
airfoil is on a distinguished road
Send a message via Skype™ to airfoil
Hi Mads,
Thanks for the script. It is such a good script. However I have to change the git directory from git clone git://repo.or.cz/OpenFOAM-1.6.x.git to
git clone http://repo.or.cz/r/OpenFOAM-1.6.x.git like mentioned by Kurt. Actually both directory are given by OpenCFD in it website. Somehow I have problem with the first entry. After I change the git directory, the script work without any flaw for me.

Rgds,
Airfoil
airfoil is offline   Reply With Quote

Old   October 28, 2009, 12:19
Default
  #84
New Member
 
Anders Wallin
Join Date: Oct 2009
Posts: 7
Rep Power: 16
awallin is on a distinguished road
any chance that the script could give some progress-bar or report on how the compile is progressing? Now I'm just staring at "THIS CAN TAKE HOURS" and don't know what's going on...

are there parts of the make process that could be done in parallel? now I have 7 cores doing nothing while I stare at the above text...

otherwise this seems to work on a fresh Ubuntu 9.04 install.
Is there a detectable performance difference between the binary version from sourceforge and this one pulled from the git repository and compiled on the hardware it will run?

AW
awallin is offline   Reply With Quote

Old   October 28, 2009, 13:26
Default
  #85
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
Anders, I think cmake puts the progress in square brackets, so if you tail the log file, you should see stuff like [14%] ... Anything past that is very non-trivial.

About the performance difference I just have this link: http://www.afs.enea.it/funel/CFD/Ope...amcomptest.htm
akidess is offline   Reply With Quote

Old   October 28, 2009, 13:45
Default
  #86
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
Ok, I modified the 64bit version of the script to enable parallel compilation. This modification is completely untested, so I'd be thankful if someone would be willing to try it out.

Download: installOF64

PS. I forgot to mention - to compile in parallel, call the script with the number of cores as argument, e.g. "./installOF64 4"

Last edited by akidess; October 28, 2009 at 13:47. Reason: added usage example
akidess is offline   Reply With Quote

Old   October 28, 2009, 15:38
Default
  #87
New Member
 
Anders Wallin
Join Date: Oct 2009
Posts: 7
Rep Power: 16
awallin is on a distinguished road
Quote:
Originally Posted by akidess View Post
Ok, I modified the 64bit version of the script to enable parallel compilation. This modification is completely untested, so I'd be thankful if someone would be willing to try it out.
Download: installOF64
on my machine the number of cores ends up in $1, so I had to change that to make it work. also I think there's a space missing inside the right bracket in the if statement:
if [ $1 -gt 1 ]

with these modifications I do seem to get four wmakeScheduler processes running, and some output to make.log
but after a while it seems all the processes sleep and nothing more gets added to make.log (or am I just impatient and should let it run for hours?)
after nothing happens (0% load on all cores for many minutes) I interrupt with ctrl-c and see this in make.log:
make: *** [Make/linux64GccDPOpt/bool.o] Interrupt
make: *** [Make/linux64GccDPOpt/clock.o] Interrupt
make: *** [Make/linux64GccDPOpt/argList.o] Interrupt
make: *** [Make/linux64GccDPOpt/dimensionedConstants.o] Interrupt
awallin is offline   Reply With Quote

Old   October 28, 2009, 18:05
Default
  #88
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
Thanks, I corrected the script (forgot to start counting from 0!) and tested the compilation part on one of my folders in OpenFOAM-1.5. It seems to work for me, using four cores the compilation definitely gets done in shorter time.
akidess is offline   Reply With Quote

Old   October 29, 2009, 03:34
Default
  #89
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
@anton: BRILLIANT. I'd include your parallel execution bit.

@anders: good idea with the progress bar, maybe we can grep some of the output out to the screen to inform the user on what's going on. I will look into that.

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

Old   October 29, 2009, 08:51
Default
  #90
New Member
 
Join Date: Oct 2009
Posts: 15
Rep Power: 16
menorka is on a distinguished road
I'm trying out the parallel script as I type. The CPU utilisation is a bit on the low side - around 10% on two cores, compared to 100% on one core with the old script. Looks fishy.
menorka is offline   Reply With Quote

Old   October 29, 2009, 10:16
Default
  #91
New Member
 
Anders Wallin
Join Date: Oct 2009
Posts: 7
Rep Power: 16
awallin is on a distinguished road
Quote:
Originally Posted by menorka View Post
I'm trying out the parallel script as I type. The CPU utilisation is a bit on the low side - around 10% on two cores, compared to 100% on one core with the old script. Looks fishy.
did you ever get it to compile? on my machine it seems all the scheduler processes just sleep and nothing happens.
awallin is offline   Reply With Quote

Old   October 29, 2009, 10:26
Default
  #92
New Member
 
Join Date: Oct 2009
Posts: 15
Rep Power: 16
menorka is on a distinguished road
I canceled it and am currently compiling with a single core.
menorka is offline   Reply With Quote

Old   October 29, 2009, 11:02
Default
  #93
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.

I made the scripts back to single core, as safe install wins over speed.

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

Old   October 29, 2009, 12:02
Default
  #94
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 MadsR View Post
Hi.

I made the scripts back to single core, as safe install wins over speed.

/Mads
Yes I agree, especially since it's a one time thing. Still a bit odd it's working for me but not for others. I wonder if it's because I tested it with 1.5...
akidess is offline   Reply With Quote

Old   October 29, 2009, 12:09
Default
  #95
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, and about the progress: Looking at the make.log there is nothing really that would indicate how far we are with compiling.
akidess is offline   Reply With Quote

Old   October 29, 2009, 13:55
Default
  #96
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
Anton, yeah it's weird. I have modified the script multiple times since I published it, eventhough its initial version installed perfectly on my Ubuntu - some installations out there are just different somehow.

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

Old   October 29, 2009, 16:45
Default
  #97
New Member
 
Join Date: Oct 2009
Posts: 15
Rep Power: 16
menorka is on a distinguished road
Can't get paraFoam to work despite running the old script.

On Ubuntu 9.10...
  • Ran installOF64. foamInstallationTest reported everything OK.
  • mkdir -p $FOAM_RUN
  • cp -r $WM_PROJECT_DIR/tutorials $FOAM_RUN
  • cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity
  • blockMesh
  • icoFoam
Everything works until...
  • paraFoam
paraView starts up but I get a selection box "Open Data With". Checking make.log I find this as the last entry...
Code:
make[1]: Leaving directory `/home/linus/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/thermophysical'
make: Target `application' not remade because of errors.
If I keep looking through the file I also find this...
Code:
cmake: /home/linus/OpenFOAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux64/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by cmake)
+ make
make[3]: Entering directory `/home/linus/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader/Make/linux64GccDPOpt'
make[3]: *** No targets specified and no makefile found.  Stop.
make[3]: Leaving directory `/home/linus/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader/Make/linux64GccDPOpt'
make[2]: *** [PV3FoamReader] Error 2
and this...
Code:
make[3]: Leaving directory `/home/linus/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/postProcessing/graphics/ensightFoamReader'
make[2]: Target `application' not remade because of errors.
make[2]: Leaving directory `/home/linus/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/postProcessing/graphics'
make[1]: *** [graphics] Error 2
make[2]: Entering directory `/home/linus/OpenFOAM/OpenFOAM-1.6.x/applications/utilities/postProcessing/lagrangian'
Trying to rerun makeParaView doesn't work. Any and all suggestions are welcome.
menorka is offline   Reply With Quote

Old   October 29, 2009, 22:00
Default
  #98
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
I wish people would use the LTS versions more, but then again I can't complain since I'm using 8.10 myself. It looks like this is an issue because for 9.10, ubuntu has switched from gcc 4.3 to 4.4 (see also http://www.cfd-online.com/Forums/ope...not-found.html). I think you'll have to edit your configuration to use the system compiler and recompile, or rebuild cmake with gcc 4.3.
akidess is offline   Reply With Quote

Old   October 30, 2009, 02:45
Default
  #99
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
Uh. There is a new version of Ubuntu. They never stop, do they??? ;-)

Anton, what do we do? You seem to know about Ubuntu releases, LTS and stuff. Is the script not working anymore in 9.10 (as menorka reports), or is something else wrong?


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

Old   October 30, 2009, 14:26
Default
  #100
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
To me it looks like the script does not work any more on 9.10. It's hard to fix though without having 9.10 myself.

I'm assuming that the system cmake is being used (menorka: post "which cmake"). If so, a solution would be to edit $PATH so that the OpenFOAM cmake is used. Judging from other posts in the forum that might be problematic too, and cmake would have to be built from source.

For now new users might want to hold back from using 9.10 until an experienced user can resolve the problem. I might try figuring it out myself in a VM if I find the time.
akidess 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 00:48
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 14:43
install openfoam 1.6 on opensuse 11.0 andresbh OpenFOAM Installation 8 September 30, 2009 00:48
Install openFOAM 1.6 on debian 32bit - blockMesh: command not found fossy OpenFOAM Installation 1 August 28, 2009 04:06
Install of OpenFOAM 1.6 Error 1 Error 2 & run tutorial potac OpenFOAM Installation 3 August 27, 2009 09:04


All times are GMT -4. The time now is 21:39.