Tshatlanin
Mechanical
- Jul 21, 2011
- 2
Is it possible to control the Abaqus kernel directly from within a C++ application? The idea it to generate the object topology using a user-defined set of rules (whatever they might be) on the C++ side, then feed that topology into Abaqus, perform an FE analysis (whatever it might be), then feed the results back to C++ application for interrogation and display, preferably without ever seeing any Abaqus-related user interfaces.
I know it is possible to write custom scripts for Abaqus using Python. I also know that Python scripts can be executed from within a C++ application with some code ‘massaging’. Therefore, in theory, one can generate Python scripts on the fly in C++ and have them executed. However, the sticking point seems to be the following statement from the Abaqus Scripting User’s Manual: “If your script accesses the functionality of any of the Abaqus/CAE modules, the statements must be interpreted by the Abaqus/CAE kernel; you cannot run the script from the Python interpreter invoked from the system prompt. You must execute the script in Abaqus/CAE by selecting File Run Script from the main menu bar and selecting the file to execute”. That seems to imply that there is no way to directly control Abaqus from one’s C++ code. Is that correct?
Any feedback will be highly appreciated. Also, perhaps someone can suggest an alternative FEA package that would allow one to implement the aforementioned activity.
Thank you.
I know it is possible to write custom scripts for Abaqus using Python. I also know that Python scripts can be executed from within a C++ application with some code ‘massaging’. Therefore, in theory, one can generate Python scripts on the fly in C++ and have them executed. However, the sticking point seems to be the following statement from the Abaqus Scripting User’s Manual: “If your script accesses the functionality of any of the Abaqus/CAE modules, the statements must be interpreted by the Abaqus/CAE kernel; you cannot run the script from the Python interpreter invoked from the system prompt. You must execute the script in Abaqus/CAE by selecting File Run Script from the main menu bar and selecting the file to execute”. That seems to imply that there is no way to directly control Abaqus from one’s C++ code. Is that correct?
Any feedback will be highly appreciated. Also, perhaps someone can suggest an alternative FEA package that would allow one to implement the aforementioned activity.
Thank you.