yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #25572
Re: [Question #697142]: Writing new Ip2 functor / order of contact partners
Question #697142 on Yade changed:
https://answers.launchpad.net/yade/+question/697142
Status: Open => Answered
Vasileios Angelidakis proposed the following answer:
Hi Bettina,
The order of contact partners is determined inside the Ig2 functors
using:
FUNCTOR2D(Shape1,Shape2);
DEFINE_FUNCTOR_ORDER_2D(Shape1,Shape2);
as in [1]. Your example also shows the same behaviour.
Currently this DEFINE_FUNCTOR_ORDER_2D is not used in any other Ip2
functors, but it could be worthwhile trying:
DEFINE_FUNCTOR_ORDER_2D(FrictMat,myMaterial) when defining your
Ip2_FrictMat_myMaterial_myPhysics class in its header file. More info on
DEFINE_FUNCTOR_ORDER_2D in [2,3].
Hope this helps,
Vasileios
[1] https://gitlab.com/yade-dev/trunk/-/blob/master/pkg/dem/Ig2_Facet_Sphere_ScGeom.hpp#L43-44
[2] https://gitlab.com/yade-dev/trunk/-/blob/master/lib/multimethods/FunctorWrapper.hpp
[3] https://gitlab.com/yade-dev/trunk/-/blob/master/lib/multimethods/DynLibDispatcher.hpp
--
You received this question notification because your team yade-users is
an answer contact for Yade.