How to reset i.phys.shearForce to zero

Asked by Leonard on 2020-07-24

Hi,

Is it possible to reset i.phys.shearForce to zero at a certain step?

I have two kinds of particles defined by Material1 (Mat1) and Material2 (Mat2) in my model (Mat1 and Mat2 are both CohFrictMat), I want to reset the contact shear force of Mat1 - Mat2 to zero at a certain step, do you have any ideas to do that?

Thanks

Leonard

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jérôme Duriez
Solved:
2020-07-25
Last query:
2020-07-25
Last reply:
2020-07-24
Best Jérôme Duriez (jduriez) said : #1

Hi,

i.phys.shearForce = Vector3.Zero should do the trick..
Python-exposed attributes usually show read/write access, unless otherwise specified (and you would get an error when trying to write in such cases, e.g. b.id = 1 # for b = Body() )

If I were you, I would check whether resultant forces on contacting bodies are modified as you think they should in such case (even though I'm not seeing any reason why they would not, at the moment)

Leonard (z2521899293) said : #2

Hi Jérôme,

Thanks for your reply. My question has been solved.

BTW, how can we check the resultant forces of a body (sphere)?

Leonard

Jan Stránský (honzik) said : #3

> how can we check the resultant forces of a body (sphere)?

O.forces.f(b.id) # [1]

cheers
Jan

[1] https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.ForceContainer.f

Leonard (z2521899293) said : #4

Thanks Jérôme Duriez, that solved my question.