← Back to team overview

yade-users team mailing list archive

Re: [Question #671074]: Coupling LBM code wirtten on c++ with Yade

 

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

    Status: Open => Answered

Jérôme Duriez proposed the following answer:
Hi,

You have one short example here: https://yade-dem.org/doc/FEMxDEM.html.

In this case, use is made of a common Python interface to couple YADE
with another code. From my understanding, this is maybe the most
convenient way to do things, at least from the YADE's side.

One possibility then would be to embed your LBM C++ code into Python,
following the Python standard [1] and/or the dedicated Boost library [2]
(by the way, this is how YADE "turns" from C++ to Python)

Maybe not an easy/small task to do, depending on your coding skills.

Jérôme

[1] https://docs.python.org/2.7/c-api/index.html#c-api-index
[2] https://www.boost.org/doc/libs/1_67_0/libs/python/doc/html/index.html

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