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

Installing OF 1.6 on Mac OS X

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 24, 2009, 22:35
Default
  #61
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17
podallaire is on a distinguished road
Cool ! I tried it and worked / did not run anything yet but will do soon.

Best regards,

PO
podallaire is offline   Reply With Quote

Old   October 8, 2009, 01:17
Default
  #62
New Member
 
nikita tryaskin
Join Date: Oct 2009
Location: Helsinki/St. Petersburg
Posts: 27
Rep Power: 16
eternityboy is on a distinguished road
hi, i've got that thing after trying to patch third party

macbook-pro-15:ThirdParty-1.6 resolc$ patch -p1 <ThirdParty-1.6.-Mac.patch.v1
The next patch would create the file .gitignore,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file .gitignore.rej
can't find file to patch at input line 18
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/ParMGridGen-1.0/MGridGen/IMlib/IMlib.h b/ParMGridGen-1.0/MGridGen/IMlib/IMlib.h
|index 9d0c85c..0cce518 100644
|--- a/ParMGridGen-1.0/MGridGen/IMlib/IMlib.h
|+++ b/ParMGridGen-1.0/MGridGen/IMlib/IMlib.h
--------------------------
File to patch:



so, whats wrong or what to patch?
eternityboy is offline   Reply With Quote

Old   October 9, 2009, 12:38
Default
  #63
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
Quote:
Originally Posted by eternityboy View Post
hi, i've got that thing after trying to patch third party

macbook-pro-15:ThirdParty-1.6 resolc$ patch -p1 <ThirdParty-1.6.-Mac.patch.v1
The next patch would create the file .gitignore,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file .gitignore.rej
can't find file to patch at input line 18
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/ParMGridGen-1.0/MGridGen/IMlib/IMlib.h b/ParMGridGen-1.0/MGridGen/IMlib/IMlib.h
|index 9d0c85c..0cce518 100644
|--- a/ParMGridGen-1.0/MGridGen/IMlib/IMlib.h
|+++ b/ParMGridGen-1.0/MGridGen/IMlib/IMlib.h
--------------------------
File to patch:



so, whats wrong or what to patch?
Ignore that message. You don't need .gitignore. So if this was the only message then the patch worked alright

Bernhard
gschaider is offline   Reply With Quote

Old   October 9, 2009, 12:56
Default
  #64
New Member
 
nikita tryaskin
Join Date: Oct 2009
Location: Helsinki/St. Petersburg
Posts: 27
Rep Power: 16
eternityboy is on a distinguished road
nahhh.. it should show patching process when patching.. and this is the first and only message..
eternityboy is offline   Reply With Quote

Old   October 12, 2009, 12:03
Default
  #65
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
Quote:
Originally Posted by eternityboy View Post
nahhh.. it should show patching process when patching.. and this is the first and only message..
Have a look into the patch file. Which other files should be patched and whether it looks like the patches were applied

Bernhard
gschaider is offline   Reply With Quote

Old   October 20, 2009, 15:08
Default
  #66
Member
 
Elvis Dowson
Join Date: Oct 2009
Posts: 36
Rep Power: 16
elvisjohndowson is on a distinguished road
Hi,
Is there a fix for libhoard not compiling on Mac OS X 10.6.1 64-bit ?

Elvis Dowson
elvisjohndowson is offline   Reply With Quote

Old   October 20, 2009, 17:48
Default
  #67
Senior Member
 
Pierre-Olivier Dallaire
Join Date: Mar 2009
Location: Montreal, Quebec, Canada
Posts: 192
Rep Power: 17
podallaire is on a distinguished road
I don't think so / you don't need this library to run OpenFOAM, should
not be a problem

PO
podallaire is offline   Reply With Quote

Old   October 21, 2009, 15:24
Default
  #68
Member
 
Elvis Dowson
Join Date: Oct 2009
Posts: 36
Rep Power: 16
elvisjohndowson is on a distinguished road
I'm getting the following compilation errors, with OpenFoam-1.6, Mac OS X 10.6.1, with MacPorts gcc-mp-4.3, and Bernhard's from his repository.

Seems to me like some basic c++ include files not working. Any suggestions on what I can do to get it to compile?

Making dependency list for source file library_error_exit.c
SOURCE=arch.c ; gcc-mp-4.3 -m64 -DdarwinIntel64 -DWM_DP -Wall -O3 -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_RANDOM_FIXED_SEED -DCOMMON_TIMING_OLD -DSCOTCH_RENAME -I../../include -DSCOTCH_VERSION=\""5.1"\" -IlnInclude -I. -I/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64DPOpt/arch.o
In file included from /Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/string.h:49,
from /usr/include/memory.h:36,
from common.h:65,
from arch.c:75:
/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/char.H:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Foam'
In file included from /Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/string.h:50,
from /usr/include/memory.h:36,
from common.h:65,
from arch.c:75:
/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/Hasher.H:48:19: error: cstddef: No such file or directory
In file included from /Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/string.h:50,
from /usr/include/memory.h:36,
from common.h:65,
from arch.c:75:
/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/Hasher.H:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Foam'
In file included from /usr/include/memory.h:36,
from common.h:65,
from arch.c:75:
/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/string.h:52:18: error: string: No such file or directory
/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/string.h:53:19: error: cstring: No such file or directory
/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/string.h:54:19: error: cstdlib: No such file or directory
In file included from /usr/include/memory.h:36,
from common.h:65,
from arch.c:75:
/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/string.h:58: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Foam'
In file included from /Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/string.h:225,
from /usr/include/memory.h:36,
from common.h:65,
from arch.c:75:
/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/stringI.H:27:20: error: iostream: No such file or directory
In file included from /Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/string.h:225,
from /usr/include/memory.h:36,
from common.h:65,
from arch.c:75:
/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/stringI.H:31: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/stringI.H:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/stringI.H:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/stringI.H:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/stringI.H:56: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/stringI.H:64: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/stringI.H:78: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/stringI.H:112: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/stringI.H:135: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/stringI.H:172: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/stringI.H:183: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/stringI.H:193: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/stringI.H:199: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
elvisjohndowson is offline   Reply With Quote

Old   October 21, 2009, 15:52
Default
  #69
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
Quote:
Originally Posted by elvisjohndowson View Post
I'm getting the following compilation errors, with OpenFoam-1.6, Mac OS X 10.6.1, with MacPorts gcc-mp-4.3, and Bernhard's from his repository.

Seems to me like some basic c++ include files not working. Any suggestions on what I can do to get it to compile?

Making dependency list for source file library_error_exit.c
SOURCE=arch.c ; gcc-mp-4.3 -m64 -DdarwinIntel64 -DWM_DP -Wall -O3 -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_RANDOM_FIXED_SEED -DCOMMON_TIMING_OLD -DSCOTCH_RENAME -I../../include -DSCOTCH_VERSION=\""5.1"\" -IlnInclude -I. -I/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64DPOpt/arch.o
In file included from /Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/string.h:49,
from /usr/include/memory.h:36,
from common.h:65,
from arch.c:75:
/Users/elvis/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/char.H:41: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Foam'
Never seen that one before. Two questions:
- a simple "Hello world" compiles with that compiler?
- your OF-installation is on a case-sensitve volume (because in my opinion the string.h should read string.H - it is my suspicion that because of the case-insensitvity the string.H of OF shadows the /usr/include/string.h)

Bernhard
gschaider is offline   Reply With Quote

Old   October 21, 2009, 17:11
Default
  #70
Member
 
Elvis Dowson
Join Date: Oct 2009
Posts: 36
Rep Power: 16
elvisjohndowson is on a distinguished road
Oh, I wasn't aware of the fact that I had to do all the compilation on a case-insensitive volume. I am using my OS X 10.6.1 home directory, which is case-sensitive.

Could you give me some quick commands on how to create a case-insensitive volume, and to do the compilation from within that volume?

Best regards,

Elvis
elvisjohndowson is offline   Reply With Quote

Old   October 21, 2009, 17:37
Default
  #71
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
Quote:
Originally Posted by elvisjohndowson View Post
Oh, I wasn't aware of the fact that I had to do all the compilation on a case-insensitive volume. I am using my OS X 10.6.1 home directory, which is case-sensitive.

Could you give me some quick commands on how to create a case-insensitive volume, and to do the compilation from within that volume?
Last time I checked a OS X system-disc had to be case-insensitve (but maybe Apple fixed that with 10.6 and they thought that this is too geeky to advertize). It only looked case sensitive to the user.

Test in the terminal
touch foo
touch Foo
ls
If ls shows you BOTH files the volume is Case-Sensitive, otherwise it is Case-Insensitive.

You need a case-sensitve volume for OF. Either a separate partition (that's better) or a disk-image.
Under no circumstances try to convert your system-disc to case-sensitive (unless you want to completely reinstall your machine)

Bernhard
gschaider is offline   Reply With Quote

Old   October 22, 2009, 00:50
Default
  #72
Member
 
Elvis Dowson
Join Date: Oct 2009
Posts: 36
Rep Power: 16
elvisjohndowson is on a distinguished road
Quote:
Originally Posted by gschaider View Post
You need a case-sensitve volume for OF. Either a separate partition (that's better) or a disk-image.
Bernhard
Thanks Bernhard, the Mac OS X 10.6 volume is indeed case-insensitive. I only got foo, when I typed ls.

Could you please give me an example on how to create a disk-image and mount it so that I can do all the compilation in it.

Best regards,

Elvis
elvisjohndowson is offline   Reply With Quote

Old   October 22, 2009, 05:47
Default
  #73
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
Quote:
Originally Posted by elvisjohndowson View Post
Thanks Bernhard, the Mac OS X 10.6 volume is indeed case-insensitive. I only got foo, when I typed ls.

Could you please give me an example on how to create a disk-image and mount it so that I can do all the compilation in it.

Best regards,

Elvis
According to http://openfoamwiki.net/index.php/Ho...e_OpenFOAM_Mac you can do it with the Disc-Utility. The Image will mount itself into /Volumes. You'll have to set a symbolic link to that and you're set

For performance reasons I'd recommend a real partition. I think repartitioning the System-Disc with the Disc-Utility can be done, but you're on your own here ....
gschaider is offline   Reply With Quote

Old   October 23, 2009, 02:57
Default
  #74
New Member
 
Aurelia Vallier
Join Date: Sep 2009
Posts: 8
Rep Power: 16
AureliaV is on a distinguished road
Hi Elvis
This is a part of the message I wrote a few weeks ago:

#1# create a case sensitive disc image called /Volumes/myvoldiskimage
hdiutil create -size 1t -type SPARSE -fs HFSX -volname myvoldiskimage mydiskimage
hdiutil compact mydiskimage.sparseimage
hdiutil attach mydiskimage.sparseimage

#2# create OpenFOAM directory
ln -s /Volumes/myvoldiskimage OpenFOAM

#3# download OF1.6 and Thirdparty1.6 generall and do tar in OpenFOAM directory (which is case sensitive)
cd OpenFOAM
tar xzf ~/Downloads/OpenFOAM-1.6.General.gtgz
tar xvzf ~/Downloads/ThirdParty-1.6.General.gtgz


hope it helps
Aurelia
AureliaV is offline   Reply With Quote

Old   October 23, 2009, 08:54
Default
  #75
Member
 
Elvis Dowson
Join Date: Oct 2009
Posts: 36
Rep Power: 16
elvisjohndowson is on a distinguished road
Thanks for the replies, Aurelia and Bernhard! :-)

I opted for a physical disk partition, for performance reasons.

Now, if I were to work with the OpenFOAM-1.6.x git repository, should I patch the sources manually. If so, do I use Bernhard's patches as a starting point? I tried patching the git repository once before using Bernhard's patches and it failed.

I also notice that in wiki for OpenFOAM-1.4 http://openfoamwiki.net/index.php/Ho...e_OpenFOAM_Mac

there is a mention to a set of Darwin rules : Untar MediaarwinWmakeRules.1.4.v1.tgz to get compilation rules for darwin

Is that necessary?

Best regards,

Elvis
elvisjohndowson is offline   Reply With Quote

Old   October 23, 2009, 12:24
Default
  #76
Member
 
Elvis Dowson
Join Date: Oct 2009
Posts: 36
Rep Power: 16
elvisjohndowson is on a distinguished road
Hi,
Is there a git repository for ThirdParty-1.6, just like OpenFOAM-1.6.x ?

How about creating a new branch called macosx-10.6.1 to do the development for Mac OS X 10.6.1 support?

Best regards,

Elvis
elvisjohndowson is offline   Reply With Quote

Old   October 23, 2009, 13:40
Default
  #77
Member
 
Elvis Dowson
Join Date: Oct 2009
Posts: 36
Rep Power: 16
elvisjohndowson is on a distinguished road
Right now, I've managed to apply Bernhard's Mac OS X patches, to a cloned local branch of the OpenFOAM-1.6.x repository, and called that branch macosx-10.6.1. So, in case this compilation works, I can push the changes to the master repository, so that development can take place for adding Mac OS X support for OpenFOAM.

Best regards,

Elvis
elvisjohndowson is offline   Reply With Quote

Old   October 23, 2009, 13:53
Default
  #78
Member
 
Elvis Dowson
Join Date: Oct 2009
Posts: 36
Rep Power: 16
elvisjohndowson is on a distinguished road
When attempting to compile OpenFOAM-1.6.x with the patches applied, I get the following errors:

config.status: executing libtool commands
++ make
cd . && /bin/sh /Users/elvis/Tool/OpenFOAM/ThirdParty-1.6.x-patches/openmpi-1.3.3/config/missing --run aclocal-1.10 -I config
sh: config/ompi_get_version.sh: No such file or directory


Is this significant?
elvisjohndowson is offline   Reply With Quote

Old   October 23, 2009, 14:50
Default
  #79
Member
 
Elvis Dowson
Join Date: Oct 2009
Posts: 36
Rep Power: 16
elvisjohndowson is on a distinguished road
Compilation is proceeding, but I get a couple of errors like the ones below:

could not open file fvm.H for source file laplaceFilter/laplaceFilter.C
could not open file fvc.H for source file laplaceFilter/laplaceFilter.C

I haven't compiled anything in the ThirdParty-1.6.x-patches folder (I'm using OpenFOAM-1.6.x-patches as the starting point, since I'm working on a local git repository, to generate some patches, if the need arises).

So, should I compile ThirdParty-1.6.x-patches, and then launch ./Allwmake from the OpenFOAM-1.6.x-patches folder?

Best regards,

Elvis
elvisjohndowson is offline   Reply With Quote

Old   October 23, 2009, 16:46
Default
  #80
Member
 
Elvis Dowson
Join Date: Oct 2009
Posts: 36
Rep Power: 16
elvisjohndowson is on a distinguished road
Hi,
I think it compiled fine now. I just ran the test tutorial and didn't get any errors.

Best regards,

Elvis

Technote OpenFOAM-1.6-001: How to install OpenFOAM-1.6 on Mac OS X 10.6.1

Overview

This document describes how to install OpenFOAM-1.6 on Mac OS X 10.6.1 (Snow Leopard).

Procedure

Step 01.00: Download MacPorts-1.8.0

Download MacPorts from the MacPorts download directory: http://distfiles.macports.org/MacPorts/

Run the package installer, to install the MacPorts infrastructure software to /opt/local/bin

Update the MacPorts installation by running the following command

$ sudo port selfupdate


Step 01.01: Install MacPorts gcc43

$ sudo port install gcc43


Step 02.00: Clone the official qt git source code repository

git clone git://gitorious.org/qt/qt.git

Step 02.01: Checkout the qt-4.5 branch

cd qt
git checkout 4.5

Step 02.02: Clone the git branch

git clone . ../qt-4.5

Step 02.03: Configure qt-4.5

./configure -platform macx-g++ -cocoa -arch x86_64 -nomake examples -nomake demos -framework -sdk /Developer/SDKs/MacOSX10.6.sdk/ -prefix /Developer/Applications/Qt-4.5

Step 02.04: Build qt-4.5

make -j 4

Qt is now configured for building. Just run 'make'.
Once everything is built, you must run 'make install'.
Qt will be installed into /Developer/Applications/Qt-4.5

To reconfigure, run 'make confclean' and 'configure'.

Step 02.05: Build qt-4.5 documentation

make docs

Step 02.06: Install qt-4.5

sudo make install

Step 02.07: Update the PATH environment variable to the qt installation’s binary folder

vi ~/.profile

# Qt-4.5
export PATH=/Developer/Applications/Qt-4.5/bin:$PATH


Step 03.00: Install CMake from the cvs repository

cvs -d server:anonymous@www.cmake.org:/cvsroot/CMake login
(respond with password cmake)
Follow this command by checking out the source code:
cvs -d server:anonymous@www.cmake.org:/cvsroot/CMake co CMake

Bootstrap, build and install CMake

$ ./bootstrap
$ make
$ sudo make install


Step 04.00: Install Paraview from the cvs repository.

mkdir $HOME/Tool/ParaView
cd $HOME/Tool/ParaView

cvs -d server:anoncvs@www.paraview.org:/cvsroot/ParaView3 login
(respond with empty password)

Follow this command by checking out the source code:
cvs -d server:anoncvs@www.paraview.org:/cvsroot/ParaView3 co ParaView3

For checking out the data, use the following:
cvs -d server:anoncvs@www.paraview.org:/cvsroot/ParaView3 co ParaViewData

Configure ParaView using CMake

mkdir $HOME/Tool/ParaView/ParaView3-bin
cd $HOME/Tool/ParaView/ParaView3-bin
ccmake $HOME/Tool/ParaView/ParaView3

Press c to configure and select the following options

BUILD_SHARED_LIBS = ON
PARAVIEW_USE_MPI = ON
PARAVIEW_ENABLE_PYTHON = ON

Build ParaView

make -j 4


Step 05.00: Install OpenFOAM from tar sources

tar xzf OpenFOAM-1.6.General.gtgz
tar xzf ThirdParty-1.6.General.gtgz
cd OpenFOAM-1.6
patch -p1 < ../OpenFOAM-1.6-Mac.patch
cd ..
cd ThirdParty-1.6
patch -p1 < ../ThirdParty-1.6.-Mac.patch
cd ..
. /Users/elvis/OpenFOAM/OpenFOAM-1.6/etc/bashrc
cd $WM_PROJECT_DIR
./Allwmake

OR

Step 05.01: Install OpenFOAM from the git repository.

cd ~/OpenFOAM
git clone git://repo.or.cz/OpenFOAM-1.6.x.git
tar -zxf ThirdParty-1.6.General.gtgz
ln -s ThirdParty-1.6 ThirdParty-1.6.x
cd ThirdParty-1.6.x

Step 06.00: Test the OpenFOAM installation.

To test whether your installation is ready, run one of the several tutorial-cases, i.e. the "lid driven cavity" case as follows (see also "Getting Started" of the README included in the OpenFOAM distribution):

mkdir -p /Users/elvis/Tool/OpenFOAM/run
cp -r $WM_PROJECT_DIR/tutorials run
cd run/tutorials/incompressible/icoFoam/
blockMesh -case cavity
icoFoam -case cavity


If these commands fail, you either put the files in the wrong place or didn't source the rc-file. Re-check that everything is where it should be and that you sourced the rc-file as documented in the installation instructions.
elvisjohndowson 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
OpenFOAM13 for Mac OSX Darwin 104 hjasak OpenFOAM Installation 70 September 24, 2010 05:06
problems with installing OpenFOAM 1.6 su_junwei OpenFOAM Installation 8 September 10, 2009 12:54
Problems Installing OF 1.6 32 bit bucksfan OpenFOAM Installation 19 August 4, 2009 01:36
Mac Simple Install Request or Processing Assistance Help sjohnson OpenFOAM Installation 4 December 12, 2008 07:46
MAC + SOLA for free surface T Main CFD Forum 1 April 11, 2001 13:43


All times are GMT -4. The time now is 13:59.