Cylinder¶ class hoomd.md.manifold.Cylinder(r, P=(0, 0, 0))¶ Bases: Manifold Cylinder manifold. Parameters: r (float) – radius of the cylinder constraint [length][\mathrm{length}][length]. P (tuple [float, float, float]) – point defining position of the cylinder axis (default origin) [length][\mathrm{length}][length]. Cylinder defines a right circular cylinder along the z axis: F(x,y,z)=(x−Px)2+(y−Py)2−r2F(x,y,z) = (x - P_x)^{2} + (y - P_y)^{2} - r^{2} F(x,y,z)=(x−Px)2+(y−Py)2−r2 Example: cylinder1 = manifold.Cylinder(r=10) cylinder2 = manifold.Cylinder(r=5, P=(1, 1, 1))