Plane¶
- class hoomd.wall.Plane(origin, normal, open=True)¶
Bases:
WallGeometryA plane.
- Parameters:
origin (
tuple[float,float,float]) – A point that lies on the plane \([\mathrm{length}]\).normal (
tuple[float,float,float]) – The normal vector to the plane. The vector will be converted to a unit vector \([\mathrm{dimensionless}]\).open (
bool, optional) – Whether to include the surface of the plane in the space.Truemeans do not include the surface, defaults toTrue.
The signed distance from the wall surface is:
\[d = \hat{n} \cdot \left( \vec{r} - \vec{r}_o \right)\]where \(\vec{r}\) is the particle position, \(\vec{r}_o\) is the origin of the plane, and \(\hat{n}\) is the plane’s unit normal. The normal points toward the points with a positive signed distance to the plane.
Warning
When running MD simulations in 2D simulation boxes, set
normal=(nx,ny,0). Otherwise, the wall force will push particles off the xy plane.Note
Planeobjects are immutable.Example:
plane = hoomd.wall.Plane(origin=(-10, 0, 0), normal=(1, 0, 0))
- open¶
Whether to include the surface of the plane in the space.
Truemeans do not include the surface.- Type:
- __repr__()¶
A string representation of the Plane.
- __str__()¶
A string representation of the Plane.