Sphere

class hoomd.mpcd.geometry.Sphere(radius, no_slip=True)

Bases: Geometry

Spherical confinement.

Parameters:
  • radius (float) – Radius of sphere.

  • no_slip (bool) – If True, surfaces have no-slip boundary condition. Otherwise, they have the slip boundary condition.

Sphere confines particles inside a sphere of radius \(R\) centered at the origin.

Examples:

Sphere with no-slip boundary condition.

sphere = hoomd.mpcd.geometry.Sphere(radius=5.0)
stream = hoomd.mpcd.stream.BounceBack(period=1, geometry=sphere)
simulation.operations.integrator.streaming_method = stream

Sphere with slip boundary condition.

sphere = hoomd.mpcd.geometry.Sphere(radius=5.0, no_slip=False)
stream = hoomd.mpcd.stream.BounceBack(period=1, geometry=sphere)
simulation.operations.integrator.streaming_method = stream

Members inherited from Geometry:

no_slip

Plates have a no-slip boundary condition when True. Read more...


Members defined in Sphere:

radius

Radius of sphere (read only).

Type:

float