Sig Turbulence/Library Added Incompressible RAS Models

From OpenFOAMWiki

1 Library addedIncompressibleRASModels

The library addedIncompressibleRASModels will regroup the developments made by the Turbulence Special Interest Group related to the development of additional incompressible RAS turbulence models for OpenFOAM.

The source code for the library addedIncompressibleRASModels 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/turbulenceModels/RAS, but you can obviously install this source code anywhere you want.

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

1.1 Retrieving the source code

  • To retrieve the source code for this library, mind the difference between the OpenFOAM versions.

For OpenFOAM-1.5:

mkdir -p $WM_PROJECT_USER_DIR/src/turbulenceModels/RAS
cd $WM_PROJECT_USER_DIR/src/turbulenceModels/RAS
svn checkout svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_1.5/OSIG/Turbulence/src/turbulenceModels/RAS/incompressible/ incompressible

For OpenFOAM-1.6:

mkdir -p $WM_PROJECT_USER_DIR/src/turbulenceModels/incompressible
cd $WM_PROJECT_USER_DIR/src/turbulenceModels/incompressible
svn checkout svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_1.6/OSIG/Turbulence/src/turbulenceModels/incompressible/RAS/ RAS

1.2 Compiling the library

  • To compile the library, go to the directory created with checkout (as explained above: $WM_PROJECT_USER_DIR/src/turbulenceModels/RAS/incompressible for OpenFOAM-1.5, and $WM_PROJECT_USER_DIR/src/turbulenceModels/incompressible/RAS for OpenFOAM-1.6), and type:
wmake libso

1.3 Configuring your case for dynamically loading the library

  • In order to use the addedIncompressibleRASModel library with your cases, you need to add the following line at the end of your system/controlDict file:
libs ( "libaddedIncompressibleRASModels.so" );

1.4 Library content:

Here is the content list of the addedIncompressibleRASModels library:

2 Others

Back to Sig Turbulence