Extend-bazaar/Toolkits/nutSAWallFunction

From OpenFOAMWiki

1 Description

This code implements Wall function boundary condition for nut which was formulated from analytic solution of SA model. This wall function works with any RANS turbulence model since it depends only on U and nu.

Reference:

   @verbatim
       "Modifications and Clarifications for the Implementation
        of the Spalart-Allmaras Turbulence Model"
       S.R. Allmaras,
       F.T. Johnson,
       P.R. Spalart
       Seventh International Conference on Computational Fluid Dynamics 
       (ICCFD7), 2012, pp. 1-11.
   @endverbatim

2 Installation

Valid versions: OF Version 32ext.png

  • Move files by
 
mkdir $FOAM_SRC/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutSAWallFunction
mv nutSAWallFunctionFvPatchScalarField.H nutSAWallFunctionFvPatchScalarField.C $FOAM_SRC/turbulenceModels/incompressible/RAS/derivedFvPatchFields/wallFunctions/nutWallFunctions/nutSAWallFunction
  • Modify $FOAM_SRC/turbulenceModels/incompressible/RAS/Make/files by adding a line for the wall function in nutWallFunctions section. For example:
 
nutWallFunctions = $(wallFunctions)/nutWallFunctions
$(nutWallFunctions)/nutkWallFunction/nutkWallFunctionFvPatchScalarField.C
$(nutWallFunctions)/nutWallFunction/nutWallFunctionFvPatchScalarField.C
$(nutWallFunctions)/nutRoughWallFunction/nutRoughWallFunctionFvPatchScalarField.C
$(nutWallFunctions)/nutSpalartAllmarasWallFunction/nutSpalartAllmarasWallFunctionFvPatchScalarField.C
$(nutWallFunctions)/nutSpalartAllmarasStandardWallFunction/nutSpalartAllmarasStandardWallFunctionFvPatchScalarField.C
$(nutWallFunctions)/nutSpalartAllmarasStandardRoughWallFunction/nutSpalartAllmarasStandardRoughWallFunctionFvPatchScalarField.C
$(nutWallFunctions)/nutLowReWallFunction/nutLowReWallFunctionFvPatchScalarField.C
$(nutWallFunctions)/nutSAWallFunction/nutSAWallFunctionFvPatchScalarField.C <- new line
  • Compile
 
cd $FOAM_SRC/..
./Allwmake.firstInstall

3 Usage examples

To use this code, insert into nut:

 
    nut
    {
        type            nutSAWallFunction;
        value           uniform 0;
    }

4 Documentation

This implementation is based on publication by Allmaras et al (2012).

5 History

31 Jan 2019: First upload