yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #13058
Re: [Question #295521]: contact-normal in Yade
Question #295521 on Yade changed:
https://answers.launchpad.net/yade/+question/295521
Status: Answered => Solved
Fu zuoguang confirmed that the question is solved:
Dear Prof. Chareyre and all users,
Thanks for Yade-2016, because the fabric tensor function in it now can
be used for non-periodic cases. I tested this calculating process in two
ways, one was using 'utils.fabricTensor()' directly and the other was
using my own python codes just like
#########
def fabric_tensorcalculation(data_list):
fabric_list = np.array([(i,i).dyadic_product() for i in data_list])
total_fabric_tensor = sum(fabric_list) / float(len(fabric_list))
return total_fabric_tensor
#########
They are almost the same.
my concern is exactly unnecessary, n and -n can provide the same single
fabric tensor.
--
You received this question notification because your team yade-users is
an answer contact for Yade.