Creating a User-Defined Adaptive Mesh Criterion
After selecting the Adaptive Mesh model in the physics continuum, you define a field function that returns an adaption criterion based on the gradient of the Mach number.
-
To create the field function:
-
Select the
node and set the properties as follows:
Node Property Setting Adaptive Mesh Prism Cell Refinement None Transition Width 1 Limit Cell Size By activating this option, the proposed child cell size is checked against the Min Adaption Cell Size below during the mesh refinement. If the predicted child cell size falls below the limit, the refinement is not executed for the parent cells.
✓ Min Adaption Cell Size 0.01m - Right-click the node and select .
-
Select the Max Refinement Level
to 1.
node and set For an industrial simulations a maximum refinement level of 2 or 3 would be more realistic. Here, however, in order to reduce the computation time required for the tutorial case, only one level of refinement is applied.
Note The Refine in solution init option is deactivated here, which means that no mesh adaption is carried out during the solution initialization process. Usually you activate this option only when starting from a well-converged initial solution. For example, you might start a transient simulation from a converged steady flow solution. -
Select the
node and set the properties as follows:
Node Property Setting Adaption Request Method Adaption Criterion Function Scalar Function RefineCriterionMachNumber Range [0.5,1.0] Note that for an industrial simulation the lower limit here could be increased to avoid refining cells far beyond the shock wave.
Above Max Refine Between Keep Below Min Coarsen By applying this adaption criterion, Simcenter STAR-CCM+ refines cells in which the Mach number is changing.
- Save the simulation.