directly from c++

Asked by JOHN

Hi everyone,
I understand this might be a simple question
But is there a way to run ESYS directly from a c++ programm without the python at all?
Any help is appreciated
Thank you for your time

Question information

English Edit question
ESyS-Particle Edit question
No assignee Edit question
Solved by:
Dion Weatherley
Last query:
Last reply:
Revision history for this message
Dion Weatherley (d-weatherley) said :

Hi John,

Yes there is a way to run ESyS-Particle "headless" (i.e. without the Python interface). However, it is a rather ugly way to initialise simulations. The C++ API in ESyS-Particle (which is wrapped by boost.python) uses different naming conventions and syntax to the Python API. The latter has been designed to be more user-friendly and is much better documented. In fact, the C++ API is essentially need to figure it out by examining the ESyS-Particle source code.

In any case, if you are interested to try headless simulations, there's an example of how to do this here:



Revision history for this message
Best Dion Weatherley (d-weatherley) said :

P.S. I should note that there is relatively little computational overhead when using the ESyS-Particle Python API. As this is largely just used during initialisation of simulations (Runnables notwithstanding), a headless simulation will typically only run slightly faster than one initialised using Python. For any decent sized simulation, the Python overhead should be so small to be effectively negligible.



Revision history for this message
JOHN (washingmachine) said :

Thanks, I might take your advice and keep the wrapper, but it is always good to have the option

Revision history for this message
JOHN (washingmachine) said :

Thanks Dion Weatherley, that solved my question.