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

OpenFOAM13 for Mac OSX Darwin 104

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 8, 2007, 17:44
Default Thanks Martin & Hrvoje for tho
  #21
New Member
 
Chris Harvey
Join Date: Mar 2009
Posts: 2
Rep Power: 0
charvey is on a distinguished road
Thanks Martin & Hrvoje for those incredibly fast replies. I got the soft link to work (strange... I tried that before but kept getting "No such file or directory" errors. It works now though so nevermind). It is a quick and dirty solution though (as Bernhard said) so I will at some point try to rebuild as described as well.

Thanks for your help,
Chris
charvey is offline   Reply With Quote

Old   March 17, 2007, 13:29
Default I'm a super new to OpenFOAM, a
  #22
New Member
 
Ben Hawkins
Join Date: Mar 2009
Posts: 5
Rep Power: 17
g4ben is on a distinguished road
I'm a super new to OpenFOAM, and as a Mac user, very excited about the possibility of using it natively. However, I'm having trouble running it. I've followed the directions given at the top, but not successfully. My questions are:

1. After these instructions, is a compile required?
2. What should be in .bashrc? It contains OpenFOAM relavent text, so I'm not sure where to put the "source..." line.

Thanks!
g4ben is offline   Reply With Quote

Old   March 19, 2007, 14:42
Default Hi Ben! @1: If you download
  #23
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Ben!

@1: If you downloaded the binaries: No
@2: Which bashrc? The one in your home directory? That should be just the same as in the general OpenFOAM-installation instructions

What exactly are your troubles?
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   March 20, 2007, 09:17
Default Thanks for the reply. 1. I
  #24
New Member
 
Ben Hawkins
Join Date: Mar 2009
Posts: 5
Rep Power: 17
g4ben is on a distinguished road
Thanks for the reply.

1. I did so I'm not missing anything there.
2. I've tried this with both ~/.basrch and ~/.cshrc, they both contain OpenFOAM comment blocks at the top. I've added the lines as per the instructions above, and still get "command not found" for FoamX. I can write the whole path out, and that calls FoamX but then I get an error:
"Can't find FoamX configuration directory at /.-/apps/FoamX."
g4ben is offline   Reply With Quote

Old   March 20, 2007, 09:59
Default Figured it out. New error is:
  #25
New Member
 
Ben Hawkins
Join Date: Mar 2009
Posts: 5
Rep Power: 17
g4ben is on a distinguished road
Figured it out. New error is: "/Users/g4ben/OpenFOAM/OpenFOAM-1.3/bin/runFoamXHB: line 122: nsd: command not found"
and hangs.

Thanks again for the help!
g4ben is offline   Reply With Quote

Old   March 20, 2007, 10:03
Default FoamX does not work: use OpenF
  #26
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
FoamX does not work: use OpenFOAM applications straight from the xommand line (xterm).

Sorry, there was too many problems compiling mico on OS X.

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

Old   March 21, 2007, 04:30
Default Hi I tried to open ParaView, b
  #27
felic
Guest
 
Posts: n/a
Hi I tried to open ParaView, but the following error message poped up:
Major opcode of failed request: 129 (Apple-DRI)
Minor opcode of failed request: 1 ()
Serial number of failed request: 1146
Current serial number in output stream: 1146

could anyone help me, please?
I am a beginner mac/linux user.

felicia
  Reply With Quote

Old   March 21, 2007, 08:26
Default This seems like a problem betw
  #28
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
This seems like a problem between paraview and the X-Server. Maybe the paraview-list is a better source for that problem.

But:
- When does the problem occur (before or after the splash-screen ....)
- What is your architecture (PowerPC or Intel)?
- Which verison of the OS/X-Server (xdpyinfo gives that kind of info)?
- what is the output of
glxinfo | grep direct
xdpyinfo | grep Apple
- does paraview (not Foam) work? (you could also try if the problem persists with the original paraview from their site)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   March 21, 2007, 09:31
Default An add-on comment: you need to
  #29
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
An add-on comment: you need to run paraview from xterm - and xterm is something that does not come with your standard installation. You can get it for free from the Apple web site.

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

Old   March 21, 2007, 09:36
Default Hi Bernhard, Thank you for r
  #30
felic
Guest
 
Posts: n/a
Hi Bernhard,
Thank you for replying to my message.
Answer to your question in order:
- Problem I could not even get a splash-screen working now. It worked before, but when I restarted my computer it does not work anymore
- Architecture: Intel Duo Processor (I just bought this MacBook, and I am very new to them.)
- I would say I have the Mac OS X latest version. I am not aware as to what are the available version out there.

- output of:
felicia-tristantos-computer:~ flic$ glxinfo | grep direct
direct rendering: Yes

-output of:
felicia-tristantos-computer:~ flic$ xdpyinfo | grep Apple
Apple-DRI
Apple-WM

Both outputs are obtained from typing command in xterm windows.

I do not understand why I am getting different error message. I was very sure that the problem that paraView did not opened up is because I do not know how to set the $DISPLAY environment.

I typed:
source ~/.bashrc

then when I typed paraFoam . cavity, it comes out with this message:
/Users/flic/OpenFOAM/OpenFOAM-1.3/bin/paraFoam: line 57: paraview: command not found

-flic-
  Reply With Quote

Old   March 21, 2007, 09:49
Default Hi Hrv, Yep, I have install
  #31
felic
Guest
 
Posts: n/a
Hi Hrv,

Yep, I have installed X11 from the installation CD that comes with it. I basically followed installation guide from the following link:
http://xanana.ucsc.edu/xtal/x11.html

after I installed X11, when I typed paraFoam . cavity it asks for the $DISPLAY environment. Then I typed:
touch ~/.bashrc

but do not know how to insert the attached .bashrc file in the above link to the file.

after this, when I ran ParaFoam . cavity it gives the following error:
bash: paraView: command not found

cheers,
felicia
  Reply With Quote

Old   March 21, 2007, 09:54
Default Hi Felicia! OK. Your archit
  #32
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Felicia!

OK. Your architecture is an Intel (mine is PowerPC so I won't be able to reproduce your problem).

Which binaries are you using? My theory is that they are PowerPC (at least the last time I looked only those were available) and they have trouble talking to the X-Server (which is an Intel-binary). But that is a guess.

I think I'll have to pass the question to someone who is running OpenFOAM on an Intel-MacOS. (Anyone? Could you please stand up?)

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   March 21, 2007, 10:08
Default paraview - all lowercase, righ
  #33
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
paraview - all lowercase, right?

Could you try saying 'which paraview' and find out if the directory exists etc. Mine lives under ~/OpenFOAM/darwin/paraview-...

Having in mind that you're running a shiny new Intel Mac and Bernhard and I are still in the last century, could you tell me if this worked before + did you compile paraview yourself. Did you mount the disk images (if that's now you work)?

Keeping my fingers crossed,

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

Old   March 21, 2007, 20:48
Default Hi Hrv, Bernhard, I'm Felic
  #34
New Member
 
Richard Morgans
Join Date: Mar 2009
Posts: 16
Rep Power: 17
rmorgans is on a distinguished road
Hi Hrv, Bernhard,

I'm Felicia's supervisor - we're both new to the mac world. I've had a little experience with linux and a small amount of OF.

Somehow the darwin disk image became unmounted since I last tried + xterm sources .bashrc and terminal sources .bash_profile -> this is all fixed now.

Which paraview finds it in the same place as above, and running paraview brings up the splash screen and then dumps the same error as above.

we haven't compiled paraview ourselves. If this is the next obvious step we'll give it a go (unless anyone knows of paraview-2.4.3 binaries for intel mac? - or is it likely that the 2.4.4 binaries from the paraview website will work?

Actually given time constraints, I'm downloading paraview 2.6 binaries, will see if I can get something like this (http://oshima.eng.niigata-u.ac.jp/Op...-20070224.html)
working.

Will let you know if we have success.

Cheers

Rick
rmorgans is offline   Reply With Quote

Old   March 22, 2007, 06:24
Default I'm afraid there are no Intel-
  #35
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
I'm afraid there are no Intel-Darwin-binaries at
http://www.paraview.org/files/v2.4/

Try the 2.6-Binaries found there. If they work you might as well try recompiling 2.6 (it's the same effort). The process of recompiling paraview is quite good documented. The problem might be to compile the 'glue' between paraview and Foam (I had to hand-patch some files on my Mac before I succeeded, but that was with a 2.4-version. Might be better with 2.6).

On the other hand: if I remember it correctly the 2.6-source-tree has an OpenFOAM-reader. I just don't know if it is enabled in their standard-binaries. If it is you might safe you all the trouble of recompiling.

I know: there's a lot of if/might/should in this message, but it's the best I know.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   March 22, 2007, 08:26
Default You may be in trouble (let's h
  #36
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
You may be in trouble (let's hope not). I had a ton of problems with the Mac build and had to manually fiddle the build flags in order to get it to work. If you "just compile" it, the executable will start up, show a banner and then fall over.

The other issue is that you need a full build, with all the header files, position-specific derivaed headers from cmake etc just to rebuild the OpenFOAM reader. The last issue is whether the binary build has been done with shared libraries or not: by default, they used to be off, which will not work.

In any case, the time is nigh for me to re-port all my bug fixes etc to the Mac, so please keep me posted.

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

Old   March 22, 2007, 09:39
Default I meant to do this some time a
  #37
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
I meant to do this some time ago: I've added a list of things I had to do in order to compile OF1.3 on a Mac on the Wiki:
http://openfoamwiki.net/index.php/Ho...e_OpenFOAM_Mac
My guess is that most of the stuff you don't have to do if you're using Hrv's images as a basis and only clean out the PPC-binary files. Only the last thing (the flag for the PVReader - if I remember it correctly cmake overwrites it every time)

@compiling paraview to cooperate with OF: maybe http://openfoamwiki.net/index.php/Howto_compile_OpenFOAM#Compiling_and_installin g_ParaView can be helpful (you might want to interpolate it with http://www.paraview.org/Wiki/ParaView:FAQ#How_do_I_compile_ParaView_for_Mac_OS_ X .3F)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   April 3, 2007, 11:05
Default Not sure if this helps anyone,
  #38
New Member
 
Ben Hawkins
Join Date: Mar 2009
Posts: 5
Rep Power: 17
g4ben is on a distinguished road
Not sure if this helps anyone, but I know one of the major problems compiling FoamX was mico:

http://mico.darwinports.com/
g4ben is offline   Reply With Quote

Old   April 3, 2007, 16:24
Default Mico is all done and working -
  #39
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Mico is all done and working - did anyone manage to right click?

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

Old   April 10, 2007, 20:32
Default Greetings everyone! This is
  #40
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 18
paka is on a distinguished road
Greetings everyone!

This is my first post over here. First of all, thank you very much Hrvoje for your Mac porting!

I am just learning how to use OpenFOAM and so far I do whole tutorial under my linux machine where everything works and is stable. Then I try to do the same things on my Mac machine - which is also stable, but to be sure first I try in linux.

The only problem which I experience on Mac is a paraFoam file opener. Software opens, however it has got some problems with opening .foam files.
It means, I do:
paraFoam <root> <example>

What happens paraviem/Foam opens in X11 environment (as it should), however it doesn't want to open the picked file.

After paraview is launched, I can only point out to file manually, but even then it cannot open it, the paraview is somehow stucked, but functional so I can stop openning etc.

What I discovered, when I click File -> Open there is no .foam extension to choose in file extension list (on Mac machine), whereas on my linux box it appears as (probably) a second one from the bottom.

Any ideas or tips how to open these .foam files in paraview under Mac, so I can actually see how structure/example looks like? Actually, I am playing in tutorial with '..path../icoFoam cavityGrade' example.

Thanks! And thanks for a great work with OpenFOAM Mac port!

Krystian
paka 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
Differences OpenFOAM12 and OpenFOAM13 lr103476 OpenFOAM Running, Solving & CFD 43 July 22, 2008 17:46
OpenFOAM14 for Mac OSX Darwin 104 gschaider OpenFOAM Installation 118 July 20, 2008 06: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 08:24


All times are GMT -4. The time now is 14:19.