Page 8 - Demo
P. 8


                                    Interface to FORTRAN%uf09f %uf09f RCP Consult 2023-2025 Page 8The last argument %u2018ier%u2019 in each export function described above is an mandatory integer indicating an error during evaluation. It must be defined as a last argument and needs to beset to 0 if everything is Ok. Otherwise it can be set to a positive number indicating an error state for debugging purposes. This argument is hidden in the description of a DEFFUNC and will be ignored in the count of arguments.5. Global Data in the InterfaceBefore processing interface data in form of source files STRUREL pre-sets 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.Finally, 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 %u00df at final stateStrurelPf Real value of failure probability Pf at final stateStrurelPlot Logical variable to switch on/off postprocessing facilitiesStrurelEngine Literal value with information about compiler used in Buildout Add-onThe assigned global vectors, global names and information variables can be explicitly used in definition of any export function in a source file.To illustrate how the Stochastic Model data of STRUREL must be used in communication with the FORTRAN Interface the following well known example will be 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.
                                
   2   3   4   5   6   7   8   9   10   11   12