← 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...

 

Bruno Chareyre said:     (by the date of Mon, 18 Apr 2011 08:08:41 +0200)

> > 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?


Hi Bruno,

yes, I think that doing inheritance here would be an optimal
approach. I am not sure if that's gonna work with dispatching.
We will see.

-- 
Janek Kozicki                               http://janek.kozicki.pl/  |


Follow ups

References