Page 6 - Demo
P. 6
Planar Truss Example for Comrel Add-on RCP Consult, 2021-2025 Page 6In the script above it is demonstrated how to create additional visualization from Ruby. For this an interaction between Ruby and Python will be used. That means you need to install Python and its special plotting library matplotlib additionally on your computer.Then the specific plots for two states, the Deterministic Solution (with Stochastic Variables at mean values) and the Stochastic Solution (with Stochastic Variables at values at the %u00df-point), can be produced using facilities of matplotlib library adapted for Ruby.You can use special Information Variables of STRUREL:StrurelMode0 %u2013 initial state before evaluation having global vector state as mean values1 %u2013 intermediate state of global vector during evaluation2 %u2013 final state after evaluation 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 engineAll input including script files, dimension parameters, control parameters, the description of the Stochastic Model, the State Function, additional embedded data and help can becollected in the single file RubyPlanarTruss.sao using the facilities of STRURELAdd-on Creator 2. SAO stands for Strurel Add-On.