Page 5 - Demo
P. 5


                                    Interface to R%uf09f%uf09fRCPConsult2021-2025Page 5StrurelMode0 %u2013initial state ofevaluation having global vector state as mean values1 intermediate state of evaluation of global vector during run2 %u2013final state after runhaving global vector state at %u00df-pointStrurelRunInteger counter of calls of state functionStrurelNameLiteral value %u2018STRUREL%u2019StrurelModuleLiteral value %u2018COMRELTI%u2019 or %u2018COMRELTV%u2019 or %u2018SYSREL%u2019 or %u2018COSTREL%u2019StrurelVersionLiteral value %u20182025%u2019 or corresponding value for future versionsStrurelIMETLiteral value with description of method of probaility integrationStrurelIOPTLiteral value with description of optimizer for %u00df-point searchStrurelBetaReal value of reliability index %u00dfStrurelPfReal value of failure probability PfStrurelEngineLiteral value with information about version of interface engineStrurelPlotLogical variable to switch on/off postprocessing facilitiesStrurelPlotNameLiteral value for a base name of file for plot drawn in interface engineStrurelPlotTypeLiteral value for an extension of file for plot drawn in interface engineStrurelPlotMode1 shows a generated plot in a separate window2 %u2013saves a generated plot in a file with format defined by an plot extension3 combines mode 1 and mode 2StrurelPlotCountInteger counter of plots drawn on run. Default is 0The assigned global vectors, global namesand information variables can be explicitly used in any script or expression.For illustrated explanation how theStochastic Model data of STRURELmust be used in communication withtheRInterfacethe following well known example will be taken (User Manual: Stone example):The assigned global nameswill have the very same names as in the Stochastic Model: Load, Strength, Diameter, PAR1, PAR2and corresponding values. Eachglobal vectorwill have 5 elements with corresponding values as ordered above.6.Rscript fileThe script file containing a Functionwith a single input argument usually looks likeStrurelR=function(xp){#! Uses only vector notation to access values of Variables and Parameters.#! The sequence in input vector xp is predefined by Stochastic Model.return(xp[4]*pi/4*xp[2]*xp[3]**2-xp[5]*xp[1])}Here elements of input vector %u2019xp%u2019containing values from global vectorv_XP_can be accessed directly by an index, as is ordered in Stochastic Model of STRUREL.Alternatively, the assignedglobal namesmay be used also inside of function
                                
   1   2   3   4   5   6   7   8   9   10