carputils.mesh.CylinderRegion

class carputils.mesh.CylinderRegion(radius=0.0, start=(0.0, 0.0, 0.0), axis=(0.0, 0.0, 0.0), tag=None, bath=0)

Describe a cylinder for mesh tag assignment.

Args:
start : array-like
Starting point
axis : array-like
axis of cylinder with magnitude being the length of the cylinder
radius : float, optional
Radius of the sphere, defaults to 0
centre : array-like, optional
Centre of the sphere, defaults to (0,0,0)
tag : int, optional
Tag ID to assign to this region, defaults to auto assign by mesher
bath : int, optional
0 - no bath, 1 - isotropic bath, 2 - anisotropic bath, default is 0
carp_opts(i)

Generate the carp option list for this tag region.

Args:
i : int
Index of mesh region.
Returns:
list
Mesher command line options for this region.
mesher_opts(i)

Generate the mesher option list for this region.

Args:
i : int
Index of mesh region.
Returns:
list
Mesher command line options for this region.