mesh_size

Hi, everyone!
I want to ask how to know the size of the mesh refined by the center of gravity.

Thank you in advance!
shasha

######################
geo = SplineGeometry()
geo.AddRectangle( (0, 0), (1, 1), bcs = (“wall”, “outlet”, “wall”, “inlet”))
mesh1 = Mesh( geo.GenerateMesh(maxh=0.1))
mesh = Mesh(BarycentricRefinement(mesh1))

Hi sasha,

the answer will depend on how you define the mesh size. What “size” exactly are you interested in?

Since barycentric mesh refinement does not split any edges from the original mesh, the longest edge length in the refined mesh will be the same. In my opinion, the original mesh size remains a reasonable scale to describe the mesh size with.

Best wishes,
Henry

Thank you for your reply!I understand it now!