Page 4 - Demo
P. 4


                                    Interface to Scilab%uf09f %uf09f RCP Consult 2021-2026 Page 4The second type of script may contain any set of commands in notation of Scilab language. Such a script must have a statement defining variable %u2019res%u2019 as a final return value. Usually, this statement is the last one. We recommend using the first type of script, because a description of function will be loaded and parsed by engine once. Then, on runtime, it will be just evaluated numerically. The second kind of script requires loading and parsing of its content by the engine runtime for each call of evaluation. This slows down computation.Additionally, it is possible to send a single statement or an expression with multiple statements direct into the engine for a numerical evaluation or intermediate processing for evaluation of the state function.5. Global Data in the InterfaceBefore processing interface data in form of script files or direct expressions STRUREL presets all required input variables. Three global sets will be defined: two global vectors and additionally, each stochastic variable and deterministic parameter become an assigned global name having exactly the same name as in the Stochastic Model. This allows to work in vector notation and/or direct over global names. The first global vector has a fixed name s_XP_ and contains the mean values for the stochastic X-variables followed by the values of the deterministic Parameters. The second global vector has a fixed name v_XP_ and receives all values of the current evaluation step for the X-variables followed again by the values of the deterministic Parameters.Implementation of global vectors s_XP_ and v_XP_ allows creation of plots of the initial and final (%uf062-point) states of a structure where a comparison can be shown graphically and numerically.Finally, for special purposes, the following set of STRUREL information variables will be also defined: StrurelMode0 %u2013 initial state of evaluation having global vector state as mean values1 %u2013 intermediate state of evaluation of global vector during run2 %u2013 final state after run having global vector state at %u00df-pointStrurelRun Integer counter of calls of state functionStrurelName Literal value %u2018STRUREL%u2019StrurelModule Literal value %u2018COMREL-TI%u2019 or %u2018COMREL-TV%u2019 or %u2018SYSREL%u2019 or %u2018COSTREL%u2019StrurelVersion Literal value %u20182026%u2019 or corresponding value for future versionsStrurelIMET Literal value with description of method of probaility integrationStrurelIOPT Literal value with description of optimizer for %u00df-point searchStrurelBeta Real value of reliability index %u00dfStrurelPf Real value of failure probability PfStrurelEngine Literal value with information about compiler used in Buildout Add-onStrurelPlot Logical variable to switch on/off postprocessing facilitiesStrurelPlotName Literal value for a base name of file for plot drawn in interface engineStrurelPlotType Literal value for an extension of file for plot drawn in interface engineStrurelPlotMode1 %u2013 shows a generated plot in a separate window2 %u2013 saves a generated plot in a file with format defined by an plot extension3 %u2013 combines mode 1 and mode 2StrurelPlotCount Integer counter of plots drawn on run. Default is 0
                                
   1   2   3   4   5   6   7   8   9   10