Adding LES to a laminar solver
Hi there !
My question is about adding turbulence to a laminar solver. I'm using rheoEFoam to simulate a flow with electro-kinetic effects:cool:. Unfortunately, this solver is laminar:(; I want to simulate electric-flow interaction using LES(Large Eddy Simulation). Do you have any idea doing so? Best wishes:) Ali |
Hi Ali,
The big question would be whether you want to keep your rheological models or do you have a Newtonian fluid and only want to use the electric library? The former would be complicated, the latter much easier. |
Hi ano:)
My case is the latter, although there is a file named constitutiveProperties in constant directory of a rheoEFoam problem in which you could set the "type" as Newtonian and not necessarily the other models. |
Hello Ali,
The OpenFoam turbulence model uses the inbuilt transport model, which calculates the viscosity, so that the turbulence model can add the molecular and turbulent viscosity to an effective viscosity. Therefore, it is better to stick to the inbuilt transport model instead of the constitutive model, when you want to have turbulence. You have to do two things: A) get rid of the constitutive model and B) use instead the inbuilt OpenFoam transportmodel to describe your viscosity and the turbulencemodel to describe your turbulence. (0.First copy the solver to a new directory and rename it (change the names in Make/files and rhoEFoam.C). Compile with 'wmake' to see whether it works.) A. Get rid of constitutive model: 1. Delete in createFields.H: Code:
Code:
IOdictionary cttProperties 2. Delete in rheoEFoam.C (or the new name you use): Code:
#include "constitutiveModel.H" Code:
// ---- Solve constitutive equation ---- B) Use instead the inbuilt OpenFoam transportModel to describe your viscosity and the turbulenceModel to describe your turbulence: 1. Add at the end of createFields.H the lines to create a transport model instance and a turbulence instance. And also a transportProperties dictionary to read the density whcih you need for the electric forcing: Code:
singlePhaseTransportModel laminarTransport(U, phi); First to read the declarations of the transport and turbulence model into your solver. Code:
#include "ppUtilInterface.H" Code:
#include "initContinuityErrs.H" Code:
laminarTransport.correct(); Code:
( Code:
EXE_INC = \ In the end you can copy the transportProperties and turbulenceProperties e.g. from 'tutorials/incompressible/pimpleFoam/LES/channel395/constant', you have to add rho to the transportProperties file. I wonder whether one can use the 'normal' turbulence models for flow with electro-kinetic effects? |
I really appreciate your accurate, coherent and high velocity reply :D. I will do this and let you know what happens :). To the best of my
knowledge, RANS models don't fit for low Re problems with which I'm dealing. |
Quote:
6-in solver.C delete : Code:
bool sPS = cttProperties.subDict("passiveScalarProperties").lookupOrDefault<Switch>("solvePassiveScalar", false); Code:
if (sPS) C.writeOpt() = IOobject::AUTO_WRITE; Code:
if (sPS) Code:
dimensionedScalar rho_ = transportProperties.lookup("rho"); And that's it! It is successfully compiled! :D ano ! I really appreciate your co-operation.:) |
All times are GMT -4. The time now is 07:10. |