How to use in-line Python in Strurel

Did you know? You can use in-line Python functions directly in a symbolic expression in STRUREL.

For example, assume a problem for which you have the two random variables R and S in your stochastic model, where R represents the resistance of a system of interest and S is the system load. The symbolic expression for the corresponding limit-state function in the native syntax of STRUREL would be:

FLIM(1) = R-S

However, if you have Python installed on your system and if the Python interface of Strurel is configured correctly, you could also use the following expression:

FLIM(1) = pythonf("R-S")

Sure, calling the Python interpreter for this simple demonstration example is like taking a sledgehammer to crack a nut. However, the interface-function pythonf is a tool that gives you access to the full power of Python directly in the symbolic expression of Strurel.

Final Reminder: Short Course in December

There is still a small number of seats available for our short course on ‘Uncertainty and Reliability in Engineering’, which takes place in Munich on December 2 to 3.

The course fee includes a 1-hour consulting session!

Registration and program: https://eracons.com/short-course

Version 9.5 of COMREL is available!

The new release of COMREL comes with numerous improvements. The most notable new features are: (i) Limit-state functions coded in Python can now directly be analyzed. (ii) You can now easily develop your own interfaces to external programs by employing the new Sturel Add-On (SAO) feature. (iii) The COMREL manual is now directly integrated into the graphical user interface.

Improved GUI of COMREL in upcoming version

The release of Comrel 9.5 is in the offing. In the new version, the documentation is now directly embedded in the graphical user-interface (GUI). Moreover, the symbolic expressions editor (that is used to define limit-state functions) now comes with an ‘undo & redo’ feature that allows you to easily revert erroneous edits.

The application also comes with improved usability in shortcuts.