I made general calculation scripts based on a general model of input data. The syntax of the input data has to follow the following model of script (Attachments: model.py) :

Model of script for input models

The user has to define several model parameters :

The number of input random variables;

The number of ouput random variables;

Finite differente step factor: in Open TURNS 0.12.3 the finite difference step is equal for every variable. In order to take into account the unit of the random variables, I use a finite difference step based on the mean value of each random variable and I define the step as: dx = k_fd*mean(x).

The user can define the types of calculation performed at the beginning of the script (Calculation 1/2). The corresponding functions will run thanks to the second part of the calculation definition (Calculation 2/2). The user has to define the character string related to the numbers of the calculation.