← Back to team overview

yade-dev team mailing list archive

Re: [Branch ~yade-dev/yade/trunk] Rev 2818: last correction for simple scene energy tracking example - I forgot to commit changes in Cohesive...

 

> message:
>   last correction for simple scene energy tracking example - I forgot to commit changes in CohesiveFrictionalContactLaw
>   but in fact maybe better if those methods for calculating elastic normal & shear energy would be moved somewhere else, maybe to shop? I'm not sure.

I think it is consistent to define energies in law functor since contact
energy terms can be different with different laws (and shop is
over-crowded already).
The only annoying thing here is that you add to duplicate (almost)
functions that were already in ElasticContactLaw, a simpler 3D version
of CFL.
I'm wondering if making CFL inherit from ElasticContactLaw would break
dispatching methods... What do you think?

Bruno




Follow ups

References