Page 2 - Demo
P. 2
Planar Truss Examplefor ComrelAdd-onRCPConsult, 2023-2025Page 2modelled by independent random variables with marginal distributions given in the table below.ParameterDistributionMeanStd. DeviationA1[m2]Lognormal2 x 10-32 x 10-4A2[m2]Lognormal1 x 1031 x 104E1, E2[N/m2]Lognormal2,1 x 10112,1 x 1010P1-P6[N]Gumbel500007500The state function restricts the maximum vertical displacement of the truss [m] and is given byg(X) = ulim%u2013umax(X)It has been found that using abstract mathematical notation as used in the equation above, the analysis of a slightly more complicated problem will be rather involved. Therefore, the quantities in the state function in all STRUREL programs are in terms of the Character Identifiersof the basic uncertain Variablesand of the Constants. Note the limitation to maximal8charactersof the identifiers.You enter Comrelby picking its icon and select the option Time Invariant Analysisfrom the Taskdialog to enter Comrel-TI. A new and empty job will be generated.The State FunctionFor problems that are much more complex than this simple example it can be convenient to formulate the state function(s) in a high-end computer language. STRUREL provides eleveninterfaces to computer languagessuch as FORTRAN, C/C++, Maple, Mathematica, Matlab, Python, Octave,Ruby, R,Scilab and Gauss.For our example using the FORTRANinterface together with GNU Fortran compiler the following has to be coded in the Symboliclanguagefor fixed and free format of source files/////////////////////////////////////////////////////////// GNU Fortran -source file with fixed format (*.FOR) ///////////////////////////////////////////////////////////FLIM(1){ Planar Truss Example fixed format}= FUNC(1)u_yDEFFUNC(1,FORTRAN,FortranPlanarTrussGFOR,\_GF.for\/////////////////////////////////////////////////////////// GNU Fortran source file with free format (*.F90) ///////////////////////////////////////////////////////////FLIM(2){ Planar Truss Example -free format}= FUNC(2)-u_yDEFFUNC(2,FORTRAN,FortranPlanarTrussGF90,\_GF.f90\