← Back to team overview

yade-dev team mailing list archive

Re: [Branch ~yade-dev/yade/trunk] Rev 2237: - Simplify equations inside plastic condition of Dem3Dof (1 sqrt instead of 3, less norm()), add ...

 


Regardless whether someone uses it or not now, that's the API you have
to implement, or don't put it in the API at all (make it a method of
Dem3DofGeom_SphereSphere and cast to that type in your Law2 thing).
Casting was what I wanted to avoid, it was the (bad but temporary) reason for the virtual in DemXDof.
I should have put the question more clearly :
Do you think your code can be adapted (and even benefit from?) using vector3r scaleDisplacement(Real multiplier)? If yes, then setDispTmax can be replaced by scaleDisp everywhere with a few adjustments, non need to cast or implement anything for sphere-facets. If not, I'll have to cast or implement.

B.




Follow ups

References