Skip to content

Setting drag coefficients for rigid bodies with Langevin dynamics #1768

Answered by joaander
crisbutu asked this question in Support
Discussion options

You must be logged in to vote

The three components of 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:
$$I \frac{d\vec{L}}{dt} = \vec{\tau}_C - \gamma_r \cdot \vec{L} + \vec{\tau}_R$$
(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:

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@zmcdargh
Comment options

@joaander
Comment options

Answer selected by crisbutu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
3 participants