Run OptiStruct

The execution of OptiStruct is described here.

There are several ways to run OptiStruct, via:
  • The OptiStruct script
  • The HyperWorks Solver Run Manager
  • HyperMesh
  • HyperView and HyperGraph

In all the above cases, HyperWorks will initialize $PATH and other environment variables required to run the selected solver; however, you are responsible for initializing environment variables for 3rd party products. In particular, MPI and AMLS/FFRS external solvers (if needed) may require PATH and LD_LIBRARY_PATH. For MPI runs, refer to SPMD Environment Variables.

From a Script

To run on Unix from the command line, type the following:
<install_dir>/altair/scripts/optistruct "filename" -option argument
Note: On Linux/Unix installations the above command is soft linked to the location of the OptiStruct solver script as:

<install_dir>/altair/scripts/optistruct<install_dir>/altair/hwsolvers/scripts/optistruct

To run OptiStruct from a Windows DOS prompt, type the following:
<install_dir>\hwsolvers\scripts\optistruct.bat "filename" -option argument

The options and arguments are described under Run Options.

OptiStruct looks for filename in the following manner (filename may contain a file path that is either absolute or relative to the run directory):
  • First, it checks to see if filename exists exactly as input.
  • If filename does not exist exactly as input, and if filename does not contain an extension (that is, if the actual file name without the path does not contain a period), it then checks for "filename".parm and then for "filename".fem.
  • If the filename is still not found, all the above searches are repeated with extra extension .gz appended (the file will then be assumed to be compressed using gzip or equivalent utility).

If none of these checks results in a match, OptiStruct reports an error and terminates.

From HyperWorks Solver Run Manager

On Windows, a utility to start each solver is provided through Start > Programs > HyperWorks 2020 > OptiStruct. With this utility, you can start multiple solver runs, not only OptiStruct but also other solvers, example: Radioss or MotionSolve), run FSI jobs (OptiStruct with AcuSolve), select options from the menu, queue successive runs, submit runs to a remote server (standalone Linux host or PBS cluster) and maintains a history of solutions. On Unix platforms, this utility can be started from the command line as:
<install_dir>/altair/hwsolvers/scripts/<solver name> -gui

For more information, refer to HyperWorks Solver Run Manager.

From HyperMesh

If you set up a finite element model in HyperMesh, you can run the simulation directly out of HyperMesh by going to the OptiStruct panel in the respective user profiles. The panels can be accessed through the Analysis page, from the Utility menu, or through the Applications pull-down. The panels ask for the file name. After clicking the solver button, the model is exported using the given export options, then the solver runs the script that is provided locally on the machine. After solver execution, the results can be viewed in HyperView. You can bring up HyperView with the results loaded by clicking HyperView.

Note: When running OptiStruct from HyperMesh on Unix and Linux, a shell is spawned with the DISPLAY setting <hostname>:0.0. If this is different from the DISPLAY setting for HyperMesh, 50 HyperWorks units (in addition to the 21 HyperWorks units being used for HyperMesh) will be checked out. To avoid the checking out of additional units, be sure that the DISPLAY is set to <hostname>:0.0 before starting HyperMesh.

From HyperView or HyperGraph

If you are in HyperView or HyperGraph, OptiStruct can be run from the Applications pull-down. After selecting OptiStruct, the HyperWorks Solver Run Manager main form will appear, where you select a file, enter run options, and run the simulation.

Configuration File

The configuration file optistruct.cfg may be used to establish default settings for OptiStruct either system wide, for a particular user, or for a local directory. A full description of the settings allowed and the usage of the configuration file is provided on the Configuration File page.