HS-4420: Optimization Study of a Spherical Impactor
Learn how to perform an advanced study that has both size and shape input variables on a RADIOSS finite element model.
The steps taken in this tutorial demonstrate how to analyze the input variables in order to identify the most important variables and how to do an Optimization. The objective of the Optimization is to minimize the maximum acceleration of the impactor, while keeping maximum displacement lower than 16 mm.
Export Shape Parameterization from HyperMesh
- Start HyperMesh Desktop.
- In the User Profiles dialog, change the user profile to RADIOSS.
-
Open model.
- From the menu bar, click .
- In the Open Model dialog, open the impactor.hm file.
The impactor.hm database has the RADIOSS analysis setup, and the shapes have already been created. You must export the shapes variables so that they are included in the template file. -
Create shapes.
A shape design variable is created for each shape.
- Optional:
Animate or visualize shapes.
- Click animate.
- In the Deformed panel, click linear or modal to animate the shape variables in the modeling window.
- While the shape is animating, you can adjust the animation speed by moving the slider as indicated in the image below.
-
Export and save shapes.
- Go to the export subpanel.
- For analysis code, select HyperStudy.
- For sub-code, select Radioss51.
- In the File field, enter impactor.shp.
- Click export as.
- In the Save As dialog, navigate to your working directory and save the file as impactor.shp.
HyperMesh writes the following files:- impactor.radioss51.node.tpl: Grid coordinates template
- impactor.shp: Grid perturbation vector data read by impactor.radioss51.node.tpl
- Exit HyperMesh desktop.
Create Base Input Template
In this step, create the base input template in HyperStudy.
- Start HyperStudy.
-
From the menu bar, click .
The Editor opens.
- In the File field, open the impactor_0000.rad file.
-
Right-click anywhere in the editor and select context menu.
from the All of the /NODE cards in the impactor_0000.rad file highlight.
- Right-click on the highlighted cards and select Include Shape from the context menu.
-
In the Shape Template dialog, open the
impactor.radioss51.node.tpl file.
The shape variables are created and the grid is replaced by the parameter file (which contains the grid parameterized by the shapes) exported during the step Export Shape Parameterization from HyperMesh.
-
Create parameter.
-
Define three more input variables for thickness using the information provided
in Table 1:
Table 1. Input Variable Label Lower Bound Nominal Value Upper Bound Format prop_internal_skin th_internal_skin 1.0 1.0 2.0 %20.5f prop_external_flange th_external_flange 1.0 1.0 2.0 %20.5f prop_internal_flange th_internal_flange 1.0 1.0 2.0 %20.5f - Click OK to close the Editor.
- In the Save Template dialog, navigate to your working directory and save the file as impactor.tpl.
Perform the Study Setup
-
Start a new study in the following ways:
- From the menu bar, click .
- On the ribbon, click .
- In the Add Study dialog, enter a study name, select a location for the study, and click OK.
- Go to the Define Models step.
-
Add a Parameterized File model.
-
Define a model dependency
-
Click Import Variables.
Eight input variables are imported from the impactor.tpl resource file.
- Go to the Define Input Variables step.
- Review the input variable's lower and upper bound ranges.
Perform Nominal Run
- Go to the Test Models step.
-
Click Run Definition.
An approaches/setup_1-def/ directory is created inside the study Directory. The approaches/setup_1-def/run__00001/m_1 directory contains the input file, which is the result of the nominal run.
Create and Evaluate Output Responses
In this study, you want to analyze the maximum acceleration and the maximum displacement observed by the box. This study is a function of the time; you need to extract the maximum of each output response vector over time.
- Go to the Define Output Responses step.
-
Create a file source for time.
-
Create a second file source for impactor acceleration along the Z axis by
repeating step 2 with the following changes:
- Type: Node/TH_node_sphere
- Request: 4206 rigid_sphere_4206
- Component: AZ-Z Acceleration
-
Create a third file source for impactor displacement along the Z axis by
repeating step 2 with the following changes:
- Type: Node/TH_node_sphere
- Request: 4206 rigid_sphere_4206
- Component: DZ-Z Displacement
-
Add two output responses.
- Click the Define Output Responses step.
- Click Add Output Response twice.
- In the work area, change the labels for the output responses to Max_Acceleration and Max_Displacement.
-
Define the Max_Acceleration output response.
-
Define the Max_Displacement output response.
- Click Evaluate to extract the response values.
Run Screening DOE Study
Reduce the number of input variables by running a screening experiment.
-
Add a DOE.
- Go to the step.
- In the work area, set the Mode to Fractional Factorial.
-
In the Settings tab, set Resolution to IV.
Note: Resolution IV enables an estimate of main effects unconfounded by two-factor interactions. It also enables an estimate of two-factor interaction effects, which may be confounded with other two-factor interactions.
- Verify that the Number of Runs is set to 16.
- Click Apply.
- Go to the step.
- Click Evaluate Tasks.
- Go to the step.
-
Click the Linear Effects tab to review the linear
effects.
Observe the main effect of the input variables on both output responses.
-
Click the Pareto Plot tab, then use the
Channel selector to select both of the output
responses.
A linear effects plot and a pareto plot with the Linear Effects option enabled (shown in Figure 21) provide the same information. However, with a pareto plot, you can use a statistical measure (that is, the 80-20 rule) to decide which input variables are more significant and which input variables can be neglected.For this tutorial, you will use the 80/20 rule to eliminate input variables that are not significant to the study. The 80/20 rule is a Pareto principle that proposes 80% of the total effects comes from only 20% of the variables.Note: You should also use other practices to eliminate input variables that you feel should be taken in consideration.For screening purpose, you can see which input variables contribute to 80% or more of the given output response. In Figure 22 you can see the following:
- For Max_Acceleration, the input variables length_internal, th_internal_skin, and th_external_skin contribute to 80% of the linear effect.
- For Max_Displacement, the input variables length_internal and th_internal_skin fall under the 80/20 rule.
Run DOE Study for Approximation
-
Add a DOE.
- Go to the step.
-
In the Active column, keep only the three significant input variables active
(established in the step:Post-Process the Screening DOE Study), and clear the
corresponding checkboxes for all other input variables.
- Go to the step.
- In the work area, set the Mode to Central Composite.
- Click Apply.
- Go to the step.
- Click Evaluate Tasks.
Run DOE Study for the Validation Matrix
Other points will be used to check the quality of the approximation.
- In the Specifications step, set the Mode to Latin HyperCube.
- In the Settings tab, change the Number of Runs to 10.
Create Fit
-
Add a Fit.
- In the Explorer, right-click and select Add from the context menu.
- In the Add dialog, select Fit Existing Data and Setup, and click OK.
-
Import matrix.
-
Review input variables.
- Go to the step.
- Only the length_internal, th_internal_skin, and th_external_skin input variables should be active.
-
Define specifications.
- Go to the step.
- Click Evaluate Tasks.
- To assess the accuracy of the regression equations, go to the Residuals and Diagnostics tab. step and click the
-
To review the output response curves and surfaces, click the
Trade-Off tab.
In the Trade-Off 3D tab, use the Channel selector to plot input variables and output responses. The values for the input variables which are not plotted are modified in the top frame (Inputs). Move the sliders in the Value column to modify the other input variables, while studying the output response throughout the design space.
Run Optimization
-
Add an Optimization.
- In the Explorer, right-click and select Add from the context menu.
- In the Add dialog, select Optimization.
- For Definition from, select Setup and click OK.
-
Modify input variables.
- Go to the step.
- In the Active column, clear the checkboxes for all input variables except length_internal, th_internal_skin and th_external_skin.
- Go to the step.
- Click the Objectives/Constraints - Goals tab.
-
Apply an objective on the Max Acceleration output response.
- Click Add Goal.
- In the Apply On column, select Max Acceleration.
- In the Type column, select Minimize.
-
Apply a constraint on the Max_Displacement output response.
- Click Add Goal.
- In the Apply On column, select Max_Displacement.
- In the Type column, select Constraint.
- In column 1, select <= (less than or equal to).
- In column 2, enter 16.
-
Modify evaluation source.
- Click the Define Output Responses tab.
- In the Evaluate From column, select Fit 1 (fit_1) for both output responses.
- Go to the step.
- In the work area, set the Mode to Genetic Algorithm (GA).
- Click Apply.
- Go to the step.
-
Click Evaluate Tasks.
The program will optimize the design that minimizes the maximum acceleration while keeping the displacement of node 35527 smaller than 16.
-
Click the Iteration Plot tab to monitor the Optimization
iteration.
-
Click the Iteration History tab to review a table of
each iteration.
The iterations that do not respect the constraint are displayed red, the optimal design is displayed green.
Run Verification
In this step, you will run a Verification to check if the solution found by the approximation is close to the solver results.
-
Add a Verification.
- Go to the step.
- Click Verify.
- Go to the step.
-
In the work area, set the Mode to Verify Optimal.
- Click Apply.
- Go to the step.
- Click Evaluate Tasks.
- Go to the step.
- Click the Delta Summary tab.
-
Hover your cursor over the value of the Max-Displacement
column to review the difference between the fit predicted values (original
value) and the solver run results (verification value).
As shown in Figure 33, there is a small difference in displacements.