How to compute average contact radius
Asked by
张文卿
I want to get avgrage contact radius to my next simulation.I have write C++ file of phy to get contactradius for each contact.And I have achieved it via python.Here is my script:
id1=[]
id2=[]
for i in O.interactions:
for k in rang (0,len(id1)):
Acontactradius=
But this script costs a lot of cpu to compute.It make my computer breakdown.So what if I write c++ file to get average contactradius,will it cost litter cpu?
And how can I get it by C++ file?(Ps: I have modified '_utils file'.But it don't work)
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jérôme Duriez
- Solved:
- Last query:
- Last reply:
To post a message you must log in.