CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Using RAS turbulence modelling in multiphaseEulerFoam (OF 2.1.1)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 26, 2014, 10:45
Default Using RAS turbulence modelling in multiphaseEulerFoam (OF 2.1.1)
  #1
Member
 
Anurag
Join Date: Aug 2014
Location: Germany
Posts: 57
Rep Power: 12
anuragm is on a distinguished road
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.
anuragm is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible turbulence modelling bug in SRF solvers otm OpenFOAM Running, Solving & CFD 3 May 29, 2012 05:03
RAS Turbulence Models - Convective Term john_w OpenFOAM 3 May 29, 2010 22:31
k-ep turbulence modelling allan thomson Main CFD Forum 5 February 20, 2000 21:39
Question about Low Re turbulence modelling. ghlee Main CFD Forum 1 May 28, 1999 20:29
Multigrid Method in Turbulence Modelling Bipin Lokhande Main CFD Forum 1 November 11, 1998 20:20


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