← Back to team overview

yade-dev team mailing list archive

Re: Material and State classes

 



To summarize, what should be in Body->state? The set to choose from is:

* position, velocity, acceleration, mass;
* orientation, angular velocity, angular acceleration, inertia.

inertia and mass : no.
The rest should be in "state" since it changes with time.

Oh wait!

Reading this in the blueprint description rings a bell for me :
"Refactor PhysicalParameters into constant part (Material) and variable part (BodyState)"

1/ Mass is usually constant but it is not a material parameter.
2/ What will happen if one needs to modify the mass of some body during a simulation?

There is in fact no strict equivalence between "constant" and "material", or between "body" and "variable".

Bruno




--

_______________
Chareyre Bruno
Maître de Conférences

Grenoble INP
Laboratoire 3SR - bureau E145
BP 53 - 38041, Grenoble cedex 9 - France
Tél : 33 4 56 52 86 21
Fax : 33 4 76 82 70 43
________________




Follow ups

References