CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Version 15 on Mac OS X (https://www.cfd-online.com/Forums/openfoam-installation/57216-version-15-mac-os-x.html)

olesen July 28, 2008 03:23

I've also had the "terminate c
 
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).

kjmaki July 28, 2008 03:32

Hi Mark, Thanks for the res
 
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

olesen July 28, 2008 03:56

The reader module (extension .
 
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.

sek August 8, 2008 14:30

Kevin, Are you still in ita
 
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 August 8, 2008 16:17

Can someone tell me what's the
 
Can someone tell me what's the best way to get paraview3.3-cvs up and running on MAC OS X?

podallaire August 8, 2008 16:30

Good afternoon, Bernhard al
 
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 August 27, 2008 08:20

Hi Bernhard, I tried to app
 
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

gschaider August 28, 2008 10:49

I'll try to recompile the patc
 
I'll try to recompile the patched version over the weekend.
What is the concrete problem?

gschaider September 1, 2008 05:11

Hi PO! The "problem" is tha
 
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)

http://www.cfd-online.com/OpenFOAM_D...hment_icon.gif OpenFOAM-1.5-Mac-v3.patch

Bernhard

podallaire September 1, 2008 08:11

Awesome Bernhard, thanks !
 
Awesome Bernhard, thanks !

PO

hugo September 5, 2008 12:32

Hi everybody, I have a prob
 
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?

lin September 5, 2008 13:21

read the bashrc file,there are
 
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

gschaider September 8, 2008 10:28

Hi Hugo! The scripts assume
 
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

hugo September 12, 2008 15:54

Hi ! Of course soft link so
 
Hi !

Of course soft link solved my problem.

I want to share with You my small discover ( I know that You know http://www.cfd-online.com/OpenFOAM_D...part/happy.gif 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.

hamsadhwani8 October 23, 2008 19:51

Hi, I am new to this openFO
 
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

gizmo October 27, 2008 07:57

Hi all, Now that my instal
 
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!

gschaider October 27, 2008 09:05

Hi Benjamin! The error mess
 
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

gizmo October 27, 2008 09:38

Thank you Bernhard with this v
 
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

gschaider October 27, 2008 11:57

Hi Benjamin! A case-sensiti
 
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

gizmo October 28, 2008 04:35

Ok, thank you I did not notice
 
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?


All times are GMT -4. The time now is 20:04.