← Back to team overview

yade-dev team mailing list archive

CohesiveFrictionalContactLaw "box"

 

Bruno,

I'm trying to add moment rotation into CohesiveFrictionalContactLaw,
it will use that flag "momentRotationLaw" (which is true by default -
so it will modify all existing simulations!)

And I've seen this line in CohesiveFrictionalContactLaw.cpp:83

if (detectBrokenBodies &&
(*bodies)[(*ii)->getId1()]->interactingGeometry->getClassName() !=
"box"  &&
(*bodies)[(*ii)->getId2()]->interactingGeometry->getClassName() !=
"box") 

there are two things wrong with it:

1. interactingGeometry->getClassName() returns "InteractingBox" not "box"
2. comparing strings is not fast.

-- 
Janek Kozicki                                                         |
_______________________________________________
yade-dev mailing list
yade-dev@xxxxxxxxxxxxxxxx
https://lists.berlios.de/mailman/listinfo/yade-dev



Follow ups