creating geometry for second order element

Dear sir,

I created a hemisphere geometry with hollow bottom using the following code. However, when I changed the meshing option into second order element, then I generate the mesh, and when i clicked on the refine uniform tab, the bottom is not hollow anymore. It have a strange pandan leaf shape. How can I fixed that?from ngsolve import *
from netgen.csg import *
from netgen.meshing import MeshingStep
from ngsolve.webgui import Draw

geo = CSGeometry()
sphere = Sphere(Pnt(0,0,0), 3)
bot = Plane(Pnt(0,0,0), Vec(0,0,-1))
finitesphere = sphere * bot

geo.AddSurface(sphere, finitesphere.bc(“surface”))
geo.NameEdge(sphere,bot, “bottom”)

mesh = Mesh(geo.GenerateMesh(maxh=0.3))

Thanks a million.

Hi Suza,

unfortunately I wasn’t able to replicate your described behaviour. Which NGSolve version are you using and on what system? However, for uniform mesh refinement in you script you can do


Best wishes,

Dear sir,

I want to upload a picture to show to you the geometry outcome. However, I could not upload it.

But anyway thank you so much for giving me the suggestion.