Adaptive Mesh General Workflow
The adaptive Mesh model enables a simpler setup of the initial mesh where detailed flow characteristics are captured with the adapted mesh during the simulation proceeds. The initial mesh only need to have enough cells to capture the basic flow characteristics.
In addition, the surface mesh of the initial mesh must represent the CAD geometry sufficiently well since no surface reconstruction is supported by Adaptive Mesh Refinement (AMR). The AMR adaption is always based on the tessellated surface in the initial mesh.
Once you start AMR, do not apply any region or boundary commands such as those for removing invalid cells, combining regions, or combining boundaries since these commands change the cell connectivity saved by the AMR solver.
注 | AMR works for all the 3D volume mesh types, but not for 2D meshes or 2D axisymmetric analyses. |
-
Prepare the initial mesh according to the following guidelines:
- Create a volume mesh that is fine enough to capture the basic flow characteristics.
- Avoid creating an unnecessarily fine mesh as AMR cannot coarsen the initial mesh.
- AMR cannot coarsen or refine the mesh of shell regions for fluid film. Therefore, if your simulation contains fluid film, create a mesh that is appropriate to capture the film flow characteristics throughout the entire simulation.
-
If you are applying user-defined mesh adaption, prepare the field function or
table that tells the AMR solver when and where to refine, keep, or coarsen the
mesh. Refer to the following items for guidance:
- To trigger mesh refinement during the solution
initialization stage, select the [user-defined mesh
adaption] node and activate Refine in Solution Initialization.
Do not activate this option unless you are sure that the initial solution reflects the basic flow pattern. Refining the initial mesh with an inadequate initial solution is counterproductive when applying AMR. You are advised to deactivate this option whenever you use grid sequencing for the coupled solver.
- To capture discontinuities such as shocks, you are advised
to use gradient of discontinuous solution multiplied with the adaption
cell size which represents the change in a cell. For example,
mag(grad(${MachNumber}))*(${AdaptionCellSize})
- To reduce the discretization error associated with smoothly
varying functions, such as for applications in aerodynamics, use the
Laplacian of representative solution variables. For example,
abs(div(grad(${TotalPressure})))*pow(${AdaptionCellSize},2)
- Select the [user-defined mesh
adaption] node and set the value for Max Refinement Level.
Choose the refinement level based on the initial mesh. If the initial mesh is relatively fine, use a low Max Refinement Level to avoid high cell count.
- To trigger mesh refinement during the solution
initialization stage, select the [user-defined mesh
adaption] node and activate Refine in Solution Initialization.
-
To activate the Adaptive Mesh model:
-
To specify a user-defined mesh refinement:
- Right-click the node and select .
- Select the [user-defined mesh adaption] node and set the properties. Refer to User-Defined Mesh Adaption Settings for details.
- Select the User-Defined Mesh Adaption Settings for details. node and set the properties. Refer to
-
For model-driven adaption criteria, refer to the model-specific workflows:
- VOF: Setting Up Free Surface Refinement
- Overset: Setting Up Overset Mesh Refinement
- Topology Optimization: Applying AMR for Topology Optimization
- Reacting Flow: Setting Up Mesh Adaption for Reacting Flows
- Virtual Disk: 设置虚拟盘体网格细化
-
Select the 自适应网格求解器参考 for
details.
node and set the properties. Refer to
- To modify the update frequency of mesh adaption, select the
Trigger node and set the Trigger Mode with the
corresponding values. You can trigger adaption based on number of
iterations, time-step frequency (including delta time), or through
update events that you specify.
The flow solution should proceed on a larger scale before you trigger AMR again to adapt the mesh.
- To modify the update frequency of mesh adaption, select the
Trigger node and set the Trigger Mode with the
corresponding values. You can trigger adaption based on number of
iterations, time-step frequency (including delta time), or through
update events that you specify.
- Right-click the Refine/Coarsen Mesh Once. node and select
-
To revert mesh refinement and restart from the initial mesh, you can choose
from:
- Select Adaption and Reset Mesh in the Clear Solution dialog. in the toolbar and activate both
- Right-click the Clear Adaption. node and select
- Select the Enable Adaption. node and deactivate
For complete example workflows applying AMR, refer to the following tutorials: