Page 6 - Demo
P. 6
Interface to Gauss%uf09f%uf09fRCPConsult2022-2025Page 66.Gaussscript fileThe script file containing a Procedurewith a single input argument usually looks likeprocStrurelGauss(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%u2019containing values from global vectorv_XP_can be accessed directly by an index, as is ordered in Stochastic Model of STRUREL.Alternatively, the assignedglobal variablesmay be used also inside of functionprocStrurelGauss(XP);/*Uses global names of Variables and Parameters to access their values.The sequence is arbitrary. Note: STRUREL is case sensitive but Gauss not.*/retp(PAR1*pi/4*Strength*(Diameter^2)-PAR2*Load_V);endp;Direct notation of both global vectorsis also applicableprocStrurelGauss(XP);// Uses only vector notation to access values of Variables and Parameters.// The sequence in globalvector v_XP_is predefined by Stochastic Model.retp(v_XP_[4]*pi/4*v_XP_[2]*v_XP_[3]^2-v_XP_[5]*v_XP_[1]);endp;It is permittedto use a mixed mode %u2013global vectors, global namesand arguments in the same function.Note:Functionand argument (vector)names are arbitraryThe other kind of script file may contain any set of commands in notation of Gausslanguage but musthave a statement defining variable %u2019res%u2019as a final return value.res=PAR1*pi/4*Strength*Diameter^2-PAR2*Load_V;orres = v_XP_[4]*pi/4*v_XP_[2]*v_XP_[3]^2-v_XP_[5]*v_XP_[1];The creation of an interface script in correct notation is not trivial. To make it easier a template with some helpful data can be generated for a new script referenced in the simplified form of an interface function. After definition of required Symbolic Expressions and parsing a name of script will be shown in Reliability Job tree. Blue color means that this script file is not yet saved. Otherwise the colour of script name is red. For this state you can use right mouse click to activate a popup menu and select a script file of interest as shown below. The Script Editorwill be activated with a corresponding template content. Then you