x
Our website uses cookies. By using the website you agree ot its use. More information can be found in our privacy policy.

Perl

Integrating a Perl program as a user-defined solver.

In this example, a Perl program is used as a user-defined solver to calculate the weight and stress responses of a two-bar truss system. The model and load case are displayed below.

perl_screenshot_04.png

The LS-OPT setup specifying the Perl program as a solver is shown in the Figure below.

inkscape_perl_screenshot_01.png

The parameters are specified in the input file using the LS-OPT parameter format << >> :

AreaL <<AreaL>>
AreaR <<AreaR>>
Base <<Base>>

 

The result extraction is performed using GENEX as in the Figure below.

inkscape_perl_screenshot_03.png

Download

perl.tgz