Does anyone have an example of an input deck for a single phase flow, with adaptive mesh refinement based on density, velocity or vorticity? Thanks.
Hi Jeff,
I’ve attached a case file that demonstrates adaptive mesh refinement using grad_vel as the tagging criterion. The domain is a box that is periodic in the X and Y directions, with a mass inflow on the Z-low face and a pressure outflow on the Z-high face.
For the inflow, I used two boundary conditions:
- The first covers the entire plane, setting the inflow velocity to zero.
- The second defines a small circular jet at the center.
The case runs for 100 steps, regridding every 5 steps based on grad_vel. In the attached visualization, you can see the fine mesh following the jet as it penetrates into the domain.
I also included a refinement region at the inlet. This is important because the inlet is too small to be captured by the coarse grid—without refinement, you won’t get any flow into the system!
Thanks Jordan! That works fine (must use 26.02 release with renamed keywords). I went a step further with a finer mesh and up to 4 levels of refinements (and lower viscosity). The animation below shows the vorticity contours along a vertical slice (top) and isosurfaces of the velocity magnitude, colored by vorticity (bottom), with an overlay of the AMR blocks.
and these show the various AMR levels at a given time:
I’m glad that case provided a successful starting point! Enabling the AMR capability in MFIX-Exa is still fairly new, so please let us know if you run into any issues. And as always, you have a real talent for creating eye-catching animations—great work!
