tan2 / DynEarthSol-old

A flexible modeling tool for geological/tectonic problems
MIT License
17 stars 15 forks source link

Mmg #5

Closed echoi closed 4 years ago

echoi commented 4 years ago

A new mesh optimizer, MMG (https://mmgtools.org for more information), has been integrated into DynEarthSol's remeshing process. Now, both 2D and 3D meshes can be optimized during remeshing based on plastic strain field: The greater plastic strain, the finer elements get.

The two main motivations for switching from the current remeshing scheme, triangle in 2D and libadaptivity in 3D, are:

Through 5 new input parameters, users can control the level of verbosity and the upper and lower limit of element size:

  1. param.mesh.mmg_debug: 1 - MMG print debugging info; 0 - debugging info not printed
  2. param.mesh.mmg_verbose: Integer >=0; the greater (e.g., 5) the more information on the progress of mesh optimization
  3. param.mesh.mmg_hmax: Double number to be multiplied to param.mesh.resolution. The product is the maximum size of elements allowed during remeshing.
  4. param.mesh.mmg_hmin: Double number to be multiplied to param.mesh.resolution. The product is the minimum element size allowed during remeshing.
  5. param.mesh.mmg_hausd: Double number to be multiplied to param.mesh.resolution. The product is the Hausdorff distance between the original and the remeshed surfaces.