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

Version 15 on Mac OS X

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 28, 2008, 03:23
Default I've also had the "terminate c
  #41
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
I've also had the "terminate called after throwing an instance of 'std::length_error'" but *only* with the internal vtk OpenFOAM reader.

Using the reader module from OpenFOAM, or an updated reader from Takuya works fine (for me).
olesen is offline   Reply With Quote

Old   July 28, 2008, 03:32
Default Hi Mark, Thanks for the res
  #42
Member
 
Kevin Maki
Join Date: Mar 2009
Location: Ann Arbor, MI, USA
Posts: 43
Rep Power: 17
kjmaki is on a distinguished road
Hi Mark,

Thanks for the response. I am not sure what you mean by the reader module from OpenFOAM, versus the internal vtk OpenFOAM reader. Could you provide more details?

Thanks!

Kevin
kjmaki is offline   Reply With Quote

Old   July 28, 2008, 03:56
Default The reader module (extension .
  #43
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,684
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
The reader module (extension .OpenFOAM)
implemented in applications/utilities/postProcessing/graphics/PV3FoamReader/
Works well.

The internal vtk reader (extension .foam)
implemented in ParaView3.3-cvs/VTK/IO/vtkOpenFOAMReader.{cxx,h}
The standard internal vtk reader (pulled from cvs) is generally unsuitable for a number of reasons. Takuya has made a number of modifications that vastly improve the quality of the code, but it has not yet been checked into the paraview/vtk cvs.
olesen is offline   Reply With Quote

Old   August 8, 2008, 14:30
Default Kevin, Are you still in ita
  #44
sek
Member
 
Sung-Eun Kim
Join Date: Mar 2009
Posts: 76
Rep Power: 17
sek is on a distinguished road
Kevin,

Are you still in italy? I hope you're having a good time.

Have you had luck with ParaView3.3-cvs on your MAC?

Sung-Eun
sek is offline   Reply With Quote

Old   August 8, 2008, 16:17
Default Can someone tell me what's the
  #45
sek
Member
 
Sung-Eun Kim
Join Date: Mar 2009
Posts: 76
Rep Power: 17
sek is on a distinguished road
Can someone tell me what's the best way to get paraview3.3-cvs up and running on MAC OS X?
sek is offline   Reply With Quote

Old   August 8, 2008, 16:30
Default Good afternoon, Bernhard al
  #46
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17
podallaire is on a distinguished road
Good afternoon,

Bernhard already released a patch in this thread; paraview compiles and runs well.

Also, Takuya released an updated native reader in this thread last week :

http://www.cfd-online.com/OpenFOAM_D...tml?1218010478

Regards,

Pierre-Olivier
podallaire is offline   Reply With Quote

Old   August 27, 2008, 08:20
Default Hi Bernhard, I tried to app
  #47
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17
podallaire is on a distinguished road
Hi Bernhard,

I tried to apply your patch to version 1.5.x - looks that minor changes will be needed. Do you have some time to have a look at it ?

Best regards,

PO
podallaire is offline   Reply With Quote

Old   August 28, 2008, 10:49
Default I'll try to recompile the patc
  #48
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'll try to recompile the patched version over the weekend.
What is the concrete problem?
__________________
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   September 1, 2008, 05:11
Default Hi PO! The "problem" is tha
  #49
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 PO!

The "problem" is that lex.yy.c is a machine generated file and is left out in the patched version (the way it always should have been). Just tell patch not to patch it and everything else should work fine.

But. I have added a third patch-file that changes two minor things:
- the conjugate heat transfer solver gets compiled (this was an issue with the ancient gcc that comes with the Mac). Now all the solvers should compile on MacOSX
- if the lib or function object mechanism can't load a dynamic-library it tries again and replaces the .so with .dylib. That way you don't have to edit the controlDict every time you move a case from a Linux-machine to a Mac)

OpenFOAM-1.5-Mac-v3.patch

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   September 1, 2008, 08:11
Default Awesome Bernhard, thanks !
  #50
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17
podallaire is on a distinguished road
Awesome Bernhard, thanks !

PO
podallaire is offline   Reply With Quote

Old   September 5, 2008, 12:32
Default Hi everybody, I have a prob
  #51
New Member
 
łukasz
Join Date: Mar 2009
Posts: 2
Rep Power: 0
hugo is on a distinguished road
Hi everybody,

I have a problem with compilation openFOAM. I made case-sensitive image and untar on it OpenFOAM and ThirdParty. then i made all step that Pierre adviced. There were no problems till step 8 and particularly till:
"source etc/bashrc" (I made it from the /Volumes/openFOAM directory)
terminal returned :
"This seems to be an Intel-Mac please tell me the output of 'uname -p'. Bernhard.
-bash: /Users/hugo/OpenFOAM/OpenFOAM-1.5/bin/foamCleanPath: No such file or directory
-bash: /Users/hugo/OpenFOAM/OpenFOAM-1.5/bin/foamCleanPath: No such file or directory
-bash: /Users/hugo/OpenFOAM/OpenFOAM-1.5/bin/foamCleanPath: No such file or directory
-bash: /Users/hugo/OpenFOAM/OpenFOAM-1.5/etc/settings.sh: No such file or directory
-bash: /Users/hugo/OpenFOAM/OpenFOAM-1.5/etc/aliases.sh: No such file or directory
-bash: /Users/hugo/OpenFOAM/OpenFOAM-1.5/etc/apps/paraview3/bashrc: No such file or directory
-bash: /Users/hugo/OpenFOAM/OpenFOAM-1.5/etc/apps/cint/bashrc: No such file or directory
-bash: /Users/hugo/OpenFOAM/OpenFOAM-1.5/bin/foamCleanPath: No such file or directory
-bash: /Users/hugo/OpenFOAM/OpenFOAM-1.5/bin/foamCleanPath: No such file or directory
-bash: /Users/hugo/OpenFOAM/OpenFOAM-1.5/bin/foamCleanPath: No such file or directory
"
When I try to compile openFOAM despite that problem (so I type from
/Volumes/openFOAM directory "./Allwmake") then I get :
"+ cd .
+ cd wmake/src
+ make
Makefile:61: /rules/darwinIntel/general: No such file or directory
Makefile:62: /rules/darwinIntel: No such file or directory
make: *** No rule to make target `/rules/darwinIntel'. Stop."

There is , of course, lot of sheet like this too :
"+ wmake libso lagrangian/basic
./Allwmake: line 9: wmake: command not found"

I don't paste all message cause it's pretty long.
So I guess there is a problem with directory. Why makefile search all important file in my home directory and not in
Volume I made?
What I have to do to make it right?
hugo is offline   Reply With Quote

Old   September 5, 2008, 13:21
Default read the bashrc file,there are
  #52
lin
Senior Member
 
Hua Zen
Join Date: Mar 2009
Posts: 138
Rep Power: 17
lin is on a distinguished road
read the bashrc file,there are some text like below:I guess you should change it . Or just keep it as it is,but do a soft link to your home directory,as I do.

#!!User:
# either set $FOAM_INST_DIR before sourcing this file or set
# $foamInstall below to where OpenFOAM is installed
#
# Location of FOAM installation
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foamInstall=$HOME/$WM_PROJECT
# foamInstall=~$WM_PROJECT
# foamInstall=/usr/local/$WM_PROJECT
# foamInstall=/opt/$WM_PROJECT
lin is offline   Reply With Quote

Old   September 8, 2008, 10:28
Default Hi Hugo! The scripts assume
  #53
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 Hugo!

The scripts assume that the image is mounted (or at least symlinked to) /Users/hugo/OpenFOAM/

Either do that or change the foamInstall-variable the way linzhenhua suggested

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   September 12, 2008, 15:54
Default Hi ! Of course soft link so
  #54
New Member
 
łukasz
Join Date: Mar 2009
Posts: 2
Rep Power: 0
hugo is on a distinguished road
Hi !

Of course soft link solved my problem.

I want to share with You my small discover ( I know that You know that but for me it's a bit strange), well before I wrote my first post I tried to set this soft link but not in terminal -i tried do this from finder (I thought that shortcut is the same as soft link) and what I discovered shocked me - it is not.

Anyway, Thank You Linzhenhua and Bernhard.
hugo is offline   Reply With Quote

Old   October 23, 2008, 19:51
Default Hi, I am new to this openFO
  #55
New Member
 
sesha
Join Date: Mar 2009
Posts: 23
Rep Power: 17
hamsadhwani8 is on a distinguished road
Hi,

I am new to this openFOAM installation. I have tried installing openFOAM on OSX10.5 and came across the error 'Hunk #2 failed at 92'.

I had applied Open*v1.patch, Open*v2.patch and Third*.patch in that order. I have just seen the Open*v3.patch above. My question is, do I have to apply all the patches one ofter the other or just Open*v3.patch and Third*.patch have to applied?

Thanks
hamsadhwani8 is offline   Reply With Quote

Old   October 27, 2008, 07:57
Default Hi all, Now that my instal
  #56
New Member
 
Benjamin Berger
Join Date: Mar 2009
Location: Gembloux, Namur, Belgique
Posts: 13
Rep Power: 17
gizmo is on a distinguished road
Hi all,

Now that my installation of OpenFOAM 1.5 works fine on Ubuntu and that I have a little time to watch it, I'm tring to install OpenFOAM on Mac OS X.5.5...

I found this step-by-step tutorial:

http://www.mathlab.mtu.edu/~yegong/html/Research_OpenFOAM.html#1.2_Install_OpenF OAM-1.5_on_Mac_O_SX_10.5

But, when I'm reaching step c), the extracting, I got this message in Terminal:

http://pix.nofrag.com/3/7/d/9646987f...7872f4a7d.html

Can someone tell me what to do or is there a better tutorial to install it on Mac OS X? Can I continue the tutorial without solving this error?

I'm totally new to OpenFOAM and CFD so if you could help me, I'll try to give an hand back later!
gizmo is offline   Reply With Quote

Old   October 27, 2008, 09:05
Default Hi Benjamin! The error mess
  #57
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 Benjamin!

The error message you're posting means that the tar you're trying to decompress has a problem. The directory you're doing this in is on a case-sensitive file-system?
I'm not sure, but maybe there is another error-message further "up". Try something like

tar 2>&1 {whatever your parameters are} | tee tar.log

and have a look at the tar.log file whether there is an error elsewhere

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   October 27, 2008, 09:38
Default Thank you Bernhard with this v
  #58
New Member
 
Benjamin Berger
Join Date: Mar 2009
Location: Gembloux, Namur, Belgique
Posts: 13
Rep Power: 17
gizmo is on a distinguished road
Thank you Bernhard with this very very quick answer!

The file I'm trying to decompress is the Thirdparty .gtgz that I downloaded on the OpenCFD website, the one for all platforms.
I don't know if my file-system is case sensitive, it is journaled Mac OS, is there a command to know if it is case sensitive?

I'll try your comand as soon as I get back under Mac OS

Thank you again

Benjamin
gizmo is offline   Reply With Quote

Old   October 27, 2008, 11:57
Default Hi Benjamin! A case-sensiti
  #59
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 Benjamin!

A case-sensitive file-system is absolutely essential for OpenFOAM and the usual OS X filesystems are NOT case-sensitive (in fact DON'T make your system partition on OS X case-sensitive, it will end in tears).

To quote from the recipie you mentioned above:
"a) Make sure your system is case sensitive. If not, build a case sensitive partition in your hard disk, and install OpenFOAM in this partition."
I personally recommend a disk-image but that is a question of personal taste

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   October 28, 2008, 04:35
Default Ok, thank you I did not notice
  #60
New Member
 
Benjamin Berger
Join Date: Mar 2009
Location: Gembloux, Namur, Belgique
Posts: 13
Rep Power: 17
gizmo is on a distinguished road
Ok, thank you I did not notice that my system file wasn't case sensitive! As I don't have much spacedisk for the moment, I'll wait till next week when I'll receive my new Mac and try to make a case sensitive disk image where I'll install OpenFOAM!

For the moment, I'm using a pre-compiled version for Mac OS that you can find here: http://www.ifdmavt.ethz.ch/education...foam/of-macosx

It works, I still only have problem with the pre-compiled paraview!

Thank you for your help Bernard!

Maybe a last question: why is it better to release sources than a pre-compiled version?
gizmo 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
New version fluent file open in Old version ? MANOJKUMAR FLUENT 2 July 10, 2013 04:43
Difference between Version 6.3 and Version 6.2 erikaj FLUENT 0 October 11, 2007 12:36
LES with version 6.3 Steve FLUENT 0 April 26, 2007 15:00
SEM in the 3.5 version Anis Phoenics 0 May 5, 2006 12:41
BUG IN VERSION 3.5!!!!!!!! AERODYNAMIFUN Phoenics 0 May 17, 2004 19:24


All times are GMT -4. The time now is 10:34.