Question #295301 on Yade changed: https://answers.launchpad.net/yade/+question/295301
Jan Stránský proposed the following answer: > > displacement=2*max(negIds.size(),posIds.size())*dAX; I don't like that the work depends on number of particles, it should not.. Jan 2016-06-16 18:37 GMT+02:00 Yor1 <[email protected]>: > Question #295301 on Yade changed: > https://answers.launchpad.net/yade/+question/295301 > > Yor1 posted a new comment: > Hi Jan, > > I calculate the displacement and the external work with these lines: > > if(asymmetry==0){ > dAX*=.5;displacement=2*max(negIds.size(),posIds.size())*dAX;} > externalWork += displacement*(sumPosForces+sumNegForces)/2; > > > The eslastic energy and the external work are equal in the pre-pic stage > and that is reasonable for me. > Now i have to modify the calculation of the damping energy. In fact with > NewtonIntegrator, the damped energy is calculated in all the particles. But > in my case, i have to calculate the damping energy in the particles that > don't belong to posIds and negIds. > > Best regards > Jabrane > > -- > You received this question notification because your team yade-users is > an answer contact for Yade. > > _______________________________________________ > Mailing list: https://launchpad.net/~yade-users > Post to : [email protected] > Unsubscribe : https://launchpad.net/~yade-users > More help : https://help.launchpad.net/ListHelp > -- You received this question notification because your team yade-users is an answer contact for Yade. _______________________________________________ Mailing list: https://launchpad.net/~yade-users Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp

