Difference between revisions of "Sig Turbomachinery Library OpenFoamTurbo"

From OpenFOAMWiki
(Retrieving the source code: Added 1.5 instructions)
Line 15: Line 15:
 
mkdir $WM_PROJECT_USER_DIR/src
 
mkdir $WM_PROJECT_USER_DIR/src
 
cd $WM_PROJECT_USER_DIR/src
 
cd $WM_PROJECT_USER_DIR/src
 +
</bash>
 +
For OpenFOAM-1.4.1:
 +
<bash>
 
svn checkout https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Breeder/OSIG/TurboMachinery/src/OpenFoamTurbo OpenFoamTurbo
 
svn checkout https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Breeder/OSIG/TurboMachinery/src/OpenFoamTurbo OpenFoamTurbo
 +
</bash>
 +
For OpenFOAM-1.5:
 +
<bash>
 +
svn checkout https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Breeder_1.5/OSIG/TurboMachinery/src/OpenFoamTurbo OpenFoamTurbo
 
</bash>
 
</bash>
  

Revision as of 12:02, 26 November 2008

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-1.4.1:

 
svn checkout https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Breeder/OSIG/TurboMachinery/src/OpenFoamTurbo OpenFoamTurbo

For OpenFOAM-1.5:

 
svn checkout https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Breeder_1.5/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: