CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation

OpenFOAM13 for Mac OSX Darwin 104

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 18, 2007, 17:58
Default Of course, I use 2.4.3, the sa
  #61
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 9
paka is on a distinguished road
Of course, I use 2.4.3, the same that works with foamToVTK.

Being precise I use paraFoam, which AFAIK is made for 2.4.3.

Thanks,
K
paka is offline   Reply With Quote

Old   April 18, 2007, 20:43
Default OK, I unmounted all mounted vo
  #62
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 9
paka is on a distinguished road
OK, I unmounted all mounted volumes deleted $FOAM_RUN/tutorials folder and re-mounted and copied everything. Tested with icoFoam/cavity. Everything works so far! I am really glad, it is so much fun to work on Mac

Thanks again everyone for good will and help!

Last question, haven't tried yet, but is it possible to have OpenFoam-1.3 and darwin directory simply copied onto hard drive, or is it necessary to have them mounted every time?

KRST
paka is offline   Reply With Quote

Old   April 18, 2007, 22:21
Default Hi Krystian, We found that
  #63
New Member
 
Richard Morgans
Join Date: Mar 2009
Posts: 16
Rep Power: 8
rmorgans is on a distinguished road
Hi Krystian,

We found that sourcing problem as well

For other mac users:

xterm sources .bashrc
terminal sources .bash_profile

when they start up.

I simply put everything to source OF in one (.bash_profile) and then set .bashrc to source .bash_profile.

Cheers

Rick
rmorgans is offline   Reply With Quote

Old   April 19, 2007, 01:50
Default Hello Richard, That makes s
  #64
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,758
Rep Power: 21
hjasak will become famous soon enough
Hello Richard,

That makes sense: in fact, I am running tcsh so every time I start an xterm I change shell, which updates all variables... and everything works. BTW, would that be Professor Richard Morgans of Uni Queensland by any chance (very impressive work!)? (I'd like to hear more about the Mac experience of your students).

Hello Krystian,

Yes, you can copy stuff out of compressed disk images, but care is required! The darwin directory should be all fine, but in OpenFOAM-1.3 there are issues. OpenFOAM uses file name capitalisation and there is a set of files which differs by capitalisation only. The main filing system on a Mac is not case-sensitive (!) and will give you file name clashes for such files.

I have been advised by the good people on this forum not to mess with this (chaning the base filing system will break some native Mac apps). This is the reason why OpenFOAM-1.3 lives in its own case-sensitive filing system: if you take it out, just put it into another :-)

Could you please try FoamX if everything is fine - I only use laptops and have no external mouse (see above for an issue with right-clicking). If/when FoamX hangs or completes, there is an issue with killing processes. I currently do it by hand (haven't corrected the script in the euforia of getting it to work), but

killall nsd

should do the job.

Enjoy,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   April 19, 2007, 02:58
Default Dear Hrv, Unfortunately I'm
  #65
New Member
 
Richard Morgans
Join Date: Mar 2009
Posts: 16
Rep Power: 8
rmorgans is on a distinguished road
Dear Hrv,

Unfortunately I'm not the Richard Morgan you're referring to http://www.mech.uq.edu.au/staff/morgan/ - I'm the plural (Morgans , a research fellow at the University of Adelaide, School of Mechanical Engineering.

I'm currently collaborating with a former student of Richard Morgan's though, Con Doolan http://www.mecheng.adelaide.edu.au/~cdoolan/

FYI, Con's interests are in hypersonics and aeroacoustics - I think he's got some aeroacoustic examples with OF up on his research page.

My interest in OF is as a test vehicle for really expensive optimisations. Personally I havent used OF for anything serious yet, Con does that I'm interested in applying derivative free optimisaion to engineering calculations. If you're interested in DFO and CFD, check out Alison Marsden's work.

Cheers

Rick
rmorgans is offline   Reply With Quote

Old   April 19, 2007, 03:34
Default Thanks for that Rick, and sorr
  #66
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,758
Rep Power: 21
hjasak will become famous soon enough
Thanks for that Rick, and sorry for mis-identification.

In any case, my interests are more towards gradient-based optimization. If you ever decide to steer that way, let's have a beer together.

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   April 19, 2007, 15:04
Default Richard, In my case wheneve
  #67
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 9
paka is on a distinguished road
Richard,

In my case whenever I want to use new xterm window with OpenFoam path, every time I type: source ~/bashrc.
I write "just" bashrc without "dot", because that's the way I decided to do it. This is just my preference, and everyone familiar with *nix systems could easily automated it.
Thanks for tip any way.

Hrv,

I won't mess with Mac file structure etc. I've got very bad experiences with very early RedHat distributions, where Linux times where quite unstable regarding to HDD partition table with other systems. Having that traumatic experiences loosing all data, I am kind of aware not messing with this on my main computer Kind of "Pavlov classical conditioning" thing

I am familiar with your mouse button issue. If you help me a bit, I will test it. I tried FoamX under linux box, however, even working with Abaqus I preferred using command line and now it is also the case

On my Mac, first when I tried it, it didn't work. Now when I fixed path references it (server) is starting up in the background, but window does not pop up. Here is what prints out in terminal window:

Paczuszka:~/OpenFOAM/krystian-1.3/tutorials/icoFoam krystian$ FoamX
Starting NameServer with inet:Paczuszka.local:1234 ...
error: cannot open output file /Users/krystian/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/apps/FoamX/ns.ref

Trying 'top' command... 'nsd' pops up, runs in the background, but no FoamX window.

Cheers,
Krystian
paka is offline   Reply With Quote

Old   September 22, 2010, 14:56
Default the latest Mac v
  #68
New Member
 
Babak
Join Date: Sep 2010
Posts: 3
Rep Power: 6
babak55 is on a distinguished road
Dear Hrvoje,

I am new to OpenFOAM and was wondering where I can download the latest Mac version of OpenFOAM to be run on OS X tiger.

Many thanks
Babak



Quote:
Originally Posted by hjasak View Post
Dear All,

The updated Mac version has finally arrived: you can download it from my personal Mac pages

http://homepage.mac.com/h.jasak/ in the OpenFOAM-1.3 directory.

Now that I know what I'm doing, everything apart from FoamX is operational.

Installation instructions:
1) download the disk images
2) mount them (double-click the disk image file). This should produce a /Volumes/darwin and /Volumes/OpenFOAM-1.3 directory
3) create a directory ~/OpenFOAM
4) in the directory, make soft links to the disk images:

cd ~/OpenFOAM
ln -s /Volumes/darwin .
ln -s /Volumes/OpenFOAM-1.3 .

5) set up the environment in your bashrc/cshrc in the usual way:

cd ~
cp -r ~/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3 ~

Into your .cshrc file add:

source ~/.OpenFOAM-1.3/cshrc

and you're done!

I would appreciate a success/failure report from any Mac lovers.

Enjoy,

Hrv
babak55 is offline   Reply With Quote

Old   September 23, 2010, 07:29
Default
  #69
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by babak55 View Post
Dear Hrvoje,

I am new to OpenFOAM and was wondering where I can download the latest Mac version of OpenFOAM to be run on OS X tiger.

Many thanks
Babak
There is no binary distro of the latest OF for Mac that I know of (but I didn't look around too much)

I'm afraid you'll have to download the original sources and apply the patches. Then recompile. See elsewhere for the procedure. You might want to adapt the MAC_OSX_DEPLOYMENT_TARGET to fit your system. Should work if you have a compiler that meets the requirements. Problem might be the Paraview/Qt-complex. Not sure if Tiger is supported by the latest Qt. My hint: don't bother but use a 3.8 binary from KitWare. It has a fairly decent Foam-Reader built in

Bernhard
gschaider is offline   Reply With Quote

Old   September 23, 2010, 10:53
Default
  #70
New Member
 
Babak
Join Date: Sep 2010
Posts: 3
Rep Power: 6
babak55 is on a distinguished road
Thanks Bernhard,

I have tried to follow the procedures at:
http://chrisjbutler.wordpress.com/20...for-os-x-10-6/
Using OSX tiger versions of Xcode and Macport but no success get.

At the latest executions in above link, the git command is not functional on my Mac although I download the git-1.5-4.3.mpkg and fixed the .bashrc and .Profile paths.

Will try your suggestions,

Babak

Quote:
Originally Posted by gschaider View Post
There is no binary distro of the latest OF for Mac that I know of (but I didn't look around too much)

I'm afraid you'll have to download the original sources and apply the patches. Then recompile. See elsewhere for the procedure. You might want to adapt the MAC_OSX_DEPLOYMENT_TARGET to fit your system. Should work if you have a compiler that meets the requirements. Problem might be the Paraview/Qt-complex. Not sure if Tiger is supported by the latest Qt. My hint: don't bother but use a 3.8 binary from KitWare. It has a fairly decent Foam-Reader built in

Bernhard
babak55 is offline   Reply With Quote

Old   September 24, 2010, 05:06
Default
  #71
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by babak55 View Post
Thanks Bernhard,

I have tried to follow the procedures at:
http://chrisjbutler.wordpress.com/20...for-os-x-10-6/
Using OSX tiger versions of Xcode and Macport but no success get.

At the latest executions in above link, the git command is not functional on my Mac although I download the git-1.5-4.3.mpkg and fixed the .bashrc and .Profile paths.

Will try your suggestions,

Babak
I'd suggest that you use the git from MacPorts (updates are much easier and once you've gotten MacPorts working new packages - like git - will be in the PATH too)

Bernhard
gschaider is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Differences OpenFOAM12 and OpenFOAM13 lr103476 OpenFOAM Running, Solving & CFD 43 July 22, 2008 16:46
OpenFOAM14 for Mac OSX Darwin 104 gschaider OpenFOAM Installation 118 July 20, 2008 05:19
Problems in OpenFOAM13 srcthermophysicalmodelsliquid aderliner OpenFOAM Running, Solving & CFD 1 March 18, 2007 02:33
What is wrong with the OpenFOAM13 on Cygwin151 waynezw0618 OpenFOAM Installation 0 November 6, 2006 21:31
Help%7e%7einstall openfoam13 on fc5%7e%7e aderliner OpenFOAM Installation 2 September 11, 2006 07:24


All times are GMT -4. The time now is 08:51.