HS-4410: Readmac Delegate for Mode Tracking
Learn how to use the Readmac delegate for mode tracking applications.
In this tutorial you will set up an optimization problem with the objective of
maximizing the first natural frequency of a simple rectangular section beam.
Perform the Study Setup
- Start HyperStudy.
-
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.
-
Click Import Variables.
Two input variable is imported from the .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 step you will create three output responses that are based on elements of a single data source from the Readmac delegate.
- Go to the Define Output Responses step.
-
Create a data source.
-
Create and define output responses.
- Click Evaluate to extract the response values.
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.
- Go to the step.
- Click the Objectives/Constraints - Goals tab.
-
Apply an objective on the Freq of best matched mode output response.
- Click Add Goal.
- In the Apply On column, select Freq of best matched mode.
- In the Type column, select Maximize.
- Go to the step.
-
In the work area, set the Mode to Adaptive
Response Surface Method (ARSM).
Note: Only the methods that are valid for the problem formulation are enabled.
- Click Apply.
- Go to the step.
- Click Evaluate Tasks.
-
Click the Iteration History tab.
The frequency of best matched mode in the target file is maximized to 50.067 from 33.388. The readmac function that was running the background was able to track the ID of the matched mode in the target .h3d file. The mode ID in the converged solution switched from 1 to 2.