Understanding the Basics of Mesh Refinement in NGSolve

Hi everyone,

I am new to NGSolve and currently trying to understand how mesh refinement works within the platform. I have read some of the documentation but would appreciate a simple, step by step explanation of how to refine a mesh for a basic 2D problem.

Specifically, I would like to know:

  1. How to refine the mesh manually and automatically.
  2. What are the differences between global and local refinement.
  3. Are there any tips for maintaining good mesh quality during refinement.

Any example scripts or relevant sections in the documentation that can help me would be great too. I am looking forward to your insights.
I also read this topic on this site https://docu.ngsolve.org/v6.2.2103/i-tutorials/unit-golang however I am unable to find anything helpful for me.

Thanks in advance.

Best,
[Dianna]

I recommend going to the ngsolve documentation and searching for “refine” like in this LINK

There are also the interactive tutorials, with this section probably being the most relevant.