yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #05015
Re: TriaxialStateRecorder vs. python
> And python actually cannot parse this type.
Python does not parse the type (from string representation or similar),
it is finding a corresponding class, technically speaking.
You could also expose wall_stresses via a function which would return a
tuple (using boost::python::make_tuple) created from the values you
need. See docs for add_property at
http://www.boost.org/doc/libs/1_43_0/libs/python/doc/v2/class.html.
Bruno: perhaps it would be enough to store only a Vector3 with stresses,
where each would average the two opposing walls?
v
References