Difference between revisions of "Contrib equationReader/Installation"

From OpenFOAMWiki
Line 16: Line 16:
 
:b) If you want to see what's going on, just open the archive.  It will be obvious where everything needs to go.
 
:b) If you want to see what's going on, just open the archive.  It will be obvious where everything needs to go.
  
3. Compile the new library and demo project:
+
3. '''If you have OpenFOAM 1.7.x or earlier''' edit the file <tt>src/equationReader/include/versionSpecific.H</tt>:
 +
:Comment out the second line:
 +
//#define ThisIsFoamVersion2
 +
4. Compile the new library and demo project:
  
 
  cd $WM_PROJECT_DIR/src/equationReader
 
  cd $WM_PROJECT_DIR/src/equationReader

Revision as of 00:18, 16 September 2011

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.