add_remeshing_process
Adds an MMG remeshing process to ProjectParameters.json so a Kratos mesh adapts once at setup via hessian or levelset refinement before solver initialization.
Instructions
Add an MMG remeshing process (MeshingApplication's mmg_process) to a ProjectParameters.json so the mesh is adapted while the case runs. strategy 'hessian' adapts to the second derivatives of the nodal scalar solution variable 'variable' (e.g. TEMPERATURE); 'levelset' refines around the zero of the signed-distance variable 'variable' (its GRADIENT variable must exist in the model part, e.g. via the solver's auxiliary_variables_list). Without min_size/max_size the sizes are derived from the current mesh. The mesh is remeshed ONCE at setup, before the solver initializes (initial_remeshing); the field driving the metric must already be on the nodes then (an mdpa NodalData block): processes that assign values run later. Remeshing inside the solution loop crashes standard Kratos solvers and is not offered. Remeshing renumbers nodes and elements, so such cases are refused by studies, checkpoints/resume, MPI launch and interactive sessions. Use mesh_remesh to refine an .mdpa offline instead - same result, inspectable mesh.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_size | No | ||
| min_size | No | ||
| strategy | No | hessian | |
| variable | No | ||
| model_part | No | ||
| parameters_file | Yes | ||
| freeze_sub_model_parts | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||