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.
The LS-OPT setup specifying the Perl program as a solver is shown in the Figure below.
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.