Page 2 - Demo
P. 2
Planar Truss Example for Comrel Add-on RCP Consult, 2023-2025 Page 2modelled by independent random variables with marginal distributions given in the table below.Parameter Distribution Mean Std. DeviationA1 [m2] Lognormal 2 x 10-3 2 x 10-4A2 [m2] Lognormal 1 x 10-3 1 x 10-4E1, E2 [N/m2] Lognormal 2,1 x 1011 2,1 x 1010P1-P6 [N] Gumbel 50000 7500The state function restricts the maximum vertical displacement of the truss [m] and is given byg(X) = ulim %u2013 umax(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 Identifiers of the basic uncertain Variables and of the Constants. Note the limitation to maximal 8 characters of the identifiers.You enter Comrel by picking its icon and select the option Time Invariant Analysis from the Task dialog 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 eleven interfaces to computer languages such as FORTRAN, C/C++, Maple, Mathematica, Matlab, Python, Octave, Ruby, R, Scilab and Gauss.For our example using the FORTRAN interface together with GNU Fortran compiler the following has to be coded in the Symbolic language for 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\