HyperStudy

HS-1060: Linking Variables of a Model to Output Responses of Other Models

HS-1060: Linking Variables of a Model to Output Responses of Other Models

Previous topic Next topic Expand/collapse all hidden text  

HS-1060: Linking Variables of a Model to Output Responses of Other Models

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

In this tutorial you will learn how to link variables of a model to output responses of other models. The input variables are the thickness of each of the three components, defined in the input deck via the PSHELL card. The thickness should be between 0.05 and 0.15; the initial thickness is 0.1 (shown below).

The sample base input template files used in this tutorial can be found in <hst.zip>/HS-1060/. Copy the file from this directory to your working directory.

hs_4225_Double symmetric plate model

Figure 1: Double Symmetric Plate Model

hmtoggle_plus1greyStep 1: Perform the Study Setup
1.Start HyperStudy
2.To start a new study, click File > New from the menu bar, or click files_new_hst2 on the toolbar.
3.In the HyperStudy – Add dialog, enter a study name, select a location for the study, and click OK.
4.Go to the Define Models step.
5.Add a Parameterized File model.
a.From the Directory, drag-and-drop the plate.tpl file into the work area.

hs_1060_drag_drop_tpl_file

b.In the Solver input file column, enter plate.fem. This is the name of the solver input file HyperStudy writes during any evaluation.
c.In the Solver execution script column, select OptiStruct (os).
6.Add a Spreadsheet model by dragging-and-dropping Cost.xls file from the Directory into the work area.

The Resource, Solver input file, and Solver input arguments fields become populated. The Solver input file field displays hst_input.hstp, this is the name of the solver input file HyperStudy writes during an evaluation.

Note:When you create an Excel spreadsheet model, it is important that you format it correctly. A variable's value and label can be formatted in two consecutive rows or two consecutive columns. Variable labels should only contain English characters, or a combination of English characters and numbers. If you do not create a label for a variable, HyperStudy will assign one by default.

hs_1060_define_models

7.Click Import Variables. The cost.xls spreadsheet opens.
8.Add input variables.
a.In the Excel - HyperStudy dialog, click Yes to begin selecting input variables.

hs_1035_excel_dialog

b.In the spreadsheet, select the cells that contain the input variable's labels and values.

hs_1060_importvar1

c.In the Excel - HyperStudy Input selector dialog, click OK.
d.Click Cancel to stop selecting input variables.
9.Add output responses.
a.In the Excel - HyperStudy dialog, click Yes to begin selecting output responses.
b.In the spreadsheet, select the cells that contain the output response's label and value.

hs_1060_importvar2

c.In the Excel - HyperStudy Output selector dialog, click OK.
d.Click Cancel to stop selecting output responses. Two input variables and one output response are imported from the cost.xls spreadsheet.
10.Go to the Define Input Variables step.
11.Review the input variable's upper and lower bound ranges.
12.Go to the Specifications step.

 

hmtoggle_plus1greyStep 2: Perform the Nominal Run
1.In the work area, set the Mode to Nominal Run.
2.Click Apply.
3.Go to the Evaluate step.
4.Click Evaluate Tasks.
5.Go to the Define Output Responses step.

 

hmtoggle_plus1greyStep 3: Create and Define Output Responses

In this step you will create two output responses: Mass and Displacement.

1.Create the Mass output response.
a.From the Directory, drag-and-drop the plate.out file, located in approaches/nom_1/run_00001/m_1, into the work area.
b.In the File Assistant dialog, set the Reading technology to Altair® HyperWorks® and click Next.
c.Select Single item in a time series, then click Next.
d.Define the following options, and then click Next.
Set Type to Mass.
Set Request to Mass.
Set Component to Value.

hs-1060-response1

e.Label the output response Mass.
f.Set Expression to First Element.
Note:Because there is only a single value in this vector, [0] is inserted after v_1, thereby choosing the first (and only) entry in the vector. 

hs-1060-response1_1

g.Click Finish. The Mass output response is displayed in the work area.
2.Create the Displacement output response.
a.From the Directory, drag-and-drop the plate.h3d file, located in approaches/nom_1/run_00001/m_1, into the work area.
b.In the File Assistant dialog, set the Reading technology to Altair® HyperWorks® and click Next.
c.Select Single item in a time series, then click Next.
d.Define the following options, and then click Next.
Set Subcase to Subcase 1 (Load).
Set Type to Displacement (Grids).
Set Request to N298.
Set Component to MAG.
e.Label the output response Displacement.
f.Set Expression to First Element.

hs-1060-response2

g.Click Finish. The Displacement output response is added to the work area.
3.Click Evaluate to extract the output response values.

hs-1060-responses

 

hmtoggle_plus1greyStep 4: Linking Mass_Excel Input Variable of Model 2 to Mass Output Response of Model 1
1.In the Explorer, click Define Input Variables.
2.Click the Links tab.
3.In the Expression column of the input variable Mass_Excel, click hs_popupdialogicon.
4.In the Expression Builder, click the Responses tab.
5.Select the output response Mass.
6.Click Insert Varname. The expression m_1_r_1 appears in the Evaluate Expression field.
7.Click OK. The input variable Mass_Excel of Model 2 is now linked to the output response Mass of Model 1.

hs_1060_linkvar

8.Go to the Specifications step.
9.In the work area, set the Mode to System Bounds Check.
10.Click Apply.
11.Go to the Evaluate step.
12.Click Evaluate Tasks.
13.Click the Evaluation Data tab.
14.Verify that the input variable Mass_Excel is equal to the output response Mass.

hs_1060_linkvar2

 

 

 

See Also:

HyperStudy Tutorials