another question on manual quad mesh in 2D: curved edges

More
6 years 7 months ago #448 by Guosheng Fu
Hello,

I was trying to obtain a manual high-order quad mesh for a simple geometry, the ring.
I can only get the straight-sided quadirlaterials, in attachment, but didn't find available resources to deal with a curved edge.
Thanks in advance!

File Attachment:

File Name: ring_mesh.py
File Size:2 KB

Best,
Guosheng
Attachments:
More
6 years 6 months ago #494 by cwinters
Hi Guosheng,

in the latest version you can curve 2d manually generated meshes.

You have to define a geometry as you would do when Netgen generates a mesh for you and set it as geometry in your mesh.
Code:
ngmesh.SetGeometry(geom)

Finally you have to tell the boundary elements to which edge of the geometry they belong. The edge numbering is 1-based. One important point is that each boundary element has to be a subset of an edge, otherwise it won't work.

Best
Christoph
Attachments:
Time to create page: 0.099 seconds