creating geometry for second order element
- suzarina3
- Topic Author
- New Member
Less
More
2 years 6 months ago #4272
by suzarina3
creating geometry for second order element was created by suzarina3
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))
mesh.Curve(2)
Draw(mesh)
Thanks a million.
regards,
Suza
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))
mesh.Curve(2)
Draw(mesh)
Thanks a million.
regards,
Suza
2 years 6 months ago - 2 years 6 months ago #4273
by hvwahl
Replied by hvwahl on topic creating geometry for second order element
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
mesh.ngmesh.Refine()
Best wishes,
Henry
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
mesh.ngmesh.Refine()
Best wishes,
Henry
Last edit: 2 years 6 months ago by hvwahl.
- suzarina3
- Topic Author
- New Member
Less
More
2 years 6 months ago #4275
by suzarina3
Replied by suzarina3 on topic creating geometry for second order element
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.
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.
Time to create page: 0.102 seconds