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

reactingMultiphaseEulerFoam new turbulance models

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 27, 2020, 10:29
Default reactingMultiphaseEulerFoam new turbulance models
  #1
Senior Member
 
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 369
Rep Power: 8
geth03 is on a distinguished road
hi,

i want to add my turbulunce model to reactingMultiphaseEulerFoam.
For that i created a copy of the solver to $FOAM_RUN.
I adjusted every make/file- and make/option-files already, so i renamed the solver and compiled successfully.

Obviously for reactingMultiphaseEulerFoam there are only 2 RAS models available, k-epsilon and k-omega-sst. those are created in the file
multiphaseCompressibleTurbulenceModels.C.

Code:
#include "phaseCompressibleTurbulenceModel.H"
#include "addToRunTimeSelectionTable.H"
#include "makeTurbulenceModel.H"

#include "laminarModel.H"
#include "RASModel.H"
#include "LESModel.H"


// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

makeTurbulenceModelTypes
(
    volScalarField,
    volScalarField,
    compressibleTurbulenceModel,
    PhaseCompressibleTurbulenceModel,
    ThermalDiffusivity,
    phaseModel
);

makeBaseTurbulenceModel
(
    volScalarField,
    volScalarField,
    compressibleTurbulenceModel,
    PhaseCompressibleTurbulenceModel,
    ThermalDiffusivity,
    phaseModel
);

#define makeLaminarModel(Type)                                                 \
    makeTemplatedLaminarModel                                                  \
    (phaseModelPhaseCompressibleTurbulenceModel, laminar, Type)

#define makeRASModel(Type)                                                     \
    makeTemplatedTurbulenceModel                                               \
    (phaseModelPhaseCompressibleTurbulenceModel, RAS, Type)

#define makeLESModel(Type)                                                     \
    makeTemplatedTurbulenceModel                                               \
    (phaseModelPhaseCompressibleTurbulenceModel, LES, Type)

#include "Stokes.H"
makeLaminarModel(Stokes);

#include "kEpsilon.H"
makeRASModel(kEpsilon);

#include "kOmegaSST.H"
makeRASModel(kOmegaSST);

#include "Smagorinsky.H"
makeLESModel(Smagorinsky);

#include "kEqn.H"
makeLESModel(kEqn);

// basic k omega model
#include "kOmega.H"
makeRASModel(kOmega);

// my model
#include "mykOmegaSST.H"
makeRASModel(mykOmegaSST);


// ************************************************************************* //
i tried to add the lines for the basic kOmega model because the links should be available from other two RAS models.

i also created local copies of kOmegaSST model in the same directory where multiphaseCompressibleTurbulenceModel.C is located. i changed names accordingly, so my files and classes etc are named mykOmegaSST.H etc.

so when i run ./Allmake from parent directory, compilation runs without error, but when i run my solver, it does not recognize my models. None of them.

does anybody know how to create turbulence models for reactingMultiphaseEulerFoam, it is not as trivial as creating copies of existing models and linking them in controldict with libs("...so");

thanks and regards
geth03 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
Latest Developed Turbulence Models Tobi OpenFOAM Running, Solving & CFD 15 August 26, 2020 12:40
High And Low Re Turbulance Models Please Help !! losiola OpenFOAM 1 October 1, 2019 09:22
Worse accuracy in LES models than in RANS models dferrando OpenFOAM Running, Solving & CFD 0 August 30, 2017 05:56
Eddy Viscosity Models and Reynolds Stress Models JuPa CFX 1 August 20, 2013 19:56
how to choose turbulance models t.sekhar babu FLUENT 1 May 15, 2008 09:14


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