The integration of ANSA as a preprocessor in LS-OPT is shown here. The same example is depicted in detail and available for download in Coupling ANSA.
The preprocessing sequence that will be connected to LS-OPT will be defined in ANSA.
Define the pre-processing sequence that will be connected to LS-OPT. This sequence of actions will be invoked in every optimization loop and every action of it will be executed in the defined order modifying the shape and parameters of the model. All these actions take place before the run of the solver. When the sequence runs the following tasks are executed:
Save the Design Variable file for example as model.txt.
This file contains the Design Variable names and upper and lower bounds needed for the optimization.
The optimization sequence that is defined in ANSA is connected and controlled from LS-OPT.
To use results of upstream stages, LS-OPT allows file transfers between stages. In this case, the output file of the stage ANSA is used as input file in LS_DYNA.
The File Transfers dialog is accessible by selecting the dependency icon on the arrow connecting the stages.
Then the necessary Source and Destination Files for the selected transfer Operation type, which is Copy in this case, have to be defined. Since the file is needed to run the LS-DYNA simulation, the operation in the case of Error is set to fail.