|
[Sponsors] |
reactingMultiphaseEulerFoam new turbulance models |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 27, 2020, 10:29 |
reactingMultiphaseEulerFoam new turbulance models
|
#1 |
Senior Member
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 369
Rep Power: 8 |
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 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 |
|
|
|
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 |