CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM13 for Mac OSX Darwin 104 (https://www.cfd-online.com/Forums/openfoam-installation/57351-openfoam13-mac-osx-darwin-104-a.html)

paka April 18, 2007 17:58

Of course, I use 2.4.3, the sa
 
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 April 18, 2007 20:43

OK, I unmounted all mounted vo
 
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 http://www.cfd-online.com/OpenFOAM_D...part/happy.gif

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

rmorgans April 18, 2007 22:21

Hi Krystian, We found that
 
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

hjasak April 19, 2007 01:50

Hello Richard, That makes s
 
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

rmorgans April 19, 2007 02:58

Dear Hrv, Unfortunately I'm
 
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 http://www.cfd-online.com/OpenFOAM_D...part/happy.gif, 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 http://www.cfd-online.com/OpenFOAM_D...part/happy.gif 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

hjasak April 19, 2007 03:34

Thanks for that Rick, and sorr
 
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

paka April 19, 2007 15:04

Richard, In my case wheneve
 
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. http://www.cfd-online.com/OpenFOAM_D...part/happy.gif 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 http://www.cfd-online.com/OpenFOAM_D...part/happy.gif Kind of "Pavlov classical conditioning" thing http://www.cfd-online.com/OpenFOAM_D...part/happy.gif

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 http://www.cfd-online.com/OpenFOAM_D...part/happy.gif

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

babak55 September 22, 2010 14:56

the latest Mac v
 
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 (Post 186220)
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


gschaider September 23, 2010 07:29

Quote:

Originally Posted by babak55 (Post 276214)
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

babak55 September 23, 2010 10:53

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 (Post 276294)
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 September 24, 2010 05:06

Quote:

Originally Posted by babak55 (Post 276343)
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


All times are GMT -4. The time now is 22:50.