Does generatemesh refine or remesh?

11 次查看(过去 30 天)
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 个评论
Rik
Rik 2023-1-25
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 2023-1-25
Simply for reasons of efficiency and the ability to have better control of what is happening to the mesh.

请先登录,再进行评论。

回答(1 个)

Kartik
Kartik 2023-3-20
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.

标签

Community Treasure Hunt

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

Start Hunting!

Translated by