Coding (new) Engines : Python or C++ ?
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...
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jérôme Duriez
- Solved:
- Last query:
- Last reply: