CloseSurfaces gives segmentation fault
- m49nus
- Topic Author
- New Member
Less
More
2 years 6 months ago #4392
by m49nus
CloseSurfaces gives segmentation fault was created by m49nus
Dear all,
I would like to make an anisotropic mesh of spherical shells, with a well-resolved radial direction. I try to do this with the
method, but I get
when I try. Below is an example code that results in this error. Any ideas?
All the best,
Magnus
I would like to make an anisotropic mesh of spherical shells, with a well-resolved radial direction. I try to do this with the
Code:
CloseSurfaces
Code:
Segmentation fault (core dumped)
All the best,
Magnus
Code:
import netgen.csg as csg
import ngsolve as ng
origin = csg.Pnt(0,0,0)
inner = csg.Sphere(origin, 1.0)
outer = csg.Sphere(origin, 1.5)
shell = outer - inner
geo = csg.CSGeometry()
geo.Add(shell)
geo.CloseSurfaces(inner, outer, domain=shell)
mesh = geo.GenerateMesh(maxh=0.2)
csg.ZRefinement(mesh, geo)
Time to create page: 0.094 seconds