2010-05-12 13:27:55 +00:00
|
|
|
# -*- mode: org; -*-
|
|
|
|
#
|
2010-11-17 12:13:34 +00:00
|
|
|
#+TITLE: *OpenFOAM README for version 1.6-ext*
|
2010-05-12 13:27:55 +00:00
|
|
|
#+AUTHOR: Hrvoje Jasak.
|
2010-11-17 12:13:34 +00:00
|
|
|
#+DATE: 12 November 2010
|
|
|
|
#+LINK: http://www.extend-project.de
|
2010-05-12 13:27:55 +00:00
|
|
|
#+OPTIONS: author:nil
|
|
|
|
|
2010-11-24 09:30:06 +00:00
|
|
|
* License
|
2010-05-12 13:27:55 +00:00
|
|
|
OpenFOAM is free software; you can redistribute it and/or modify it under the
|
|
|
|
terms of the GNU General Public License as published by the Free Software
|
|
|
|
Foundation; either version 2 of the License, or (at your option) any later
|
2010-11-17 12:13:34 +00:00
|
|
|
version. See the file COPYING in this directory, for a description of
|
|
|
|
the GNU General Public License terms under which you can copy the files.
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
* System requirements
|
2010-11-17 12:13:34 +00:00
|
|
|
OpenFOAM is developed and tested on Linux and Mac OS X.
|
|
|
|
Experimental Microsoft Windows port is currently not released - please follow
|
|
|
|
the user forum and annoucements
|
|
|
|
|
|
|
|
* Linux
|
|
|
|
To check your system setup, execute the foamSystemCheck script
|
2010-05-12 13:27:55 +00:00
|
|
|
in the bin/ directory of the OpenFOAM installation. If no problems are
|
|
|
|
reported, proceed to "3. Installation"; otherwise contact your system
|
|
|
|
administrator.
|
|
|
|
|
|
|
|
If the user wishes to run OpenFOAM in 32/64-bit mode they should consult the
|
|
|
|
section "Running OpenFOAM in 32-bit mode".
|
|
|
|
|
2010-11-17 12:13:34 +00:00
|
|
|
* Apple Mac OS X
|
|
|
|
The recommended way of running OpenFOAM on the Mac is to download sparse disk
|
|
|
|
images, mount them on your system and link them into
|
|
|
|
|
|
|
|
~/OpenFOAM/OpenFOAM-<VERSION>
|
|
|
|
~/OpenFOAM/ThirdParty-<VERSION>
|
|
|
|
|
|
|
|
Both disk images support case-sensitive file names. If you wish to compile
|
|
|
|
OpenFOAM and Third Party packs from scratch, please create a case-sensitive
|
|
|
|
disk image using the Disk Utility, mount them as above and unpack the sources
|
|
|
|
at appropriate places. The remainder of build instructions is identical
|
|
|
|
to Linux.
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
* Installation
|
|
|
|
Download and unpack the files in the $HOME/OpenFOAM directory as described in:
|
2010-11-17 12:13:34 +00:00
|
|
|
http://www.extend-project.de/
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
The environment variable settings are contained in files in an etc/ directory
|
|
|
|
in the OpenFOAM release. e.g. in
|
|
|
|
|
|
|
|
+ $HOME/OpenFOAM/OpenFOAM-<VERSION>/etc/
|
2010-11-17 12:13:34 +00:00
|
|
|
+ where <VERSION> corresponds to the version 1.6-ext etc
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
1) EITHER, if running bash or ksh (if in doubt type 'echo $SHELL'), source the
|
|
|
|
etc/bashrc file by adding the following line to the end of your
|
|
|
|
$HOME/.bashrc file:
|
|
|
|
|
|
|
|
+ . $HOME/OpenFOAM/OpenFOAM-<VERSION>/etc/bashrc
|
|
|
|
|
|
|
|
Then update the environment variables by sourcing the $HOME/.bashrc file by
|
|
|
|
typing in the terminal:
|
|
|
|
|
|
|
|
+ . $HOME/.bashrc
|
|
|
|
|
|
|
|
2) OR, if running tcsh or csh, source the etc/cshrc file by adding the
|
|
|
|
following line to the end of your $HOME/.cshrc file:
|
|
|
|
|
|
|
|
+ source $HOME/OpenFOAM/OpenFOAM-<VERSION>/etc/cshrc
|
|
|
|
|
|
|
|
Then update the environment variables by sourcing the $HOME/.cshrc file by
|
|
|
|
typing in the terminal:
|
|
|
|
|
|
|
|
+ source $HOME/.cshrc
|
|
|
|
|
|
|
|
*** Installation in alternative locations
|
|
|
|
OpenFOAM may also be installed in alternative locations. However, the
|
|
|
|
installation directory should be network available (e.g., NFS) if parallel
|
|
|
|
calculations are planned.
|
|
|
|
|
|
|
|
The environment variable 'FOAM_INST_DIR' can be used to find and source the
|
|
|
|
appropriate resource file. Here is a bash/ksh/sh example:
|
|
|
|
|
|
|
|
+ export FOAM_INST_DIR=/data/app/OpenFOAM
|
2010-12-05 15:08:37 +00:00
|
|
|
+ foamDotFile=$FOAM_INST_DIR/OpenFOAM-<VERSION>/etc/bashrc
|
|
|
|
+ [ -f $foamDotFile ] && . $foamDotFile
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
and a csh/tcsh example:
|
|
|
|
|
|
|
|
+ setenv FOAM_INST_DIR /data/app/OpenFOAM
|
2010-12-05 15:08:37 +00:00
|
|
|
+ set foamDotFile=$FOAM_INST_DIR/OpenFOAM-<VERSION>/etc/cshrc
|
|
|
|
+ if ( -f $foamDotFile ) source $foamDotFile
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
The value set in '$FOAM_INST_DIR' will be used to locate the remaining parts
|
|
|
|
of the OpenFOAM installation.
|
|
|
|
|
2010-11-24 05:49:05 +00:00
|
|
|
* Building the ThirdParty packages from Sources
|
|
|
|
A new way of compiling and installing the ThirdParty suite of packages is proposed with OpenFOAM-1.6-ext.
|
|
|
|
Please consult the file ThirdParty/README.ThirdParty a for more information.
|
|
|
|
|
2010-05-12 13:27:55 +00:00
|
|
|
* Building from Sources (Optional)
|
2010-11-17 12:13:34 +00:00
|
|
|
If you cannot find an appropriate binary pack for your platform, you can
|
|
|
|
build the complete OpenFOAM from the source-pack. You will first need to
|
|
|
|
compile or obtain a recent version of gcc (we recomend native gcc,
|
|
|
|
coming with your operating system) for your platform,
|
2010-05-12 13:27:55 +00:00
|
|
|
which may be obtained from http://gcc.gnu.org/.
|
|
|
|
|
|
|
|
Install the compiler in
|
|
|
|
$WM_PROJECT_INST_DIR/ThirdParty/gcc-<GCC_VERSION>/platforms/$WM_ARCH$WM_COMPILER_ARCH/
|
|
|
|
and change the gcc version number in $WM_PROJECT_DIR/etc/settings.sh and
|
|
|
|
$WM_PROJECT_DIR/etc/settings.csh appropriately and finally update the
|
|
|
|
environment variables as in section 3.
|
|
|
|
|
|
|
|
Now go to the top-level source directory $WM_PROJECT_DIR and execute the
|
|
|
|
top-level build script './Allwmake'. In principle this will build everything,
|
|
|
|
but if problems occur with the build order it may be necessary to update the
|
|
|
|
environment variables and re-execute 'Allwmake'. If you experience
|
|
|
|
difficulties with building the source-pack, or your platform is not currently
|
|
|
|
supported, please contact <enquiries@wikki.co.uk> to negotiate a support
|
|
|
|
contract and we will do the port and maintain it for future releases.
|
|
|
|
|
|
|
|
* Testing the installation
|
|
|
|
To check your installation setup, execute the 'foamInstallationTest' script
|
|
|
|
(in the bin/ directory of the OpenFOAM installation). If no problems are
|
|
|
|
reported, proceed to getting started with OpenFOAM; otherwise, go back and
|
|
|
|
check you have installed the software correctly and/or contact your system
|
|
|
|
administrator.
|
|
|
|
|
|
|
|
* Getting Started
|
|
|
|
Create a project directory within the $HOME/OpenFOAM directory named
|
2010-11-17 12:13:34 +00:00
|
|
|
<USER>-<VERSION> (e.g. 'jasak-1.6-ext' for user jasak and OpenFOAM
|
|
|
|
version 1.6-ext)
|
2010-05-12 13:27:55 +00:00
|
|
|
and create a directory named 'run' within it, e.g. by typing:
|
|
|
|
|
|
|
|
+ mkdir -p $HOME/OpenFOAM/${USER}-${WM_PROJECT_VERSION}/run
|
|
|
|
|
|
|
|
Copy the 'tutorial' examples directory in the OpenFOAM distribution to the
|
|
|
|
'run' directory. If the OpenFOAM environment variables are set correctly,
|
|
|
|
then the following command will be correct:
|
|
|
|
|
|
|
|
+ cp -r $WM_PROJECT_DIR/tutorials
|
|
|
|
$HOME/OpenFOAM/${USER}-${WM_PROJECT_VERSION}/run
|
|
|
|
|
|
|
|
Run the first example case of incompressible laminar flow in a cavity:
|
|
|
|
|
2010-12-05 15:08:37 +00:00
|
|
|
+ cd $HOME/OpenFOAM/${USER}-${WM_PROJECT_VERSION}/run/tutorials/incompressible/icoFoam/cavity
|
2010-05-12 13:27:55 +00:00
|
|
|
+ blockMesh
|
|
|
|
+ icoFoam
|
|
|
|
+ paraFoam
|
|
|
|
|
2010-11-17 12:13:34 +00:00
|
|
|
* Documentation and Community resources
|
|
|
|
http://www.extend-project.de/
|
|
|
|
http://openfoamwiki.net/
|
|
|
|
http://www.cfd-online.com/ Software->OpenFOAM
|
2010-05-12 13:27:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
* Reporting Bugs in OpenFOAM
|
2010-11-17 12:13:34 +00:00
|
|
|
Please report all bugs and feature requests using our bug tracking system:
|
|
|
|
http://sourceforge.net/apps/mantisbt/openfoam-extend/main_page.php or
|
|
|
|
http://www.extend-project.de/project-final/openfoam-extend-bug-tracker
|
|
|
|
Please also report bugs at the CFD-Online User Forum.
|
|
|
|
|
2010-05-12 13:27:55 +00:00
|
|
|
* Running OpenFOAM in 32-bit mode on 64-bit machines
|
|
|
|
Linux users with a 64-bit machine may install either the OpenFOAM 32-bit
|
|
|
|
version (linux) or the OpenFOAM 64-bit version (linux64), or both. The 64-bit
|
|
|
|
is the default mode on a 64-bit machine. To use an installed 32-bit version,
|
|
|
|
the user must set the environment variable $WM_32 (to anything, e.g. "on")
|
|
|
|
before sourcing the etc/bashrc (or etc/cshrc) file.
|
|
|
|
|
2010-11-17 12:13:34 +00:00
|
|
|
* Instructions on how to contribute
|
|
|
|
http://www.extend-project.de/project-final/how-to-contribute
|
|
|
|
|
2010-05-12 13:27:55 +00:00
|
|
|
* List of Contributors
|
|
|
|
Henry Weller
|
|
|
|
Hrvoje Jasak
|
|
|
|
Mattijs Janssens
|
|
|
|
Zeljko Tukovic
|
2010-11-18 19:31:15 +00:00
|
|
|
Bernhard Gschaider
|
2010-05-12 13:27:55 +00:00
|
|
|
Tommaso Lucchini
|
2010-11-18 19:31:15 +00:00
|
|
|
Martin Beaudoin
|
2010-11-17 12:13:34 +00:00
|
|
|
Sandeep Menon
|
2010-05-12 13:27:55 +00:00
|
|
|
Niklas Nordin
|
|
|
|
Eugene De Villiers
|
|
|
|
Henrik Rusche
|
2010-11-17 12:13:34 +00:00
|
|
|
Ivor Clifford
|
|
|
|
Philiposse Rajan
|
2010-05-12 13:27:55 +00:00
|
|
|
Gavin Tabor
|
|
|
|
Jovani Favero
|
|
|
|
Frank Bos
|
|
|
|
David Hill
|
|
|
|
Niklas Wikstrom
|
|
|
|
Dubravko Matijasevic
|
2010-11-18 19:31:15 +00:00
|
|
|
Darrin Stephens
|
|
|
|
Christian Beck
|
|
|
|
Oliver Borm
|
|
|
|
James Criner
|
|
|
|
Hua Shan
|
|
|
|
David Boner
|
|
|
|
Pierre-Olivier Dallaire
|
|
|
|
Norman Del Puppo
|
|
|
|
Dennis Kingsley
|
|
|
|
Frank Albina
|
|
|
|
Flavio Galeazzo
|
|
|
|
Hannes Kroger
|
|
|
|
Olivier Petit
|
|
|
|
David Schmidt
|
|
|
|
Andreas Feymark
|
|
|
|
Luca Mangani
|
|
|
|
Daniel Schmode
|
|
|
|
Christoph Goniva
|
|
|
|
Takuya Oshima
|
|
|
|
Juho Peltola
|
|
|
|
Eric Paterson
|
|
|
|
Fabian Peng Karrholm
|
|
|
|
Aleksandar Karac
|
|
|
|
Maria Garcia Camprubi
|
|
|
|
Chris Greenshields
|
|
|
|
Mark Olesen
|
2010-05-12 13:27:55 +00:00
|
|
|
Hilary Spencer
|
|
|
|
Andy Heather
|
2010-11-18 19:31:15 +00:00
|
|
|
# -*- mode: org; -*-
|
|
|
|
#
|
|
|
|
#+TITLE: *OpenFOAM README for version 1.6-ext*
|
|
|
|
#+AUTHOR: Hrvoje Jasak.
|
|
|
|
#+DATE: 12 November 2010
|
|
|
|
#+LINK: http://www.extend-project.de
|
|
|
|
#+OPTIONS: author:nil
|
|
|
|
|
|
|
|
* Copyright
|
|
|
|
OpenFOAM is free software; you can redistribute it and/or modify it under the
|
|
|
|
terms of the GNU General Public License as published by the Free Software
|
|
|
|
Foundation; either version 2 of the License, or (at your option) any later
|
|
|
|
version. See the file COPYING in this directory, for a description of
|
|
|
|
the GNU General Public License terms under which you can copy the files.
|
|
|
|
|
|
|
|
* System requirements
|
|
|
|
OpenFOAM is developed and tested on Linux and Mac OS X.
|
2010-11-24 05:49:05 +00:00
|
|
|
E
|