← Back to team overview

yade-users team mailing list archive

Re: [Question #692122]: how to add cohesion between box and spheres

 

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

    Status: Open => Answered

Jérôme Duriez proposed the following answer:
Hi,

I doubt "i.phys.nornalforce=1e9" like in your "full code" would do
anything good because of the typo (in normalForce). This being said:

1) Doing so, you're not adding anything, you're modifying something which has already been computed by YADE. 
Trying to predict the possible effects of this manual update, you may keep the following in mind:

* bodies movements/bouncing depend on resultant forces on bodies
O.forces.f() [*], not directly on interaction forces. Because YADE is
great, both quantities are related one to another as they should in the
InteractionLoop (Law2 actually) code. But that does not seem to be the
case in your code.

* if you really wish to compute and apply forces yourself, this should
come before NewtonIntegrator. Otherwise, bodies displacements in a given
time step will have already occurred before you trick anything. And your
trick will be soon erased by the ForceReseter during the subsequent time
step

2) Not really understood, sorry :-)

[*] https://yade-
dem.org/doc/yade.wrapper.html#yade.wrapper.ForceContainer.fWhether thi

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