Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Set correctly a muti-level adaptive refinement method

    • cesarj.95plus
      Subscriber

      Dear support,

      I am practicing with the adaptive mesh refinement over a simple 2D cylinder configuration. I would like to set the following refinement layers:

      • lvl 0 refinement for cells with vorticity-mag< 0.1
      • lvl 1 refinement for cells with 0.1<=vorticity-mag < 0.25
      • lvl 2 refinement for cells with 0.25<=vorticity-mag < 2.0
      • lvl 3 refinement for cells with 2.0<=vorticity-mag

      I have created for this reasons 6 cell registers

      • lvl_1_ref that marks the cells for refinement where vorticity-mag > 0.1
      • lvl_1_coa that marks the cells for coarseing where vorticity-mag < 0.09
      • lvl_2_ref that marks the cells for refinement where vorticity-mag > 0.25
      • lvl_2_coa that marks the cells for coarseing where vorticity-mag < 0.24
      • lvl_3_ref that marks the cells for refinement where vorticity-mag > 2.0
      • lvl_3_coa that marks the cells for coarseing where vorticity-mag < 1.95

      So if we start from a base grid, regions where vorticity-mag > 2.0 will be afected by lvl_1_ref, lvl_2_ref and lvl_3_ref and therefore a grid refinement level 3 is achived. For regions where vorticity-mag > 0.1, only lvl_1_ref will be applied and a grid refinement level 1 is achieved.

      However I see than only with the lvl_1_ref and lvl_1_coa refinement and coarsening criterias, the levels 3 of grid refinement are achieved. Is there any better way to apply each cell refinement level to a specific value of vorticity?

       

    • cesarj.95plus
      Subscriber

      Well let's try again with more context:

      I am using automatic mesh refienemt with the refinement/coarsening criteria specified above. In the first time step I apply manually the refinements in order to have the desired mesh refinements at the start of the next iteration and concentrate the cells at the high vorticity regions. The image below shows the cell refinement level in the domain at time step 1 (blue = lvl 0, cyan = lvl 1, yellow = lvl 2 and red is lvl 3):

      Now this is time step 25, as you can see the vortex core start to get closer and closer and the coarsening step isn't working

      Beyond a certain time step (around 100 time steps) the mesh clusters merge and the mesh starts to be constant. The image below is time step 500. It is also relevant to mention that the mesh patterns from time step 1 are kept and you can clearly identify where the mesh was refined initially.

      Can someone explain to me why this is happening in such a simple scenario?

    • skulkarn
      Subscriber

      Hello,

      Which type of mesh you are using? is it hex /tet or mixed?

    • cesarj.95plus
      Subscriber

      Hello,

      This is a 2D triangular mesh with quads at the inflation layer. But why is this relevant?

    • cesarj.95plus
      Subscriber

      Hi I am bumping into this again,

      How does the mesh affect to the refining/coarsening criteria? 

    • skulkarn
      Subscriber

      In Ansys Fluent, adaptive mesh refinement (AMR) can be limited or stopped after a small number of refinement cycles by user-defined refinement-level limits, cell-size limits, or by mesh-type constraints; if any of these criteria are met after the first refinement, no further adaptation will occur. The behavior is not specific to tetrahedral meshes in what I can see, but to how AMR limits and constraints are configured for any supported cell type.

      Maximum refinement level reached: Fluent AMR uses a maximum refinement level so that different regions cannot refine arbitrarily; once the local maximum level is attained in the adapted region during the first cycle, further cycles will not create smaller cells there.
       
      Minimum cell size / mesh constraints: AMR is governed by constraints like minimum cell size to avoid excessive refinement. If the first refinement cycle brings cells down to (or very close to) this minimum, additional cycles are effectively blocked and the process appears to “stop.”
       
      Refinement-level cap set by user: When using the Adapt tools, you can explicitly set a max level of refinement; if, for example, it is set to 1 or 2, Fluent will refine only up to that level and no further cycles will increase resolution, even if AMR is nominally “on.”

    • cesarj.95plus
      Subscriber

      Yes I have set the following controls

      maximum_refinement_level=3
      maximum_cell_count=750000
      minimum_edge_length=1e-4

      They work fine in the first iteration (first screenshot) but then it seems that the cells affected by the initial manual mesh refinement are frozen (their cell refinement level doesn't change anymore with the automatic refinement). Then during the automatic adaption,I have cells than continue to be refined but aren't marked for coarsening and this is why you can see the wave being refined and having constant refinement levels.

      So I don't fully understand why the cells aren't being coarsened.

       

Viewing 6 reply threads
  • You must be logged in to reply to this topic.
[bingo_chatbox]