Loop - array -->Find out the strength needed to move each particle
Hi guys! First I expose I try to do, and then my problem. Thanks in advance!!
I have a script that save the Id. of particles and others values of these particles like this:
array1 = [ id [0], [1], [2], [3], [4]] [C] = columns ; [R] = rows
This part of script works ok.
The problem comes now. For each particle of this array, I want apply a force which will increase until the displacement of the particle with respect to the x axis occurs. The objective is find out the force necessary for move each particle. I want to loop through the array by rows, so that when the particle in the first row meets the condition of displacement to the next particle in the next row, and up through the array completely and obtain for each of the particles the force required to move them. I have written this, but fails to apply force and also, I'm not sure that in this way through each of the rows, but it does for columns.
The part of script fails is this:
array2=[]
Xforce=0
for xx in range(0,
id_clump=
Xforce=
Yforce=0
Zforce=0
O.forces.
if id_clump.
value=
np.savetxt(
Xforce=0 #to set the counter to zero force, before moving to the next particle.
The error:
Python argument types in
ForceContai
did not match C++ signature:
addF(
Thanks for any ideas or suggestions!
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask rayolau for more information if necessary.