CosineChannel

class hoomd.mpcd.geometry.CosineChannel(amplitude, repeat_length, separation, no_slip=True)

Bases: Geometry

Serpentine (sinusoidal) channel.

Parameters:
  • amplitude (float) – Amplitude of cosine.

  • repeat_length (float) – Repeat length (period) of cosine.

  • separation (float) – Distance between channel walls.

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

CosineChannel models a fluid confined in \(y\) between two walls described by a sinusoidal profile with equations

\[y(x) = A \cos\left(\frac{2 \pi x}{L}\right) \pm H\]

where \(A\) is the amplitude, \(L\) is the repeat_length, and \(2H\) is the separation.

Example:

channel = hoomd.mpcd.geometry.CosineChannel(
    amplitude=2.0, separation=4.0, repeat_length=10.0
)
stream = hoomd.mpcd.stream.BounceBack(period=1, geometry=channel)
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 CosineChannel:

amplitude

Amplitude of cosine (read only).

Type:

float

repeat_length

Repeat length (period) of cosine. (read only).

Type:

float

separation

Distance between walls (read only).

Type:

float