yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #23013
Re: [Question #690280]: Implementing a new contact law very different from the usual ones
Question #690280 on Yade changed:
https://answers.launchpad.net/yade/+question/690280
Status: Answered => Open
Rioual is still having a problem:
... Thanks, Jan, now I can start to tackle the problem now from references to FrictMat but I have real difficulties to interpret the command lines in ElasticContactLaw.cpp:
https://gitlab.com/yade-dev/trunk/-/blob/master/pkg/dem/ElasticContactLaw.cpp#L62
-l61: "CREATE_LOGGER(Law2_ScGeom_FrictPhys_CundallStrack)";
https://gitlab.com/yade-dev/trunk/-/blob/master/pkg/dem/ElasticContactLaw.cpp#L61
what does this mean ??
-l62: "bool Law2_ScGeom_FrictPhys_CundallStrack::go(shared_ptr<IGeom>& ig, shared_ptr<IPhys>& ip, Interaction* contact)":
https://gitlab.com/yade-dev/trunk/-/blob/master/pkg/dem/ElasticContactLaw.cpp#L62
can you explain all this and <<shared_ptr>> ??
-"int id1 = contact->getId1(), id2 = contact->getId2();"
https://gitlab.com/yade-dev/trunk/-/blob/master/pkg/dem/ElasticContactLaw.cpp#L64
getId1?? getId2 ??
-"ScGeom* geom = static_cast<ScGeom*>(ig.get());
FrictPhys* phys = static_cast<FrictPhys*>(ip.get());"
https://gitlab.com/yade-dev/trunk/-/blob/master/pkg/dem/ElasticContactLaw.cpp#L66
Can you comment about these statements ? static_cast ?? ig.get, ip.get() ??
and in the file ElasticContactLaw.hpp:
(https://gitlab.com/yade-dev/trunk/-/blob/master/pkg/dem/ElasticContactLaw.hpp):
- https://gitlab.com/yade-dev/trunk/-/blob/master/pkg/dem/ElasticContactLaw.hpp#L18
what is LawFunctor ??
- https://gitlab.com/yade-dev/trunk/-/blob/master/pkg/dem/ElasticContactLaw.hpp#L21
what does this mean ?
- https://gitlab.com/yade-dev/trunk/-/blob/master/pkg/dem/ElasticContactLaw.hpp#L26
what is YADE_CLASS_BASE_DOC_ATTRS_CTOR_PY ??
-https://gitlab.com/yade-dev/trunk/-/blob/master/pkg/dem/ElasticContactLaw.hpp#L38
FUNCTOR2D ?? DECLARE ??
I am so sorry for my ignorance but i have to face these issues in order
to solve my problem !
Thank you very much again for your support,
Vincent
--
You received this question notification because your team yade-users is
an answer contact for Yade.