← Back to team overview

yade-dev team mailing list archive

Re: [Yade-users] [Question #670376]: frictAngle matchmaker in Ip2_CohFrictMat_CohFrictMat_CohFrictPhys

 

Hi, just a comment (to yade-dev):
There is little inheritance between functors at the moment, mainly because it is a bit less trivial (but not so difficult) to implement than simple data inheritance. There is some type-casting involved if you want to re-use parent::go() directly since it will not generate the right types. Or a better solution: it needs more function splitting to be able to reproduce the main actions of parent::go() without actually calling it. It is intrusive since it can only be done in the parent class.
Bruno

On 06/22/2018 09:47 AM, Jérôme Duriez wrote:
Question #670376 on Yade changed:
https://answers.launchpad.net/yade/+question/670376

Jérôme Duriez posted a new comment:
Hi,

Note that Ip2_CohFrictMat_CohFrictMat_CohFrictPhys is actually not based
on (or inherited from) Ip2_FrictMat_FrictMat_FrictPhys, as I also just
realized.

See
https://github.com/yade/trunk/blob/master/pkg/dem/CohesiveFrictionalContactLaw.hpp#L138
or the inheritance diagram at https://yade-
dem.org/doc/yade.wrapper.html#iphysfunctor