CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Using RAS turbulence modelling in multiphaseEulerFoam (OF 2.1.1) (https://www.cfd-online.com/Forums/openfoam-solving/145020-using-ras-turbulence-modelling-multiphaseeulerfoam-2-1-1-a.html)

anuragm November 26, 2014 09:45

Using RAS turbulence modelling in multiphaseEulerFoam (OF 2.1.1)
 
Hello everyone!
From what I've gathered, multiphaseEulerFoam is a LES-based solver. Since I intend to include population balance equations to this solver, I would like to use a less computationally intensive turbulence modelling (RAS). I'm trying to modify the solver so that the turbulence model may be switched from the case directory using turbulenceProperties. I made the following changes:
1. In the file multiphaseEulerFoam.C
Code:

#include "LESModel.H"
to
Code:

#include "turbulenceModel.H"
and,
Code:

sgsModel->correct();
to
Code:

turbulence->correct();
2. In the file createFields.H

Code:

autoPtr<incompressible::LESModel> sgsModel
    (
        incompressible::LESModel::New(U, phi, fluid)
    );

to
Code:

autoPtr<incompressible::turbulenceModel> turbulence
    (
        incompressible::turbulenceModel::New(U, phi, fluid)
    );

3. In the file UEqns.H

Code:

volScalarField nuEff(sgsModel->nut() + iter().nu());
to
Code:

volScalarField nuEff(turbulence->nut() + iter().nu());
4. In the file Make/options added the following lines:
Code:

-I$(LIB_SRC)/turbulenceModels/incompressible/turbulenceModel \
Code:

-lincompressibleTurbulenceModel \
Is this all that should be changed in the solver? The solver compiles fine after making these changes in OF 2.3.x. In OF 2.1.1, however, I get a lot of errors.


All times are GMT -4. The time now is 23:23.