ParallelPlates

class hoomd.mpcd.geometry.ParallelPlates(separation, speed=0.0, no_slip=True)

Bases: Geometry

Parallel-plate channel.

Parameters:
  • separation (float) – Distance between plates.

  • speed (float) – Wall speed.

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

ParallelPlates confines particles between two infinite parallel plates centered around the origin. The plates are placed at \(y=-H\) and \(y=+H\), where the total separation is \(2H\). The plates may be put into motion with speed V, having velocity \(-V\) and \(+V\) in the x direction, respectively. If combined with a no-slip boundary condition, this motion can be used to generate simple shear flow.

Examples:

Stationary parallel plates with no-slip boundary condition.

plates = hoomd.mpcd.geometry.ParallelPlates(separation=6.0)
stream = hoomd.mpcd.stream.BounceBack(period=1, geometry=plates)
simulation.operations.integrator.streaming_method = stream

Stationary parallel plates with slip boundary condition.

plates = hoomd.mpcd.geometry.ParallelPlates(
    separation=6.0, no_slip=False
)
stream = hoomd.mpcd.stream.BounceBack(period=1, geometry=plates)
simulation.operations.integrator.streaming_method = stream

Moving parallel plates.

plates = hoomd.mpcd.geometry.ParallelPlates(
    separation=6.0, speed=1.0, no_slip=True
)
stream = hoomd.mpcd.stream.BounceBack(period=1, geometry=plates)
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 ParallelPlates:

separation

Distance between plates (read only).

Type:

float

speed

Wall speed (read only).

speed will have no effect if no_slip is False because the slip surface cannot generate shear stress.

Type:

float