|
[Sponsors] |
Question on simulating turbulent flow around a cylinder |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 19, 2023, 13:55 |
Question on simulating turbulent flow around a cylinder
|
#1 |
Senior Member
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8 |
Hello,
I have simulated flow around a cylinder in turbulent flow (Re=2*10^5) with the K- omega SST in 3D. However, I have a question about the vorticity field that I have attached. Why there is such let's say noise in the area where I have shown by arrow?!! I am going to share my fvsolution and fvscheme to have a better discusion. Could you give me general advice on this matter? Thank you. Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v2106 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object fvSolution; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // solvers { p { solver GAMG; smoother DICGaussSeidel; tolerance 1e-06; relTol 0.05; } pFinal { $p; relTol 0; } "(U|k|omega|s)" { solver PBiCG; preconditioner DILU; tolerance 1e-6; relTol 0.1; } "(U|k|omega|s)Final" { $U; relTol 0; } } SIMPLE { nNonOrthogonalCorrectors 0; pRefCell 0; pRefValue 0; } PIMPLE { nOuterCorrectors 1; nCorrectors 3; nNonOrthogonalCorrectors 1; pRefCell 0; pRefValue 0; momentumPredictor yes; correctPhi no; } relaxationFactors { fields { } equations { ".*" 1; } } // ************************************************************************* // Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v2112 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object fvSchemes; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // ddtSchemes { default backward; } gradSchemes { default Gauss linear; grad(p) Gauss linear; } divSchemes { default none; div(phi,U) Gauss linear; div(phi,k) Gauss limitedLinear 1; div(phi,omega) Gauss limitedLinear 1; div(phi,s) Gauss limitedLinear 1; div((nuEff*dev2(T(grad(U))))) Gauss linear; } laplacianSchemes { default Gauss linear corrected; } interpolationSchemes { default linear; } snGradSchemes { default corrected; } wallDist { method meshWave; nRequired yes; } // ************************************************************************* // |
|
December 21, 2023, 02:09 |
|
#2 |
Senior Member
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8 |
I'm still looking for your contribution.
|
|
December 25, 2023, 05:09 |
|
#3 |
Senior Member
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8 |
Any idea 💡??
|
|
December 26, 2023, 16:20 |
|
#5 |
Senior Member
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8 |
Thank you dlahaye for the reply,
No it is not the issue of mesh refinement to some what. Actually, couple of hours ago I found that the problem is very sensitive with div(phi, U) scheme. What I found is that Code:
div(phi,U) Gauss LUST grad(U); Code:
div(phi,U) Gauss linear; |
|
December 27, 2023, 04:59 |
|
#7 |
Senior Member
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8 |
I will share my results with different div. Schemes.
Thanks. |
|
December 27, 2023, 06:23 |
|
#8 |
Senior Member
|
Results using various div schemes are hard to make sense of in the absence of a analytical reference solution.
My suggestion again is to try various mesh sizes. I do realize this is a nuisance as 1/ you will need to create various meshes; 2/ you will need to run on various meshes. |
|
December 27, 2023, 07:30 |
|
#9 |
Senior Member
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8 |
I'll try it.
Thank you again dlahaye. |
|
January 2, 2024, 11:11 |
|
#11 |
Senior Member
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8 |
Hello everyone,
I hope you have nice days. I came back after few days in response to previous posts. As you saw I came across smearing gradients for flow around a cylinder at Re=200000 with the following mesh and discretization scheme: Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v2112 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object fvSchemes; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // ddtSchemes { default backward; } gradSchemes { default Gauss linear; grad(p) Gauss linear; } divSchemes { default none; div(phi,U) Gauss linear; div(phi,k) Gauss limitedLinear 1; div(phi,omega) Gauss limitedLinear 1; div(phi,s) Gauss limitedLinear 1; div((nuEff*dev2(T(grad(U))))) Gauss linear; } laplacianSchemes { default Gauss linear corrected; } interpolationSchemes { default linear; } snGradSchemes { default corrected; } wallDist { method meshWave; nRequired yes; } // ************************************************************************* // However, in order to get rid of this issue I employed various methods in openfoam. The procedures are as below: 1) Studing the effects of the mesh refinement and transition between cells (Number of cells between layers): I adopted the same numerical scheme and used refinement level of (6,6) instead of level of (5,5) for cylinder, Nevertheless, there was not significant changes!2) Studing the effects of different numerical schemes on the same mesh: In this state, I consider previuos mesh with refinement level of (5,5) and utilized different discretization scheme whether spatial or temporal. I tested various methods for ddtSchemes (Time) , gradSchemes (Gradient) and divSchemes (Divergence) ; what I found is that just applying different methods for divergence of velocity (U) considerably affects the solution of our problem. Last edited by saeed jamshidi; January 4, 2024 at 02:25. |
|
January 3, 2024, 01:30 |
|
#12 |
Senior Member
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8 |
Due to attachment restrictions, I have to make multiple posts, So I apologise for that.
…2) Besides, once again on the previous mesh with a refinement level of (5,5); the Gauss linear method was kept constant as a gradient Scheme and different divergence schemes were utilized: |
|
January 3, 2024, 01:36 |
|
#13 |
Senior Member
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8 |
...2)
|
|
January 3, 2024, 02:06 |
|
#14 |
Senior Member
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8 |
3) Studing the effects mesh topology:
In conclusion, linearUpwind grad(U) scheme along with the O-Grig type was the best choice. If you have any complementary opinions and ideas it would be really welcome. Best Regards, Saeed Jamshidi |
|
January 3, 2024, 17:05 |
|
#16 |
Senior Member
ONESP-RO
Join Date: Feb 2021
Location: Somwhere on Planet Earth
Posts: 127
Rep Power: 5 |
linear scheme is second-order unbounded. That's why you are getting those oscillations. You should never use linear scheme for divergence terms under any circumstances for RANS simulations.
Regards Update: Specified that linear scheme is not suitable for RANS simulations.
__________________
Don't keep making the same mistakes. Try to make new mistakes. Last edited by NotOverUnderated; January 4, 2024 at 07:39. |
|
January 4, 2024, 06:27 |
|
#17 |
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 736
Rep Power: 14 |
Nice thread, but let me just address the following:
this is too sweeping. There are plenty of situations where it is acceptable, or even necessary to apply linear for divergence terms, since it provides a cleaner discretisation than linearUpwind (linearUpwind is more diffusive or dispersive than central differencing ... I forget which) - LES or DNS simulations are an example. You're right, though, that for the majority of RANS simulations, linearUpwind can be a more stable scheme, but this comes at a slight accuracy cost (you don't get anything for free in this life!) so pick what works best for you and be careful with the linearUpwind gradient limiter ... which will also lower the accuracy of the scheme. |
|
January 4, 2024, 07:10 |
|
#18 | |
Senior Member
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 8 |
Thank all of you for the opinions.
I want to add another type of divergence scheme which is frequently used in openfoam tutorials for the Detached Eddy Simulation, like Code:
surfaceMountedCube Quote:
Also, I employed this scheme and it gave me satisfactory result for the IDDES method: Screenshot (237).jpg |
||
January 4, 2024, 07:40 |
|
#19 | |
Senior Member
ONESP-RO
Join Date: Feb 2021
Location: Somwhere on Planet Earth
Posts: 127
Rep Power: 5 |
Quote:
__________________
Don't keep making the same mistakes. Try to make new mistakes. |
||
January 4, 2024, 08:02 |
|
#20 |
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 736
Rep Power: 14 |
Yep - that makes sense Saeed: linear in the LES regions and linearUpwind in the RANS regions.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ncrit for a glider Xfoil. How to use it. GPT4 answer | AlanMattanó | Main CFD Forum | 0 | April 10, 2023 13:16 |
How much does the source code for this turbulent flow CFD code worth in US $? | Dr Youssef Hafez | Main CFD Forum | 43 | January 4, 2023 02:13 |
Issues on the simulation of high-speed compressible flow within turbomachinery | dowlee | OpenFOAM Running, Solving & CFD | 11 | August 6, 2021 07:40 |
About Some Concepts:Laminar flow, turbulent flow, steady flow and time-dependent flow | Jing | Main CFD Forum | 8 | October 5, 2018 18:02 |
Drag force coefficient too high for a flow past a cylinder using komega sst | Scabbard | OpenFOAM Running, Solving & CFD | 37 | March 21, 2016 17:16 |