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.

How to construct one dimensional curved plane curve?

More
1 year 4 months ago - 1 year 4 months ago #4539 by Jiashun
Hi all, 
I have a problem in generating plane curve mesh of high order, for example, a curved circle mesh (only the circle boundary).
For curved mesh of 2 dimensional surface, I can first create a geo object, then use perfstepsend=MeshingStep.MESHSURFACE to generate the surface mesh and finally use Curve().
But for SplineGeometry, for example,

geo = SplineGeometry()
pnts =[(0,0),
(1,0),
(1,0.5),
(1,1),
(0.5,1),
(0,1)]
p1,p2,p3,p4,p5,p6 = [geo.AppendPoint(*pnt) for pnt in pnts]
curves = ["line",p1,p2],"bottom"], [["line",p2,p3],"right"], [["spline3",p3,p4,p5],"curve"], [["line",p5,p6],"top"], [["line",p6,p1],"left"
[geo.Append(c,bc=bc) for c,bc in curves]
ngmesh = geo.GenerateMesh(maxh=0.2)
Is it possible to let the meshing process stop just after the boundary mesh is generated like the surface case?

Or is there other alternative approaches to generating the curved 1d curve mesh in plane?

Thanks a lot for your time.
Last edit: 1 year 4 months ago by Jiashun.
Time to create page: 0.149 seconds