Difference between revisions of "Installation/Mac OS/OpenFOAM 1.6 and 1.7"

From OpenFOAMWiki
(Created page with 'This page describes how to install OpenFOAM 1.6 on a Mac OS X. It assumes that you are familiar with compiling OpenFOAM and gives only a rough overview on the process What to do...')
 
m
Line 14: Line 14:
 
* The patches compiled a complete OF 1.6 (with paraview) on an Intel Mac with Mac OS X 10.5 in 32 bit
 
* The patches compiled a complete OF 1.6 (with paraview) on an Intel Mac with Mac OS X 10.5 in 32 bit
 
* In 64 bit everything except paraview gets compiled (there seems to be a general problem with Paraview and 64 bits on the Mac)
 
* In 64 bit everything except paraview gets compiled (there seems to be a general problem with Paraview and 64 bits on the Mac)
 +
* the used compiler was thegcc-4.3 from the MacPorts-project
 
* PowerPC SHOULD work, but is untested
 
* PowerPC SHOULD work, but is untested
 
* to enable parallel computations copy the libPstream from <tt>$FOAM_LIBBIN/openmpi-1.3.3</tt> to <tt>$FOAM_LIBBIN/dummy</tt>
 
* to enable parallel computations copy the libPstream from <tt>$FOAM_LIBBIN/openmpi-1.3.3</tt> to <tt>$FOAM_LIBBIN/dummy</tt>
 
* your milage may vary
 
* your milage may vary
 
* the patch to the OF-directory has been tested on a Linux-system and doesn't break the compilation there. The ThirdParty-patch has not been tested and might break things
 
* the patch to the OF-directory has been tested on a Linux-system and doesn't break the compilation there. The ThirdParty-patch has not been tested and might break things
* in Paraview Pythonhas been automatically enabled
+
* in Paraview Python has been automatically enabled
 +
* it has been reported for previous versions  of OF on MacOSX that the give compiler-switches give not the optimal performance (OF runs slower than is to be expected). This issue has not been addressed in the patch yet
  
 
The patches are applied with these commands
 
The patches are applied with these commands

Revision as of 23:53, 29 July 2009

This page describes how to install OpenFOAM 1.6 on a Mac OS X. It assumes that you are familiar with compiling OpenFOAM and gives only a rough overview on the process

What to do:

  1. make sure that ~/OpenFOAM is on a case-sensitive file-sytem (either a disk image or a separate partition)
  2. extract the Downloaded -General taballs (OpenFOAM-1.6 and Thirdparty-1.6) there
  3. apply the patches
  4. adapt the hard-coded compiler (gcc-mp-4.3 and g+-mp-4.3) in etc/bashrc and wmake/rules/darwin* to fit your system
  5. source ~/OpenFOAM/OpenFOAM-1.6/etc/bashrc
  6. Compile OpenFOAM according to the README
  7. Compile ParaView using the makeParaView-script (see the README)
  8. extend this Wiki-page so that those trying after you have it easier

Remarks on the patches:

  • The patches compiled a complete OF 1.6 (with paraview) on an Intel Mac with Mac OS X 10.5 in 32 bit
  • In 64 bit everything except paraview gets compiled (there seems to be a general problem with Paraview and 64 bits on the Mac)
  • the used compiler was thegcc-4.3 from the MacPorts-project
  • PowerPC SHOULD work, but is untested
  • to enable parallel computations copy the libPstream from $FOAM_LIBBIN/openmpi-1.3.3 to $FOAM_LIBBIN/dummy
  • your milage may vary
  • the patch to the OF-directory has been tested on a Linux-system and doesn't break the compilation there. The ThirdParty-patch has not been tested and might break things
  • in Paraview Python has been automatically enabled
  • it has been reported for previous versions of OF on MacOSX that the give compiler-switches give not the optimal performance (OF runs slower than is to be expected). This issue has not been addressed in the patch yet

The patches are applied with these commands

cd ~/OpenFOAM/OpenFOAM-1.6
patch -p1 <OpenFOAM-1.6-Mac.patch.v1
cd ~/OpenFOAM/Thirdparty-1.6
patch -p1 <hirdParty-1.6.-Mac.patch.v1

Further information on compiling OF on the Mac can be found here on the board or on this Wiki

The actual patch files: