← Back to team overview

yade-users team mailing list archive

Re: [Question #262922]: TorqueEngine, angular acceleration and moment of inertia of Boxes

 

Question #262922 on Yade changed:
https://answers.launchpad.net/yade/+question/262922

    Status: Open => Answered

Jérôme Duriez proposed the following answer:
Hi Behzad,

The inertia of a box body is computed in [1], assuming you're using the
box() function of utils module. How this inertia is used to compute
angular acceleration according to torque is in NewtonIntegrator.cpp

I am not familiar with this part of the code for non-spherical bodies,
but it is possible you get "wrong" results with default parameters in
your simulation. The default computations seem to assume spherical
bodies. To get consistent results with aspherical bodies like your box,
I guess you have to use aspherical flags. Defined a the body scale [2],
and at NewtonIntegrator engine scale [3]

A side note : do you need dynamic (whose movements depend on sum of
forces / torques, and are not user-controlled) boxes ?

Jerome

[1] https://github.com/yade/trunk/blob/dfbb8dde95d305ed95add159a77d8bcb0b3de935/pkg/dem/Shop_01.cpp#L260
[2] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.Body.aspherical
[3] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.NewtonIntegrator.exactAsphericalRot

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.