Ellipsoid¶
- class hoomd.md.manifold.Ellipsoid(a, b, c, P=(0, 0, 0))¶
Bases:
Manifold
Ellipsoid manifold.
- Parameters:
a (float) – length of the a-axis of the ellipsoidal constraint \([\mathrm{length}]\).
b (float) – length of the b-axis of the ellipsoidal constraint \([\mathrm{length}]\).
c (float) – length of the c-axis of the ellipsoidal constraint \([\mathrm{length}]\).
P (
tuple
[float
,float
,float
]) – center of the ellipsoid constraint (default origin) \([\mathrm{length}]\).
Ellipsoid
defines an ellipsoid:Implicit function
\[F(x,y,z) = \frac{(x-P_x)^{2}}{a^{2}} + \frac{(y-P_y)^{2}}{b^{2}} + \frac{(z-P_z)^{2}}{c^{2}} - 1\]Example:
ellipsoid1 = manifold.Ellipsoid(a=10, b=5, c=5) ellipsoid2 = manifold.Ellipsoid(a=5, b=10, c=10, P=(1, 0.5, 1))