------------------------------------------------------------
revno: 2803
committer: Chiara Modenese <c.moden...@gmail.com>
branch nick: yade
timestamp: Tue 2011-04-05 17:19:20 +0000
message:
  Fix small bug in HM (only in case of viscous damping).
modified:
  pkg/dem/HertzMindlin.cpp


--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to 
https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'pkg/dem/HertzMindlin.cpp'
--- pkg/dem/HertzMindlin.cpp	2011-02-08 16:37:12 +0000
+++ pkg/dem/HertzMindlin.cpp	2011-04-05 17:19:20 +0000
@@ -369,6 +369,7 @@
 	/********************/
 	
 	phys->shearViscous=Vector3r::Zero(); // reset so that during sliding, the previous values is not there
+	Fn = phys->normalForce.norm();
 	if (!includeAdhesion) {
 		Real maxFs = Fn*phys->tangensOfFrictionAngle;
 		if (shearElastic.squaredNorm() > maxFs*maxFs){

_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to     : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to