Does generatemesh refine or remesh?

13 visualizaciones (últimos 30 días)
Ronald Haynes
Ronald Haynes el 24 de En. de 2023
Respondida: Kartik el 20 de Mzo. de 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 comentarios
Rik
Rik el 25 de En. de 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 el 25 de En. de 2023
Simply for reasons of efficiency and the ability to have better control of what is happening to the mesh.

Iniciar sesión para comentar.

Respuestas (1)

Kartik
Kartik el 20 de Mzo. de 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.

Etiquetas

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by