Sphere¶ class hoomd.md.manifold.Sphere(r, P=(0, 0, 0))¶ Bases: Manifold Sphere manifold. Parameters: r (float) – radius of the a-axis of the spherical constraint [length][\mathrm{length}][length]. P (tuple [float, float, float]) – center of the spherical constraint (default origin) [length][\mathrm{length}][length]. Sphere defines a sphere: F(x,y,z)=(x−Px)2+(y−Py)2+(z−Pz)2−r2F(x,y,z) = (x-P_x)^{2} + (y-P_y)^{2} + (z-P_z)^{2} - r^{2} F(x,y,z)=(x−Px)2+(y−Py)2+(z−Pz)2−r2 Example: sphere1 = manifold.Sphere(r=10) sphere2 = manifold.Sphere(r=5, P=(1, 0, 1.5))