← Back to team overview

yade-users team mailing list archive

Re: [Question #681223]: change mat paras

 

Question #681223 on Yade changed:
https://answers.launchpad.net/yade/+question/681223

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hi Joe,

it depends on used IPhys [1].E.g., for FrictPhys it would be
###
for i in O.interactions:
   if isinstance(i.phys,FrictPhys):
      i.phys.tangensOfFrictionAngle = someValue # note: not frictionAngle, but its tangens
   elif: ...
   else: ...
###

cheers
Jan

[1] https://yade-dem.org/doc/yade.wrapper.html#iphys
[2] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.FrictPhys.tangensOfFrictionAngle

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.