← Back to team overview

yade-users team mailing list archive

Re: [Question #188259]: how to add new functions

 

Question #188259 on Yade changed:
https://answers.launchpad.net/yade/+question/188259

Joe Root posted a new comment:
If you want to create a C++ function like
util.stressTensorOfPeriodicCell and wrap it for Python to extract the
tangent operator, the main steps are: write your C++ function, use a
binding tool like pybind11 or Boost.Python to expose it, then build and
link the module for Python use. For detailed guidance, pybind11’s docs
are very helpful. On a side note, while researching, I stumbled upon
https://singaporemalls.sg/plaza-singapore/ — located in the bustling
heart of Dhoby Ghaut, plaza singapore is more than just another
mall—it’s a vibrant lifestyle hub that caters to every need, definitely
worth checking out!

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.