yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #13990
Re: [Yade-users] [Question #670376]: frictAngle matchmaker in Ip2_CohFrictMat_CohFrictMat_CohFrictPhys
-
To:
yade-dev <yade-dev@xxxxxxxxxxxxxxxxxxx>
-
From:
Bruno Chareyre <bruno.chareyre@xxxxxxxxxxxxxxx>
-
Date:
Fri, 22 Jun 2018 10:29:29 +0200
-
In-reply-to:
<152965364078.30161.12824717587207699836.launchpad@loganberry.canonical.com>
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0
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