Jul-31-2019, 03:38 PM
Thanks again for your reply!
You are correct, there are nodes and elements for each part. The floor is actually flat in the start, but it deflects. Also, the code is supposed to be flexible so it will work for different scenarios, thats why I'm using all elements even for the floor. I went back to the code one more time and I realized that the coordenates actualy come in a 1x3 format, bu are repeated 11 times for each different time step:
(output from python)
[[20.15 -7.75 -5.69]]
[[-68.92 -73.01 -25.47]]
This is an example of the first coordenate of the first and second part for the first time step. Then I use the equation:
You are correct, there are nodes and elements for each part. The floor is actually flat in the start, but it deflects. Also, the code is supposed to be flexible so it will work for different scenarios, thats why I'm using all elements even for the floor. I went back to the code one more time and I realized that the coordenates actualy come in a 1x3 format, bu are repeated 11 times for each different time step:
(output from python)
[[20.15 -7.75 -5.69]]
[[-68.92 -73.01 -25.47]]
This is an example of the first coordenate of the first and second part for the first time step. Then I use the equation:
dist = ((el2[t, 0] - el1[t, 0]) ** 2 + (el2[t, 1] - el1[t, 1]) ** 2 + (el2[t, 2] - el1[t, 2]) ** 2) ** (1 / 2)Which will compute the distance between this two coordinates