yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #08550
Re: [Question #238797]: Update interaction physics after changing material of spheres
Question #238797 on Yade changed:
https://answers.launchpad.net/yade/+question/238797
Status: Answered => Solved
Alexander Eulitz [Eugen] confirmed that the question is solved:
I did it this way now:
There is a PyRunner which calls settleRealPacking() periodically.
def settleRealPacking():
O.interactions.clear() #update contac physics after material was changed
newton.damping = 0.9 #introduce high numerical damping
print "unbF:", utils.unbalancedForce() #is just producing NaN?
utils.calm() #delete relative velocities
if utils.unbalancedForce()<0.1 : #threshold for settlement
newton.damping = dmp #reset damping to original value
checker.command = 'startProcessing()' #go on with simulated process
It looks ok, but I have to check whether the result is like the settled
packing that would arise from a simulation with the real material from
beginning on.
Thank you,
Alex
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.