-
Hello, I have a question related to handling drag for rigid bodies when using Langevin dynamics.
Specifically, I want to implement rigid rods and have set the moment of inertia for the central bead as that of a cylinder. I want to ensure that the rotational diffusivity about the axial direction differs from the perpendicular directions, as expected for a rod. Could anyone advise on how to correctly configure this? Any help would be greatly appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The three components of The angular momentum However, looking at the code - the documentation for this may be incorrect: hoomd-blue/hoomd/md/TwoStepLangevin.cc Lines 316 to 355 in 103d1b4 I don't have time right now to fix it. Look at rand_x (which is a function gamma_r.x) and gamma_r.x * (s.x / I.x) and figure out what units it should be. Feel free to file a pull request that makes the correction to the docs.
|
Beta Was this translation helpful? Give feedback.
The three components of
$$I \frac{d\vec{L}}{dt} = \vec{\tau}_C - \gamma_r \cdot \vec{L} + \vec{\tau}_R$$
gamma_r
are the rotational drag coefficients about the three axes of rotation (x, y, z).gamma_r
has units of 1/time because each component appears in the equation of motion as:(this equation is in the documenation). Note that
\cdot
here is an element-wise multiplication - not a dot product.The angular momentum$L$ has units [mass][length]^2[time]^(-1) and torque $\tau$ has units [mass][length]^2[time]^(-2), so
gamma_r
must have units of [time]^(-1).However, looking at the code - the documentation for this may be incorrect:
hoomd-blue/hoomd/md/TwoStepLangevin.cc
Lines 316 to 35…