azplugins.flow¶
Overview
Base flow field. |
|
Constant flow profile. |
|
Parabolic flow profile between parallel plates. |
Details
Flow fields.
- class hoomd.azplugins.flow.ConstantFlow(velocity)¶
Bases:
FlowFieldConstant flow profile.
- Parameters:
velocity (tuple) – Flow field.
This flow corresponds to a constant vector field, e.g., a constant backflow in bulk or a plug flow in a channel. The flow field is independent of the position it is evaluated at.
Example:
u = hoomd.azplugins.flow.ConstantFlow(velocity=(1,0,0))
- class hoomd.azplugins.flow.FlowField¶
Bases:
_HOOMDBaseObjectBase flow field.
- class hoomd.azplugins.flow.ParabolicFlow(mean_velocity, separation)¶
Bases:
FlowFieldParabolic flow profile between parallel plates.
- Parameters:
This flow field generates the parabolic flow profile in a slit geomtry:
\[u_x(y) = \frac{3}{2}U \left[1 - \left(\frac{y}{H}\right)^2 \right]\]The flow is along x with the gradient in y. The
separationbetween the two plates is \(2H\), and the channel is centered around \(y=0\). Themean_velocityis \(U\).Example:
u = hoomd.azplugins.flow.ParabolicFlow(mean_velocity=2.0, separation=0.5)
Note
Creating a flow profile does not imply anything about the simulation box boundaries. It is the responsibility of the user to construct appropriate bounding walls commensurate with the flow profile geometry.