← Back to team overview

yade-dev team mailing list archive

[Bug 472987] Re: Suspecting a bug with CSG_shear

 

It is ok. See SpheresContactGeometry first, where SCG_SHEAR is #defined.
It permits to use SpheresContactGeometry::updateShear instead of
SpheresContactGeometry::updateShearForce (think of plasticity and you
get the difference; in the first case, you have displacement value, then
compute force, the second case computes force directly, which is not as
flexible).

You can keep this bug open to serve as discussion for this particular
feature, if it is not clear.

-- 
Suspecting a bug with CSG_shear
https://bugs.launchpad.net/bugs/472987
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.

Status in Yet Another Dynamic Engine: New

Bug description:

Just mentioning this strange code, if somebody confirms this is correct, then the bug is closed.


InteractingSphere2InteractingSphere4SpheresContactGeometry.cpp, l.36

                scm->normal=normal;
	         ...
		#ifdef SCG_SHEAR
			if(isNew) scm->prevNormal=normal; 
			else scm->prevNormal=scm->normal;
		#endif



Follow ups

References