how to view normal contact stiffness kn

Asked by lip on 2019-06-04

hello
i want know to how to view normal contact stiffness kn in python script or in the teminal of ubuntu, i have tried print contactPhysics->kn in python script, but the teminal give me an error:SyntaxError: invalid syntax. i would qppreciate it if you can help me that

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Stránský
Solved:
2019-06-04
Last query:
2019-06-04
Last reply:
2019-06-04
Best Jan Stránský (honzik) said : #1

Hello,

> contactPhysics->kn

this is C++ syntax. In Yade/Python, use something like
###
for i in O.interactions:
   print i.phys.kn
###

cheers
Jan

lip (mr.xie) said : #2

Thanks Jan Stránský, that solved my question.