fix stokes#
Syntax#
fix ID group-ID stokes [viscosity val] [v_fluid vx vy vz] [omega_fluid wx wy wz] [torque on|off] [jacobian J11 J12 J13 J21 J22 J23 J31 J32 J33] [origin x0 y0 z0 | origin com]
ID, group-ID are documented in fix command
stokes = style name of this fix command
zero or more keyword/value pairs may be appended:
viscosity value = dynamic viscosity of the surrounding fluid \(\mu\) (viscosity units, e.g. Pa.s in SI)
v_fluid vx vy vz = uniform background fluid velocity vector \(\mathbf{v}_{f, 0}\) (velocity units, default: 0 0 0)
omega_fluid wx wy wz = uniform background fluid angular velocity vector \(\boldsymbol{\omega}_{f, 0}\) (1/time units, default: 0 0 0)
torque value = on or off (enable/disable rotational Stokes drag torque, default: on)
jacobian (or gradient) J11 J12 J13 J21 J22 J23 J31 J32 J33 = 3x3 background velocity gradient tensor \(\mathbf{J} = \nabla \mathbf{v}_f\) (1/time units)
origin x0 y0 z0 = fixed reference origin coordinates for linear gradient expansion (distance units)
origin com = dynamically tracks the center of mass of the particle group as the expansion origin (default when jacobian is specified)
Note
Positional syntax fix ID group-ID stokes <viscosity> is also supported for backward compatibility.
Examples#
# Quiescent fluid with Stokes drag and rotational damping
fix drag all stokes viscosity 0.001 torque on
# Uniform upward fluid flow
fix drag all stokes viscosity 0.001 v_fluid 0.0 0.0 0.05
# Simple shear flow along x with gradient along y (gamma_dot = 1000 s^-1)
fix drag all stokes viscosity 0.001 torque on jacobian 0.0 1000.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 origin 0.0 0.0 0.0
# Uniaxial extensional flow centered dynamically on the group center of mass
fix drag all stokes viscosity 0.001 torque on jacobian 1000.0 0.0 0.0 0.0 -500.0 0.0 0.0 0.0 -500.0 origin com
Description#
The fix stokes command evaluates one-body hydrodynamic drag forces and torques exerted by a surrounding viscous fluid in low-Reynolds-number (creeping) flow conditions on individual spherical particles.
Translational Stokes Drag Force#
For a particle of radius \(R\) and velocity \(\mathbf{v}\), the translational drag force is:
where \(\mu\) is the fluid dynamic viscosity and \(\mathbf{v}_f(\mathbf{x})\) is the local fluid velocity evaluated at the particle position \(\mathbf{x}\).
Rotational Stokes Drag Torque#
When torque is on, the hydrodynamic rotational drag torque is evaluated as:
where \(\boldsymbol{\omega}\) is the particle angular velocity and \(\boldsymbol{\omega}_f(\mathbf{x})\) is the local fluid angular velocity.
Linear Flow Fields via Jacobian Tensor#
When the jacobian keyword is specified, a spatially varying linear velocity field is imposed:
where:
\(\mathbf{x}_0\) is the reference expansion origin (specified by
origin x0 y0 z0, or dynamically computed as the center of mass of the group withorigin com).\(\mathbf{J}\) is the 3x3 velocity gradient matrix:
\[\begin{split}\mathbf{J} = \begin{pmatrix} J_{11} & J_{12} & J_{13} \\ J_{21} & J_{22} & J_{23} \\ J_{31} & J_{32} & J_{33} \end{pmatrix} = \begin{pmatrix} \dfrac{\partial v_{f, x}}{\partial x} & \dfrac{\partial v_{f, x}}{\partial y} & \dfrac{\partial v_{f, x}}{\partial z} \\ \dfrac{\partial v_{f, y}}{\partial x} & \dfrac{\partial v_{f, y}}{\partial y} & \dfrac{\partial v_{f, y}}{\partial z} \\ \dfrac{\partial v_{f, z}}{\partial x} & \dfrac{\partial v_{f, z}}{\partial y} & \dfrac{\partial v_{f, z}}{\partial z} \end{pmatrix}\end{split}\]
The fluid vorticity induced by velocity gradients automatically contributes to the local fluid rotation rate:
Restart, fix_modify, output, run start/stop, minimise info#
No information about this fix is written to binary restart files.
Restrictions#
This fix requires granular particles with the radius atom attribute. Coarse-graining scaling is not currently supported for this fix.