Exercise 11_3a – Matrix Load Manipulation

Exercise 11_3a – Matrix Load Manipulation
In this exercise, you will use the Matrix Browser tool to update loads.
This exercise uses the model file, IC_Pressures.hm.
Step 1: Switch to the Aerospace profile and open the model
1. Start HyperMesh
2. Select the Aerospace profile with the OptiStruct option.
3. Open the HyperMesh model file, IC_Pressures.hm.
Step 2: Create a Matrix Browser Template
1. From the menu bar, select the Aerospace > Matrix Browser.
2. First we need to initialize the matrix. We do this by selecting Initialize under
Command List, InitSel under Command SubList and Loads under Command
SubList2.
3. Select Commit to update the template.
4. Next use the quick selection method to select all of the displayed loads and then
select proceed.
5. Click in the first row in the loads column and then under Command List select
HM_Data, under Command SubList select GetEntity and under Command
SubList2 select elements.
6. Select Commit to add elements to the table.
7. Add additional columns by clicking in the first row again, leaving HM_Data set under
Command List, and then under Command SubList select GetEntityInfo and under
Command SubList2 select baselocationx, baselocationy, baselocationz and
magnitude (hold down the Control Key to make multiple selections).
8. Select Commit to add the columns to the table.
9. Select SaveAs Macro, browse to a location to save the file, enter a file name and
then select Save to save the Matrix Browser template.
10. A message appears telling you where the file was saved. Select OK.
Step 3: Clear the browser and run the Matrix Browser Template
1. In the Matrix Browser, select Close to close the browser.
2. Select No as we do not want to save the data.
3. Run the template by selecting File > Run > Tcl/Tk Script.
4. Browse for the file we just saved and select the file with the _RUN suffix and then
select Open.
5. Use the quick selection method to draw a box around the displayed loads and then
select proceed.
The matrix is then created on the selected loads. The matrix table is dynamic and
model independent; it basically rebuilds itself depending on the selected loads.
Please note that additional correlations cannot be added at this point.
Exercise 11_3b – OptiStruct Sizing Optimization Setup using the
Matrix Browser
In this exercise, you will use the Matrix Browser tool to create a template for an
OptiStruct optimization.
This exercise uses the model file, pipe.hm.
Step 1: Switch to the Aerospace profile and open the model
1. Start HyperMesh
2. Select the Aerospace profile with the OptiStruct option.
3. Open the HyperMesh model file, IC_Pressures.hm.
Step 2: Create a Matrix Browser Template
1. From the menu bar, select the Aerospace > Matrix Browser.
2. First we need to initialize the matrix. We do this by selecting Initialize under
Command List, InitSel under Command SubList and properties under Command
SubList2.
3. Select Commit to update the template.
4. Select the purple and the blue component (shown highlighted below).
5. Select proceed.
6. Click in the first row in the properties column and then under Command List select
HM_Data, under Command SubList select GetEntity and under Command
SubList2 select dvprels.
7. Select Commit to add elements to the table.
8. Add another column by clicking in the first row under dvprels, leaving HM_Data set
under Command List and GetEntity under Command SubList, and then under
Command SubList2 select designvars.
9. Select Commit to add the columns to the table.
10. Add another column by clicking in the first row under properties, leaving HM_Data
set under Command List and then select GetEntityInfo under Command SubList,
and then under Command SubList2 select name.
11. In the Col Name field, enter prop_name.
12. Select Commit.
13. Add another column by clicking in the first row again, this time under dvprels.
14. Leave HM_Data set under Command List, GetEntityInfo under Command
SubList, and name Command SubList2. In the Col Name field, enter
dvprels_name.
15. Select Commit.
16. Add another column by clicking in the first row again, this time under designvars.
17. Leave HM_Data set under Command List, GetEntityInfo under Command
SubList, and name under Command SubList2. In the Col Name field, enter
dv_name.
18. Select Commit.
19. Add another column by clicking in the first row under properties, leaving HM_Data
set under Command List and then select GetEntityAttributes under Command
SubList, and then under Command SubList2 select PSHELL T: 10.
20. Select Commit.
21. Add one final set of columns by clicking in the first row under designvars, leaving
HM_Data set under Command List, GetEntityInfo under Command SubList, and
then selecting lowerbound, initialbound, and upperbound uner Command
SubList2.
22. Select Commit.
23. Select SaveAs Macro, browse to a location to save the file, enter a file name and
then select Save to save the Matrix Browser template.
24. A message appears telling you where the file was saved. Select OK.
Step 3: Clear the browser and run the Matrix Browser Template
1. In the Matrix Browser, select Close to close the browser.
2. Select No as we do not want to save the data.
3. Run the template by selecting File > Run > Tcl/Tk Script.
4. Browse for the file we just saved and select the file with the _RUN suffix and then
select Open.
5. Use the quick selection method to draw a box around the displayed components and
then select proceed.
The matrix is then created on the selected loads. The matrix table is dynamic and
model independent; it basically rebuilds itself depending on the selected loads.
Please note that additional correlations cannot be added at this point.
Exercise 11_3c – Matrix Plies Manipulation
In this exercise, you will use the Matrix Browser tool to update plies.
This exercise uses the model file, IC_Pressures.hm.
Step 1: Switch to the Aerospace profile and open the model
1. Start HyperMesh
2. Select the Aerospace profile with the OptiStruct option.
3. Open the HyperMesh model file, Altair_Door_Surround_5_savedview.hm.
4. Set the 1D element view to 1D Detailed Element Representation,
5. Set the ply view to Composite Layers,
6. Set the element view to By Prop.
.
.
Step 2: Create a Matrix Browser Template
1. From the menu bar, select the Aerospace > Matrix Browser.
2. First we need to initialize the matrix. We do this by selecting Initialize under
Command List, InitSel under Command SubList and plies under Command
SubList2.
3. Select Commit to update the template.
4. Next click on plies and then in the upper right hand corner of the panel, click on
plies >> by laminate.
5. Select one of the plies displayed to select the laminate, then click select and then
click select again.
6. Select proceed.
7. Click in the first row in the plies column and then under Command List select
HM_Data, under Command SubList select GetEntityInfo and under Command
SubList2 select name, color, thickness1, orientangle, and materialid.
8. Select Commit to add columns to the table.
9. Select SaveAs Macro, browse to a location to save the file, enter a file name and
then select Save to save the Matrix Browser template.
10. A message appears telling you where the file was saved. Select OK.
Step 3: Clear the browser and run the Matrix Browser Template
1. In the Matrix Browser, select Close to close the browser.
2. Select No as we do not want to save the data.
3. Run the template by selecting File > Run > Tcl/Tk Script.
4. Browse for the file we just saved and select the file with the _RUN suffix and then
select Open.
5. Select a couple of the displayed plies and then select proceed.
The matrix is then created on the selected loads. The matrix table is dynamic and
model independent; it basically rebuilds itself depending on the selected loads.
Please note that additional correlations cannot be added at this point.