Does generatemesh refine or remesh?

11 vues (au cours des 30 derniers jours)
Ronald Haynes
Ronald Haynes le 24 Jan 2023
Réponse apportée : Kartik le 20 Mar 2023
Hi folks, I understand that generatemesh can be used to increase mesh density near specified vertices or edges. Is this done smartly by refining elements in that region or is a complete remesh actually completed?
  2 commentaires
Rik
Rik le 25 Jan 2023
Since the documentation doesn't show that can use the previous mesh, so my expectation is that a complete remesh will happen. I don't know whether there would be caching involved internally.
Why are you asking this?
Ronald Haynes
Ronald Haynes le 25 Jan 2023
Simply for reasons of efficiency and the ability to have better control of what is happening to the mesh.

Connectez-vous pour commenter.

Réponses (1)

Kartik
Kartik le 20 Mar 2023
Hi,
The 'generatemesh' function can be used to increase the mesh density near specified vertices or edges. The function uses an adaptive refinement algorithm that refines elements in the specified region without remeshing the entire domain.
The algorithm works by first generating an initial mesh and then refining the elements in the specified region based on an error estimate. The error estimate is calculated using a refinement function that measures the error in the solution (e.g., the difference between the exact solution and the numerical solution) and compares it to a user-defined tolerance. If the error is above the tolerance, the elements in the specified region are refined by dividing them into smaller elements. This process is repeated until the error is below the tolerance or until a maximum number of refinement levels is reached.
The adaptive refinement algorithm used by 'generatemesh' is designed to be smart and efficient, as it only refines the elements that need to be refined and does not remesh the entire domain. This allows the function to generate meshes with high accuracy and resolution while minimizing the computational cost.

Tags

Produits


Version

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by