Page 5 - Demo
P. 5


                                    Interface to Gauss%uf09f %uf09f RCP Consult 2022-2025 Page 5Finally, for special purposes, the following set of STRUREL information variables will be also definedStrurelMode0 %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 illustrated explanation how the Stochastic Model data of STRUREL must be used in communication with the Gauss Interface the following well known example will be taken (User Manual: Stone example):The assigned global variables will have the very same names as in the Stochastic Model: Load_V, Strength, Diameter, PAR1, PAR2 and corresponding values. Each global vectorwill have 5 elements with corresponding values as is ordered above.6. Gauss script fileThe script file containing a Procedure with a single input argument usually looks likeproc StrurelGauss(XP);// Uses only vector notation to access values of Variables and Parameters.// The sequence in input vector XP is predefined by Stochastic Model. retp(XP[4]*pi/4*XP[2]*XP[3]^2-XP[5]*XP[1]);endp;Here 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 variables may be used also inside of function
                                
   1   2   3   4   5   6   7   8   9   10