|
[Sponsors] |
January 28, 2020, 00:24 |
Compressible Dynamic Smagorinsky SGS Model
|
#1 |
Member
Maximus Arelius
Join Date: Jan 2017
Location: Morocco
Posts: 36
Rep Power: 9 |
Hi FOAMers,
If anybody missed the compressible dynamic Smagorinsky model in the newer versions of OF (v4, v5,...), I am attaching a working version known to work with v4 and v5 (and above). The code is very well commented, hence it is easier to understand. Also, some definitions (like filtered strain rate,..etc) are Favre Filtered to be consistent with the literature.It seems that OpenFOAM's dynamic models are not compressible per se. This may be not be useful for compressible flows as well as low Mach reacting flows with a variable density. You may use the attached version it if you want. Please let me know you comments.
__________________
-- 🃏Maximus🃏 Last edited by godfatherBond; January 28, 2020 at 06:24. |
|
September 7, 2021, 18:27 |
|
#2 |
New Member
Donghun Kang
Join Date: Jan 2021
Posts: 4
Rep Power: 5 |
Hi Maximus,
I sent you a personal message to ask the compilation of your source codes. Could you check the inbox? Thank you. Paul |
|
September 9, 2021, 00:39 |
|
#3 | |
Member
Maximus Arelius
Join Date: Jan 2017
Location: Morocco
Posts: 36
Rep Power: 9 |
Quote:
1. Check the .H file. The reference is mentioned there. 2. For the turbulent properties, you just need to specify the "secondary" filter type. The constants are evaluated dynamically. Cheers..
__________________
-- 🃏Maximus🃏 |
||
September 9, 2021, 01:47 |
|
#4 | |
New Member
Donghun Kang
Join Date: Jan 2021
Posts: 4
Rep Power: 5 |
Quote:
1. For your reply for (2), secondary filter means: dynSmagorinskyCompCoeffs { filter simple; } like above? Thanks for your help. 2. In the source code, dynSmagorinsky.C, line 132-172, The coefficient, CI ( equ(17) in the M. Pino Martin's article) seems to be calculated. I was wondering why both CI and Ck are used. What does Ck mean? The same applies to Cd/Cs, line 74-128. +[2021.9.10]: I figured out Cs and Ck to be used for the output of Cd and CI, respectively. Cs and Ck are calculated with strain rate and filter. 3. Even though the compilation is made without critical errors, the run fails saying, rhoPimpleFoam: symbol lookup error: /opt/OpenFOAM/OpenFOAM-v2106/platforms/linux64GccDPInt32Opt/lib/libcompressibleTurbulenceModels.so: undefined symbol: _ZN4Foam9LESModels18dynSmagorinskyCompINS_15EddyDi ffusivityINS_18ThermalDiffusivityINS_27Compressibl eTurbulenceModelINS_11fluidThermoEEEEEEEE6calcCfEv I included turbulenceModels/transportModels in folders of 'compressible' and 'turbulenceModels.' Could you give me a hint for what library should be included in the sources? +[2021.9.10]: I successfully compiled codes with changing one line in the source code. The line, "virtual void calcCf(); //MA 19.JAN.2020", in dynSmagorinskyComp.H is not used in the computing process, which gives arise the problem in compilation. Thank you. Paul Last edited by Paul_AERO; September 10, 2021 at 22:01. |
||
September 13, 2021, 00:38 |
|
#5 | |
Member
Maximus Arelius
Join Date: Jan 2017
Location: Morocco
Posts: 36
Rep Power: 9 |
Quote:
I am a bit occupied at the moment. Pardon me if my replies are a bit late. 2. You may find the answers in the Ref. mentioned in the code or in any standard article on dynamic modelling. Hence, I will skip this. 3. I think the error is related to the Makefiles. If you do not add appropriate dependent files in "options". This does not have anything to do with the source code of the turbulence model. It is a minor error and I am sure you will be able to find the solution in a jiffy. Cheers..
__________________
-- 🃏Maximus🃏 |
||
September 16, 2021, 02:45 |
Compilation Issues
|
#6 |
Member
Maximus Arelius
Join Date: Jan 2017
Location: Morocco
Posts: 36
Rep Power: 9 |
Hi,
If you have compilation issues, try adding the following headers explicitly: Code:
#include "CompressibleTurbulenceModel.H" #include "compressibleTransportModel.H" #include "fluidThermo.H" #include "addToRunTimeSelectionTable.H" #include "makeTurbulenceModel.H" #include "ThermalDiffusivity.H" #include "EddyDiffusivity.H" #include "LESModel.H"
__________________
-- 🃏Maximus🃏 Last edited by godfatherBond; September 18, 2021 at 00:49. |
|
December 2, 2021, 07:37 |
Thank You
|
#7 |
New Member
Krishna
Join Date: Jul 2020
Posts: 1
Rep Power: 0 |
Thanks godfatherBond
The turbulent model is working fine. Regards kcm2102 |
|
December 5, 2023, 23:12 |
compressible dyn turbulence
|
#8 |
New Member
you
Join Date: Jul 2023
Posts: 4
Rep Power: 3 |
Hello, could you please show me your file for reference? Can you provide a calculation example file if it is convenient? I successfully compiled the file, but it did not work properly. Thank you.
|
|
December 5, 2023, 23:58 |
thanks
|
#9 | |
New Member
you
Join Date: Jul 2023
Posts: 4
Rep Power: 3 |
Quote:
|
||
December 6, 2023, 00:08 |
thanks
|
#10 | ||
New Member
you
Join Date: Jul 2023
Posts: 4
Rep Power: 3 |
Quote:
Quote:
|
|||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Updating the turbulent schmidt number in dynamic smagorinsky model | pvpnrao | OpenFOAM Running, Solving & CFD | 3 | November 6, 2020 04:52 |
dynamic smagorinsky model in OpenFOAM 4.1 | zhangxc0223 | OpenFOAM Running, Solving & CFD | 2 | October 29, 2018 04:53 |
Compressible vs incompressible SGS model! | zhangyan | Main CFD Forum | 10 | June 4, 2016 05:39 |
Difference between Constant smagorinsky and Dynamic model Smagorinsky model | cfdmms | Main CFD Forum | 8 | January 21, 2016 05:44 |
dynamic Smagorinsky model for compressible LES in OF | openfoammaofnepo | OpenFOAM | 1 | September 7, 2013 12:22 |