r/CFD • u/Rodbourn • Mar 03 '20
[March] Adaptive Mesh Refinement
As per the discussion topic vote, March's monthly topic is "Adaptive Mesh Refinement".
Previous discussions: https://www.reddit.com/r/CFD/wiki/index
14
Upvotes
4
u/Rodbourn Mar 03 '20 edited Mar 03 '20
Here's a crude/poor man's method I used in my dissertation. I triggered the method by hitting the key 'r' in the console while it was running so that I could choose when to refine the flow, waiting for psuedo-steady states at the under resolved grids. That helped a lot with simulating buoyant flows/natural convection in a cavity at high Reynolds numbers from rest.
https://i.imgur.com/0OMlRR1.png
edit:
what it looks like when refined a few times:
https://i.imgur.com/DKoSmvi.png
6
u/TurboHertz Mar 03 '20 edited Mar 03 '20
Aww shoot I would have deleted my post if I thought it would actually get picked. My MASc thesis will be on AMR using adjoint methods for error estimation of things like force coefficients, but I don't start that until the fall so I'd be able able to have much better discussion then.
That being said, I'm still working on my BSc Thesis using proto-AMR. I'm basically trying to make efficient meshes for DES/LES by making meshes to resolve 80% of the TKE which seems to be a popular criterion. Here's a short video sweeping through an early test mesh, it's had some tweaks but it looks about right aside from the growth rate. I had to go through some work to get the adaption to work, but hopefully the new AMR feature in STAR-CCM+ will fix things.
I'm going to split up all my questions/discussions, please excuse the spam.
5
u/TurboHertz Mar 03 '20
Criterion: Is there any advantage in using the flow gradient instead of flow curvature? As an example, the peaks of a sine wave are low gradient and the slopes are high gradient, in contrast the refinement needs to resolve the curvature are inverse.
Some of the work I was looking at was comparing their method against gradient based refinement. Were they just picking an easy target?
3
u/TurboHertz Mar 03 '20 edited Mar 04 '20
Does anybody have experience refining based on turbulence equations instead of momentum equations?
edit: Turbulence model equations for RANS
6
u/CentralChime Mar 03 '20
What's a good starting point to read up on AMR?
2
u/[deleted] Mar 05 '20
I'm a big fan of AMR but I think it is often oversold in one particular area.
If you already run close to the minimum number of cells per CPU than AMR only allows you to run on fewer CPUS and not faster.
Secondly for time accurate problems it doesn't allow you to run finer meshes or capture more physics because your time step scales based on the smallest cells (yes there are implicit)
I bring this up because AMR looks like a great solution to LES issue of range scales within the domain (localized shear layer with much smaller scales than the rest of the domain) but it falls flat for these high fidelity methods.
2
u/jpanchog Mar 06 '20
Does someone here has some experience with AMR related to combustion applications?
1
u/[deleted] Mar 20 '20
Why does OpenFOAM have hexahedral mesh refinement but lack tetrahedral mesh refinement
1
u/bitdotben Mar 03 '20
Has anyone used the "new" AMR in StarCCM+ 2020.01? It was featured quite heavily in their announcements and I'm wondering what are the actual improvements in contrast to the older versions? Is it more "automatic" or what exactly does it do for me?
I'm currently working with AMR for shocks, so large density gradients, on trans and supersonic vehicles. So it would be interesting to see how much time I can save, or how much better the new system is compared to my current studies.