Difference between revisions of "Sig Turbulence/Library Added Incompressible RAS Models"
Mirzapopovac (Talk | contribs) (→Retrieving the source code) |
(→Library content:: updated links) |
||
(14 intermediate revisions by 3 users not shown) | |||
Line 11: | Line 11: | ||
=== Retrieving the source code === | === Retrieving the source code === | ||
− | * To retrieve the source code for this library | + | * To retrieve the source code for this library, mind the difference between the OpenFOAM versions. |
− | <bash> | + | For OpenFOAM-1.5: |
− | mkdir -p $WM_PROJECT_USER_DIR/src/turbulenceModels/RAS | + | <bash>mkdir -p $WM_PROJECT_USER_DIR/src/turbulenceModels/RAS |
cd $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 | ||
</bash> | </bash> | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
For OpenFOAM-1.6: | For OpenFOAM-1.6: | ||
− | <bash> | + | <bash>mkdir -p $WM_PROJECT_USER_DIR/src/turbulenceModels/incompressible |
− | svn checkout | + | 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 | ||
</bash> | </bash> | ||
=== Compiling the library === | === Compiling the library === | ||
− | * To compile 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: |
− | + | <bash>wmake libso | |
− | + | ||
− | + | ||
− | wmake libso | + | |
</bash> | </bash> | ||
=== Configuring your case for dynamically loading the library === | === 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: | * 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: | ||
− | + | <pre>libs ( "libaddedIncompressibleRASModels.so" );</pre> | |
=== Library content: === | === Library content: === | ||
Here is the content list of the addedIncompressibleRASModels library: | Here is the content list of the addedIncompressibleRASModels library: | ||
− | * [[ | + | * [[Sig_Turbulence/Library_Added_Incompressible_RAS_Models/kOmegaSSTF|The kOmegaSSTF turbulence model]] |
− | * [[ | + | * [[Sig_Turbulence/Library_Added_Incompressible_RAS_Models/zetaF0|The zetaF0 turbulence model]] |
== Others == | == Others == | ||
Back to [[Sig Turbulence]] | Back to [[Sig Turbulence]] | ||
− | |||
− |
Latest revision as of 16:03, 1 March 2014
Contents
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