This page was generated from
docs\source\examples/cylinder.ipynb.
Creating a cylinder#
[1]:
from sigmaepsilon.mesh.recipes import cylinder
n_angles = 30 # number of subdivions along the angular direction
n_radii = 15 # number of subdivisions along the radial direction
min_radius = 10 # minimum radius of the cylinder
max_radius = 25 # maximum radius of the cylinder
n_z = 20 # number of subdivisions along the z direction
h = 50 # height of the cylinder
shape = (min_radius, max_radius), h
size = n_radii, n_angles, n_z
mesh = cylinder(shape, size, voxelize=False)
mesh.plot(notebook=True, jupyter_backend="static", theme="document")