Optimization of a Damped Oscillator in Ansys Workbench

This tutorial allows you to complete an optimization of a single degree-of-freedom system excited with initial kinetic energy.

The equation of motion of free vibration is:

The un-damped and damped eigen-frequency is

The time-dependent displacement function is:

In this tutorial, you complete the optimization using the optiSLang extension in Workbench.

Problem Definition

The optimization goal is to minimize maximum amplitude after five seconds of free vibration.

The restricted damped eigen-frequency as the optimization constraint is:

The mass and stiffness as optimization variables, damping ratio and kinetic energy as the constant is:

Task Description

This tutorial demonstrates how to do the following:

  • Define the parameter properties

  • Perform a sensitivity analysis with respect to mass and stiffness using the global bounds

  • Perform a single objective and constrained optimization by minimizing the maximum amplitude

  • Perform an optimization using the Metamodel of Optimal Prognosis (MOP)

  • Perform an optimization using the Adaptive Metamodel of Optimal Prognosis (AMOP)

Preparation

Before you start the tutorial, download the oscillator_optimization_calibration_workbench zip file from here , and extract it to your working directory.

If you do not see an optiSLang section in the Workbench Toolbox, ensure that the Ansys Workbench optiSLang Extension is installed and activated.

Tutorial Steps

Opening the Workbench Project

  1. Start Workbench.

  2. From the menu bar, select File > Open.

  3. Browse to the oscillator_optimization_calibration_workbench folder and select one of the following options:

    • oscillator_excel.wbpz

      Select this option to use Microsoft Excel as the solver. This tutorial will be using this project file.

    • oscillator_apdl.wbpz

      Select this option to use Mechanical APDL as the solver.

  4. Click Open.

  5. To save the archive file as a Workbench project file, click Save.

Completing the Sensitivity Wizard

  1. To start a new sensitivity analysis, in the Workbench Toolbox, double-click the Sensitivity system.

  2. In row 4 (m), change the lower bound to 0.1 and the upper bound to 5.

  3. In row 3 (k), change the lower bound to 10 and the upper bound to 50.

  4. In rows 1 and 2 (D and Ekin), select the Constant check box.

  5. Click Next.

  6. To define x_max as a minimization objective, drag the row from the Responses table to the Objective Minimize icon and let it drop.

    The new criterion is displayed in the Criteria table.

  7. To define omega_damped as a constraint, drag the row from the Responses table to the Constraint Less icon and let it drop.

  8. In the Limit field, enter 8.

  9. Click Next.

  10. Select the Full factorial sampling method and leave the number of samples at 100.

  11. Click Finish.

Running the Sensitivity Analysis

  1. To save the current project, from the menu bar, select File > Save or from the main toolbar, click  .

  2. Right-click the Results cell of the Sensitivity system and select Update from the context menu.

    The DOE is created in the background and all designs are calculated.

    The Progress pane displays the status of the update and a progress bar.

    Finally, the MOP is generated.

Viewing the Sensitivity Analysis Results

  • To open the sensitivity analysis results, double-click the Results cell.

    The results of the sensitivity analysis are displayed. You can observe:

    • The approximation quality is excellent for both responses

    • The influence of the inputs is contrariwise

Completing the Optimization Wizard using the MOP

  1. Drag the Optimization wizard from the Toolbar and drop it onto the MOP cell of the Sensitivity system.

  2. Do not adjust the values in the Parametrize Inputs table.

  3. Click Next.

  4. Do not adjust or add to the currently displayed values for parameters, responses, and criteria.

  5. Click Next.

  6. Click Manual optimizer selection.

  7. Do not adjust the current optimization method settings.

    The gradient based NLPQL is recommended.

  8. Click Finish.

    An NLPQL system is added to the Project Schematic.

Updating the Project and Viewing Optimization Results

  1. To save the current project, from the menu bar, select File > Save or from the main toolbar, click  .

  2. Right-click the Results cell of the Optimization system and select Update from the context menu.

    The optimizer optimizer converges within a few iterations. The response, objective, and constraints of the best design are verified. Due to local approximation errors, the constraints of the best design may be violated in the validation solver run. Validation of the best design is is very important for the optimization on the MOP.

Adjusting the Optimization

If the validation is not satisfactory (for example, a large discrepancy or a violated constraint), use the following alternative strategies:

  • Change the constraint to provide a safety margin.

  • Append a local re-optimization with a direct solver call, using the best design on MOP as the starting design. The best design can be passed automatically to the new optimization system. However, we do not recommend using an infeasible start design.

  • Improve the metamodel locally by adding a validated best design to the sensitivity design of experiments and build a new metamodel, then repeat the optimization.

Completing the Optimization Wizard using the Adaptive MOP

  1. Drag the Optimization wizard from the Toolbar and drop it onto the DOE cell of the Sensitivity system.

  2. Do not adjust the values in the Parametrize Inputs table.

  3. Click Next.

  4. Do not adjust or add to the currently displayed values for parameters, responses, and criteria.

  5. Click Next.

  6. Click Manual optimizer selection.

  7. Do not adjust the current optimization method settings.

    The Adaptive Metamodel of Optimal Prognosis is recommended. All designs of the sensitivity system are used as start designs.

  8. Click Finish.

    An AMOP system is added to the Project Schematic.

Configuring AMOP Settings

  1. Double-click the AMOP cell of the AMOP system to open the settings.

  2. On the Adaption tab, select the Show advanced settings check box.

  3. In the Maximum number of samples field, enter 45.

  4. Adjust the refinement sliders so the first two are at 0% and the Importance of optimization criteria slider is at 100%

  5. To save and close the settings, click OK.

Updating the Project and Viewing AMOP Postprocessing

  1. To save the current project, from the menu bar, select File > Save or from the main toolbar, click  .

  2. Right-click the Results cell of the AMOP system and select Update from the context menu.

    The AMOP postprocessing is displayed. You can observe:

    • The AMOP with criteria refinement converges in a few iteration steps to the global optimum

    • Validation of best design is performed in every iteration

    • The history plot compares best design approximation and validation