Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

mesh_size

More
2 years 7 months ago #3933 by shasha
mesh_size was created by shasha
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))
More
2 years 7 months ago #3934 by hvwahl
Replied by hvwahl on topic mesh_size
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
The following user(s) said Thank You: shasha
More
2 years 7 months ago #3937 by shasha
Replied by shasha on topic mesh_size
Thank you for your reply!I understand it now!
Time to create page: 0.151 seconds