HS-1690: Set Up a PhysicsAI Model
Tutorial Level: Advanced 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.
Figure 1.
- 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.
Figure 2.
-
In the Resource field, click on the
button and select the
arm_model.tpl file.
The Editor dialog opens. - Click OK.
-
In the Solver Input File field, enter arm_model.fem and
press Enter.
Figure 3.
- 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.
- Go to the Define Models step.
-
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.
Figure 4.
-
Add resources for each PhysicsAI model.
-
In the Resource field of PhysicsAI 1, click
and select the
Arm_displacement_1000.psmdl model file from the
dialog.
-
In the Resource field of PhysicsAI 2, click
and select the
Arm_stress_1000.psmdl model file from the
dialog.
Figure 5.
-
In the Resource field of PhysicsAI 1, click
-
Edit the PhysicsAI model resources.
-
Add solver arguments to the PhysicsAI 1 model.
Figure 7.
-
Add solver arguments to the PhysicsAI 2 model.
-
In the Solver Arguments field of physicsAI 2, click
.
-
In the Solver Input Arguments field of the 1 row, enter
${basename m_3.file_2}. - Press OK.
-
In the Solver Arguments field of physicsAI 2, click
- Click Import Variables.
Set Up Output Responses
In this tutorial, you will set up output responses for a PhysicsAI model file.
- Go to the Test Models step.
-
Click Run Definition.
- Click either Overwrite or Delete at the warning dialog.
- Go to the Define Output Responses step.
-
Add the output responses.
-
Add the first data source.
-
Repeat step 5 to add a second data source with the following details.
File arm_model_pred.h3d in approaches\setup_1-def\run__0001\m_3 Type Element Stresses (Elements) Components Value (2D& 3D) Figure 10. 
Figure 11.
-
Define output responses.
-
Click Evaluate.
The setup is complete.
Set Up and Run an Optimization Study
In this tutorial you will set up and run an optimization study using a PhysicsAI model.
-
Add an Optimization.
- In the Study 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 Test Models step.
- Click Run Definition.
- Go to the Define Output Responses step.
- In the Goals field for Volume, set the Type to Minimize.
-
For Max_displacement, create a Goal defined by an upper
bound constraint (<=2).
Figure 13.
- For Max_stress, create a Goal defined by an upper bound constraint (<=200).
- Click Evaluate.
- Go to the step.
-
Accept the default settings and click Apply.
The setup is complete.
- Go to the step.
- Click on the Evaluate Tasks button.
- After the evaluation is complete, the results can be reviewed using the Post-Processing task for Optimization 1.