yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #23007
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: Open => Answered
Jan Stránský proposed the following answer:
> This means that I have to create 5 new files related to my new law
you do not have and actually I suggest to put all the code in one file (well, two files, one .hpp, one .cpp). Have a look e.g. at CpmMat [1,2], where all the stuff related to one specific material law is on one place.
The links I provided was just as a reference of actual implementation.
> can I follow the same implementation in each file as for
FrictPhys_CundallStrack ??
yes (in general).
For Material, follow FrictMat, for IPhys follow FrictPhys etc.
> How do you i integrate these 5 files of definition of the law in the
yade core code ??
There is no special integration (if I got your question correctly), just
put the .hpp and .cpp files in pkg/dem directory.
cheers
Jan
[1] https://gitlab.com/yade-dev/trunk/-/blob/master/pkg/dem/ConcretePM.hpp
[2] https://gitlab.com/yade-dev/trunk/-/blob/master/pkg/dem/ConcretePM.cpp
--
You received this question notification because your team yade-users is
an answer contact for Yade.