HS-1690: Set Up a physicsAI Model
Learn how to use physicsAI models to optimize displacement and stress in an optimization study.
Note: Unzip the project HST_pAI.7z and
inspect the contents:
- Arm_model.tpl is a parameterized template file for modifying the shape.
- Arm_model.optistruct.node.tpl contains the shape morphing parameters.
- Arm_model.shp contains the grid coordinates.
- Arm_displacement_1000.psmdl is a physicsAI trained model for predicting displacement.
- Arm_stress_1000.psmdl is a physicsAI trained model for predicting stress.
In this tutorial you will:
- Open HyperStudy and set up a study.
- Perform shape morphing on the provided arm model.
- Use physicsAI models to predict stresses and displacements, bypassing the need for an analysis.
- Run an optimization study to reduce the volume of the arm subject to stress and displacement constraints.
Create Study
In this tutorial, you will open HyperStudy and create a study.
- Launch HyperStudy.
-
Start a new study in the following ways:
- From the menu bar, click .
- On the ribbon, click .
- In the Label field, enter Arm_pAI_example.
-
In the Location field, click the icon and navigate to your tutorial working
folder.
- Click OK.
Import Design Variables
In this step, you will import the design variables and set up shape morphing for the Arm model.
-
In the Define Models tab, click on the Add
Model option.
The Add window opens.
-
Select Parameterized File and click
OK.
-
In the Resource field, click on the button and select the
arm_model.tpl file.
The Editor window opens. Press OK to close it.
-
In the Solver Input File field, enter arm_model.fem and
press Enter.
- Click the Import Variables button.
- From the Model tree, select to open the Test Models tab.
- Click the Run Definition button.
Load physicsAI Models
In this tutorial you will load physicsAI models for use in further studies.
- From the Explorer tree, click to open the Define Models task.
-
Add physicsAI models.
- Click on Add Model, select physicsAI and then click OK.
- Click on Add Model again, select physicsAI. In the Label field, name it physicsAI 2 and then click OK.
-
Add resources for each physicsAI model.
- In the physicsAI 1 (m_2) row, click on the in the Resource field and select the Arm_displacement_1000.psmdl model file from the dialog.
- In the physicsAI 2 (m_3) row, click on the in the Resource field and select the Arm_stress_1000.psmdl model file from the dialog.
-
Edit the physicsAI model resources.
-
Add solver arguments to the physicsAI 1 model.
- In the Solver Arguments field of the physicsAI 1 (m_2) model row, click the icon.
-
In the Solver Input Arguments field of the
1 row, enter
${basename m_2.file_2}
. You may need to expand the window to see this row. - Press OK.
-
Add solver arguments to the physicsAI 2 model.
- In the Solver Arguments field of the physicsAI 2 (m_3) model row, click the icon.
-
In the Solver Input Arguments field of the
1 row, enter
${basename m_3.file_2}
. - Press OK.
- Click on the Import Variables button.
Set Up Output Responses
In this tutorial, you will set up output responses for a physicsAI model file.
- From the Model tree, click to open the Test Models task.
-
Click the Run Definition button.
- Click either Overwrite or Delete at the warning dialog.
- From the Explorer tree, click to open the Define Output Responses task.
-
Add the output responses.
-
Add the first data source.
-
Add the second data source.
-
Define output responses.
- Click Evaluate. This completes the setup.
Set Up and Run an Optimization Study
In this tutorial you will set up and run an optimization study using a physicsAI model.
- Right-click inside the Study Explorer tab and click on Add.
-
In the Add dialog, select
Optimization and Setup. Press
OK.
- From the Explorer tree, click on the Test Models task for Optimization 1. Click on Run Definition.
- Click on the Define Output Responses task for Optimization 1.
- In the Goals field for Volume, set the Type to Minimize.
-
For Max_displacement, create a Goal defined by an upper
bound constraint (<=2).
- For Max_stress, create a Goal defined by an upper bound constraint (<=200).
- Click Evaluate.
- From the Explorer tree, click on the Specifications task for Optimization 1.
- Accept the default settings and click Apply. The setup is now complete.
- From the Explorer tree, click on the Evaluate task for Optimization 1.
- Click on the Evaluate Tasks button.
- After the evaluation is complete, the results can be reviewed using the Post-Processing task for Optimization 1.