yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #11076
Re: [Question #265275]: Inheritance of State Class - add variables
Question #265275 on Yade changed:
https://answers.launchpad.net/yade/+question/265275
Status: Open => Answered
Jérôme Duriez proposed the following answer:
Hi,
Coding a new c++ class derived from State class, I would say.
Going into details, note that YADE_CLASS_.. group allows python (and c++) access to attributes :
https://yade-dem.org/doc/prog.html#yade-class-base-doc-macro-family
You may give a look to, e.g., JCFpmState as an example:
https://github.com/yade/trunk/blob/master/pkg/dem/JointedCohesiveFrictionalPM.hpp
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.