← Back to team overview

yade-dev team mailing list archive

Re: [Bug 472987] Re: Suspecting a bug with CSG_shear

 

Ok, good to hear. I have an idea of what the difference is, we discussed that a lot already.

But still, I'm just curious, is there a reason for not writing :
		
		/#ifdef SCG_SHEAR
			scm->prevNormal=scm->normal;
		#endif/
		
instead of? :
		
/		#ifdef SCG_SHEAR
if(isNew) scm->prevNormal=normal; else scm->prevNormal=scm->normal;
		#endif
/

Bruno


Václav Šmilauer a écrit :
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.



--

_______________
Chareyre Bruno
Maître de Conférences

Grenoble INP
Laboratoire 3SR - bureau E145
BP 53 - 38041, Grenoble cedex 9 - France
Tél : 33 4 56 52 86 21
Fax : 33 4 76 82 70 43
________________




Follow ups

References