Difference between revisions of "Extend-bazaar/Toolkits/negativeSpalartAllmaras"

From OpenFOAMWiki
(Created page with "== Description == This code implements Negative Spalart-Allmaras One-Equation Model (SA-neg). Reference: https://turbmodels.larc.nasa.gov/spalart.html == Installation == {...")
 
(Installation)
 
Line 12: Line 12:
 
* Move files by
 
* Move files by
 
<bash>
 
<bash>
mkdir $FOAM_SRC/turbulenceModels/incompressible/RAS/SpalartAllmarasNeg
+
mkdir $FOAM_SRC/turbulenceModels/compressible/RAS/SpalartAllmarasNeg
mv SpalartAllmarasNeg.H SpalartAllmarasNeg.C $FOAM_SRC/turbulenceModels/incompressible/RAS/SpalartAllmarasNeg
+
mv SpalartAllmarasNeg.H SpalartAllmarasNeg.C $FOAM_SRC/turbulenceModels/compressible/RAS/SpalartAllmarasNeg
 
</bash>
 
</bash>
  
* Modify $FOAM_SRC/turbulenceModels/incompressible/RAS/Make/files by adding a line for the model like following
+
* Modify $FOAM_SRC/turbulenceModels/compressible/RAS/Make/files by adding a line for the model like following
 
<bash>
 
<bash>
 
SpalartAllmaras/SpalartAllmaras.C
 
SpalartAllmaras/SpalartAllmaras.C

Latest revision as of 13:02, 31 January 2019

1 Description

This code implements Negative Spalart-Allmaras One-Equation Model (SA-neg).

Reference: https://turbmodels.larc.nasa.gov/spalart.html

2 Installation

Valid versions: OF Version 32ext.png

  • Move files by
 
mkdir $FOAM_SRC/turbulenceModels/compressible/RAS/SpalartAllmarasNeg
mv SpalartAllmarasNeg.H SpalartAllmarasNeg.C $FOAM_SRC/turbulenceModels/compressible/RAS/SpalartAllmarasNeg
  • Modify $FOAM_SRC/turbulenceModels/compressible/RAS/Make/files by adding a line for the model like following
 
SpalartAllmaras/SpalartAllmaras.C
SpalartAllmarasNeg/SpalartAllmarasNeg.C <- new line
  • Compile
 
cd $FOAM_SRC/..
./Allwmake.firstInstall

3 Usage examples

To use this code, insert into RASProperties:

 
RASModel        SpalartAllmarasNeg;
 
SpalartAllmarasNegCoeffs
{
    StildaModification      true;
    negativeNuTilda         true;
}

4 Documentation

This implementation is based on publication by NASA's "Spalart-Allmaras Model" page.

5 History

31 Jan 2019: First upload