← Back to team overview

yade-users team mailing list archive

[Question #431251]: How to read the force value

 

New question #431251 on Yade:
https://answers.launchpad.net/yade/+question/431251

Hello everybody,

I would like to know how to read the force value to apply on the conditional formula, like the example below that i'm using the position of body.

example -> if O.bodies[543].state.pos[1] > 25 and O.bodies[390].state.pos[0] < -35:

Is it possible to do it anything similar?

I am very interesting to using the force value to give one conditional to move another body. The proposal is while the force don't reach the minimum value, the next body wont move.

##Conditional
if O.force.f[540] > 1000
O.engines=O.engines+[TranslationEngine(ids=rod2,translationAxis=[1,0,0],velocity=1,dead = False)]

Thanks for any comments.

Felipe


-- 
You received this question notification because your team yade-users is
an answer contact for Yade.