Sig Turbomachinery Library OpenFoamTurbo

From OpenFOAMWiki
Jump to: navigation, search

Contents

1 Library OpenFoamTurbo

The library OpenFoamTurbo will regroup the developments made by the Turbomachinery Special Interest Group related to the application of OpenFOAM for TurboMachinery simulations.

The source code for the library OpenFoamTurbo is available from the Subversion repository of the project OpenFOAM-extend: Extensions to the OpenFOAM CFD Toolbox hosted on SourceForge.net : http://openfoam-extend.wiki.sourceforge.net.

We recommend installing the library source code under the directory $WM_PROJECT_USER_DIR/src, but you can obviously install this source code anywhere you want.

The compiled library will end up in $FOAM_USER_LIBBIN/libOpenFoamTurbo.so

1.1 Retrieving the source code

  • To retrieve the source code for this library
 
mkdir $WM_PROJECT_USER_DIR/src
cd $WM_PROJECT_USER_DIR/src

For OpenFOAM-2.0:

 
svn checkout svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_2.0/OSIG/TurboMachinery/src/OpenFoamTurbo OpenFoamTurbo

For OpenFOAM-1.6:

 
svn checkout svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_1.6/OSIG/TurboMachinery/src/OpenFoamTurbo OpenFoamTurbo

For OpenFOAM-1.5:

 
svn checkout svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_1.5/OSIG/TurboMachinery/src/OpenFoamTurbo OpenFoamTurbo

For OpenFOAM-1.4.1:

 
svn checkout svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder/OSIG/TurboMachinery/src/OpenFoamTurbo OpenFoamTurbo

1.2 Compiling the library

  • To compile the OpenFoamTurbo library:
 
cd $WM_PROJECT_USER_DIR/src/OpenFoamTurbo
wmake libso

1.3 Configuring your case for dynamically loading the OpenFoamTurbo library

  • In order to use the OpenFoamTurbo library with your cases, you need to add the following line at the end of your system/controlDict file:
libs ( "libOpenFoamTurbo.so" );
  • In the event where paraFoam will complain with a strange error message while trying to load this library, we have found out that using the following instruction instead in your system/controlDict file allows you to get rid of the problem without any noticable side effects.
libs ( "libOpenFOAM.so" "libOpenFoamTurbo.so" );

1.4 Library content:

Here is the content list of the OpenFoamTurbo library: