← Back to team overview

yade-users team mailing list archive

Re: [Question #251510]: Loop - array -->Find out the strength needed to move each particle

 

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

rayolau posted a new comment:
Thanks for your repply! =)

I'll try to summarize the case I am analyzing.  I created a granular bed, in which the particles are clumps. 
The first step is to store in an array (array 1), identities, diameter, weight ... of the CLUMPS that accomplish conditions established previously.

My object is determine the value of force necessary to move each one of
this particles (particles stored in array 1), ie, determine the
necessary applied force (in x axis) over each particle  to overcome the
friction caused by the contact of each of those particles (id clumps
array1)  with other particles of the granular bed.

I tried your suggestion and now I have a new error:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/usr/bin/yadedaily in <module>()

/usr/bin/yadedaily in identificacion()
    226                 Xforce=0
    227                 O.forces.addF(id_piedra,(fuerzax,fuerzay,fuerzaz))
--> 228                 if id_clump.state.displ()[0]>0:
    229                         value=Xforce/array1[xx][2]
    230                         value2=2*value*array1[xx][3]*array1[xx][3]

AttributeError: 'int' object has no attribute 'state'
---------------------------------------------------------------------------


anyway, I'm not sure this matrix by crossing the rows, so that, until the first particle meets the condition of displacement, go to next row, ie, the next particle of which is to determine the force required to move it.

Thanks, 
Laura

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