Page 5 - Demo
P. 5


                                    Interface to Octave%uf09f %uf09f RCP Consult 2021-2025 Page 5StrurelMode0 %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 %u20182025%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 PfStrurelPlot Logical variable to switch on/off postprocessing facilitiesStrurelEngine Literal value with information about version of interface engineThe assigned global vectors, global names and information variables can be explicitly used in any script or expression.For an illustrated explanation how the Stochastic Model data of STRUREL are used in communication with the Octave Interface the following well known example is taken (User Manual: Stone example):The assigned global names will have the very same names as in the Stochastic Model: Load, Strength, Diameter, PAR1, PAR2 and corresponding values. Each global vector will have 5 elements with corresponding values as ordered above.6. Octave script fileThe script file containing a Function with a single input argument usually looks likefunction resultScalar = StrurelOctave (XP)# Uses only vector notation to access values of Variables and Parameters.# The sequence in input vector XP is predefined by Stochastic Model. resultScalar = XP(4)*(pi/4)*XP(2)*XP(3)^2 - XP(5)*XP(1);endfunctionHere elements of input vector %u2019XP%u2019 containing values from global vector v_XP_ can be accessed directly by an index, as is ordered in Stochastic Model of STRUREL.Alternatively, the assigned global names may be used also inside of function
                                
   1   2   3   4   5   6   7   8   9   10