|
[Sponsors] |
March 30, 2010, 10:37 |
OpenaFoam 1.6 on MacOs X 10.6
|
#1 | |||||
Senior Member
|
Hi;
I know this topic has been discussed many times before but I still got no idea about how to install OpenFoam on a mac though I successfully installed it on linux. I found this: http://openfoamwiki.net/index.php/Ho...enFOAM_v16_Mac that's divided into 8 steps: Quote:
Quote:
Quote:
Quote:
Quote:
Can you help me? Thank you guys! Lorenzo |
||||||
March 30, 2010, 13:49 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Different people use different compilers (official Apple-compiler, the one from MacPorts, ...). You'll have to modify that script to suite the one you use |
||
March 30, 2010, 15:17 |
|
#3 |
Senior Member
|
||
March 30, 2010, 22:16 |
|
#4 |
Member
|
I had success with that, but have moved onto openfoam-extend or 1.6.x.
|
|
March 31, 2010, 08:05 |
|
#5 |
Senior Member
|
Is there somewhere a compiled version of open foam 1.6 for mac?
|
|
June 13, 2010, 10:59 |
mac OS X compiled instructions at :
|
#6 |
New Member
Join Date: May 2009
Location: Texas
Posts: 10
Rep Power: 16 |
http://www.ifdmavt.ethz.ch/education...foam/of-macosx
But I'm having trouble with setup_foam. My system still thinks its text even after renaming it. |
|
June 24, 2010, 17:33 |
|
#7 |
New Member
Sunny Karnani
Join Date: Apr 2010
Posts: 22
Rep Power: 16 |
What is the response when you type in setup_foam?
|
|
June 24, 2010, 22:24 |
Error message trying to run setup foam
|
#8 |
New Member
Join Date: May 2009
Location: Texas
Posts: 10
Rep Power: 16 |
At first I got "command not found". After using Chmod 777 on Setup foam it doesn't give me an error message but doesn't appear to do anything either! Ok, so maybe it worked, but I can't find any new directories that I was expecting. I got the disk image. That looks just fine. Can you help me?
|
|
June 25, 2010, 00:09 |
|
#9 |
New Member
Sunny Karnani
Join Date: Apr 2010
Posts: 22
Rep Power: 16 |
With the disk image mounted, ideally, there should be a short cut in the ~/OpenFOAM directory that links to /Volumes/OpenFOAM-1.5/
Does this sound familiar? --Sunny |
|
June 27, 2010, 17:41 |
OpenFoam on the Mac - mounting binary images
|
#10 |
New Member
Join Date: May 2009
Location: Texas
Posts: 10
Rep Power: 16 |
Sunny,
No such mounting has taken place as far as I can tell. Still have the images and setup_foam executable under OpenFOAM, but nothing else. This command that Wilder wrote, do I need to modify it in some way? test -f ~/.bash_profile && cp ~/.bash_profile ~/.bash_profile.bak_setup_foam_$(date '+%Y%m%d%H%M%S') echo ". ~/OpenFOAM/images/setup_foam" >> ~/.bash_profile It runs without error message. Also, after executing setup_foam, there is no message or any indication that it works. Do I need to set up a case sensitive partition? I don't see the need for that since I have a disk image of the binaries. Kenny |
|
June 27, 2010, 20:03 |
|
#11 |
New Member
Sunny Karnani
Join Date: Apr 2010
Posts: 22
Rep Power: 16 |
Hi Kenny,
Just to make sure, are the image and set_up files located in the directory, ~/OpenFOAM/images/ Sunny |
|
June 27, 2010, 22:53 |
OpenFoam on the Mac - mounting binary images
|
#12 |
New Member
Join Date: May 2009
Location: Texas
Posts: 10
Rep Power: 16 |
Yes they are under ~OpenFOAM/images/
So maybe there is a problem with the setup_file. I will list the setup_foam file's contents below: # INSTRUCTIONS: # # - Save this file to ~/OpenFOAM/images/setup_foam (if you choose a different # place, adjust the follwing instructions accordingly) # # - Adapt the lines in between the markers #### CONFIG #### and #### END CONFIG #### # to your setup. # # - Save and close the file. # # - Issue the following command: # # test -f ~/.bash_profile && cp ~/.bash_profile ~/.bash_profile.bak_setup_foam_$(date '+%Y%m%d%H%M%S') # echo ". ~/OpenFOAM/images/setup_foam" >> ~/.bash_profile # # - Close and re-open Terminal.app # # - Every time you first want to use OpenFOAM (i.e. every time you open a new shell # window or tab) issue the following command: # # setup_foam # # - And now you should be ready to use OpenFOAM. # # Copyright 2008 Michael Wild <wild@ifd.mavt.ethz.ch> function setup_foam { ### CONFIG ### # The OpenFOAM version you want to use OFVERSION=1.5 # Path to the OpenFOAM disk image file. The $OFVERSION variable will be replaced # with above value. loginuser will be replaced with your short username. OFIMAGE=~/OpenFOAM/images/OpenFOAM-1.5-MacOSX-10.5-intel.dmg # Path to the user's own disk image. OFUSERIMAGE=~/OpenFOAM/images/fewelk-1.5.sparseimage ### END CONFIG ### function mnt_of_image() { [ ! -d ~/OpenFOAM ] || mkdir -p ~/OpenFOAM hdiutil attach -mountroot ~/OpenFOAM $1 } if [ ! -f $OFIMAGE ]; then echo "Error: the OpenFOAM disk-image $OFIMAGE does not exist" >&2 return 1 fi if [ ! -f $OFUSERIMAGE ]; then echo "Creating user disk-image $OFUSERIMAGE" mkdir -p `dirname $OFUSERIMAGE` hdiutil create -size 1t -type SPARSE -fs HFSX -volname "${LOGNAME}-1.5" $OFUSERIMAGE fi if [ ! -d ~/OpenFOAM/OpenFOAM-$OFVERSION ]; then mnt_of_image $OFIMAGE fi if [ ! -d ~/OpenFOAM/$LOGNAME-$OFVERSION ]; then mnt_of_image $OFUSERIMAGE fi . ~/OpenFOAM/OpenFOAM-$OFVERSION/etc/bashrc # do some house-keeping unset OFVERSION unset OFIMAGE unset OFUSERIMAGE # tell paraFoam where to find ParaView FOAM_PV3_APP="/Applications/ParaView 3.7.0.app" export FOAM_PV3_APP } Perhaps I need to replace the variables with explicit paths. I have no other ideas. Thanks, Kenny |
|
June 27, 2010, 23:48 |
|
#13 |
New Member
Sunny Karnani
Join Date: Apr 2010
Posts: 22
Rep Power: 16 |
What does your ~/.bash_profile look like?
There should be a line that reads: . ~/OpenFOAM/images/setup_foam This might be of no consequence, but I think you should try to download the setup_foam file again I remember running into issues when making the slightest of modifications. Sunny |
|
June 28, 2010, 00:32 |
OpenFoam on the Mac - mounting binary images
|
#14 |
New Member
Join Date: May 2009
Location: Texas
Posts: 10
Rep Power: 16 |
Good suggestion. I'll try that.
Thanks, Ken |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
k-omega-SST model (OF 1.6) - turbulent flat plate | cboss | OpenFOAM Running, Solving & CFD | 25 | August 9, 2016 09:53 |
install OpenFoam 1.6 by building source: how? | niudie | OpenFOAM Installation | 13 | April 26, 2011 00:48 |
problems in Two Phase flow using twoPhaseEulerFoam with OpenFoam 1.6 | raagh77 | OpenFOAM Running, Solving & CFD | 0 | March 6, 2010 05:11 |
kOmegaSST in openfoam 1.6 | Gearb0x | OpenFOAM | 2 | March 3, 2010 06:02 |
OpenFOAM Version 1.6 Released | opencfd | OpenFOAM Announcements from ESI-OpenCFD | 0 | July 27, 2009 17:55 |