Following the code example on http://discretize.simpeg.xyz/en/master/api/generated/discretize.CylindricalMesh.html#discretize.CylindricalMesh, I created a simple 3D cylindrical mesh using the following code:
from SimPEG import Mesh
import numpy as np
dh, nc, npad = 20, 30, 8
nc_theta = 8
hx = [(dh,npad+10,-0.7),(dh,nc),(dh,npad,1.3)]
hy = 2*np.pi/nc_theta * np.ones(nc_theta)
hz = [(dh,npad,-1.3),(dh,nc),(dh,npad,1.3)]
mesh = Mesh.CylMesh([hx,hy,hz],x0="00C")
mesh.plotGrid()
The code ran and I obtained the same figure as shown on the above webpage. But I got a warning message shown below:
I could not figure out what was going on. Any idea? Thanks in advance!