Contrib equationReader/Installation

From OpenFOAMWiki

1 Installation

0. If you are running precompiled binaries, first ensure that you can compile your copy of OpenFOAM.

1. Download it from here, or copy and paste the link below:

http://openfoam-extend.svn.sourceforge.net/viewvc/openfoam-extend/trunk/Breeder_1.6/libraries/equationReaderExtension/?view=tar

2. Unzip and unpack the files to where they need to be:

a) If you trust me, do the "auto-unpack" commands (just open a terminal window, browse to the directory containing your download, and paste these lines in):
tar --transform='s,equationReaderExtension,'$WM_PROJECT_DIR',' \
-x -v -z -P -f openfoam-extend-equationReaderExtension.tar.gz
b) If you want to see what's going on, just open the archive. It will be obvious where everything needs to go.

3. If you have OpenFOAM 1.7.x or earlier edit the file src/equationReader/include/versionSpecific.H:

Comment out the second line:
//#define ThisIsFoamVersion2

4. Compile the new library and demo project:

cd $WM_PROJECT_DIR/src/equationReader
wmake libso
cd $WM_PROJECT_DIR/applications/solvers/equationReader/equationReaderDemo
wmake

equationReader is now installed.

2 Testing

To test the installation, copy the new tutorials/equationReader/ directory to your run directory, and run equationReaderDemo.