1

Previous: Turbulence model modification Up: Example of creating new Next: Flat Plate Test Case

This is an automatically generated documentation by LaTeX2HTML utility. In case of any issue, please, contact us at info@cfdsupport.com.

Testing new turbulence model

    • Copy tutorial test case cavity for solver pisoFoam (solver for unsteady incompressible turbulent flow):

      # cd $FOAM_RUN
      # cp -r $FOAM_TUTORIALS/incompressible/\
      pisoFoam/RAS/cavity ./

    • Test case is already preset

       

    • In file system/controlDict add line referring to new turbulence models library:

      $ {\textcolor{blue}{\mathsf {In \ Linux: }}}$

       

      libs ("libuserincompressibleRASModels.so");
      

      $ {\textcolor{red}{\mathsf {In \ Windows: }}}$

       

      libs ("libuserincompressibleRASModels.dll");
      

       

    • In file constant/turbulenceProperties change RASModel and add section with models coefficients:

       

      simulationType    RAS;
      
      RAS
      {
          RASModel        kEpsilonCprod;
      
          turbulence      on;
      
          printCoeffs     on;
      
          kEpsilonCprodCoeffs
          {
              Cprod       10.0;
          }
      }
      

       

    • Run test case:

      # blockMesh

      # pisoFoam > log &

       

    • Notice the model coefficients in solver output in file log

       

     

cavityTurb

Figure: Cavity model with kEpsilonCprod turbulence model