← Back to team overview

yade-users team mailing list archive

[Question #239457]: Coding (new) Engines : Python or C++ ?

 

New question #239457 on Yade:
https://answers.launchpad.net/yade/+question/239457

Hello,

I'm planning to write a new Engine (for my personnal use, since it is quite specific, see below), and I'm wondering what is the best choice regarding the speed of computations : calling from times to times a Python function, or using an usual Engine coded in C++  ?

If necessary, here is some description of the tasks to be performed : it is about a parallelepipedic sample (of spheres) whose I want to control the lateral stress. Since the wanted stresses are not uniform along the height of the sample, I will control directly the spheres of the external layer, instead using a boundary box as in classical Triaxial engines. So, more or less each time the engine is executed, there will be a loop over all considered spheres. And for each sphere, a "global stifness" has to be derived (=> loop over interactions, cf Triaxial engines), before the sphere is displaced. So, it may be long...



-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.