HS-1560: Set Up Study using LS-DYNA Model Parameters in HyperMesh

Learn how to set up a study for a LS-DYNA model in HyperMesh.

Before you begin, copy the model files used in this tutorial from <hst.zip>/HS-1560/ to your working directory.
The LS-DYNA model has shape variables created using HyperMorph. In addition to the shape variables a HyperMesh parameter is created for material property, E.  These variables are then imported to HyperStudy as input variables. For this study, you will start HyperStudy from within HyperMesh.

Import a HyperMesh Parameter into HyperStudy

  1. Start HyperMesh Desktop.
  2. In the User Profiles dialog, set the user profile to LS-DYNA.
  3. Open model.
    1. From the menu bar, click File > Open > Model.
    2. In the Open Model dialog, open the boxbeam_morphed_noDV.hm file.
    A model appears in the graphics area.


    Figure 1.
  4. Create and assign parameter to Material.
    1. In the Model browser, Material folder, click Material.
      The Entity Editor opens and displays the material's corresponding data.


      Figure 2.
    2. In the Entity Editor, right-click on E and select Create and Assign Parameter from the context menu.


      Figure 3.
      The Create Parameters dialog opens.
    3. In the Name field, enter E.
    4. Click Close.


      Figure 4.
  5. Save the HyperMesh model by clicking File > Save > Model from the menu bar.
  6. Close HyperMesh Desktop.

Register LS-DYNA as a Solver

  1. Start HyperStudy.
  2. From the menu bar, click Edit > Register Solver Script.
    The Register Solver Script dialog opens.
  3. Add solver script.
    1. Click Add Solver Script.
      The Add dialog opens.
    2. In the Label and Varname fields, enter Dyna.
    3. From the list of solver script types, select Generic.
    4. Click OK.


    Figure 5.
  4. In the Path column of the script Dyna, click .
  5. In the Open dialog, navigate to the local installation of the LS-DYNA solver, and then have it point to the LS-DYNA solver executable without any spaces in the file path.
    Note: If LS-DYNA is not installed locally, write a solver script to call it properly. For more information on this process, refer to Write and Register Solver Scripts.
  6. Click OK.

Perform the Study Setup

During this step, you will import the input variables that you created in HyperMesh.

  1. Start a new study in the following ways:
    • From the menu bar, click File > New.
    • On the ribbon, click .
  2. In the Add Study dialog, enter a study name, select a location for the study, and click OK.
  3. Go to the Define Models step.
  4. Add HyperMesh model.
    1. From the Directory, drag-and-drop the boxbeam_morphed_noDV.hm file into the work area.


      Figure 6.
    2. In the Solver Input File column, enter boxbeam_morphed.k.
      This is the name of the solver input file HyperStudy writes during any evaluation.
    3. In the Solver Execution Script column, select Dyna (Dyna).
    4. In the Solver Input Arguments column, enter i= before $file.


    Figure 7.
  5. Import variables.
    1. Click Import Variables.
      The Model Parameters dialog opens.
    2. Select the parameters E, shape1_h.S, shape1_w.S, and shape1_l.S.
    3. Click Add.
    4. Click OK.


    Figure 8.
  6. Go to the Define Input Variables step.
  7. Review the input variable's lower and upper bound ranges.


    Figure 9.

Perform Nominal Run

  1. Go to the Test Models step.
  2. 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

  1. Go to the Define Output Responses step.
  2. Click Add Output Response three times to add three output responses labeled Energy, Force, and Mass.


    Figure 10.
  3. Define the output response, Energy.
    1. In the Expression column of the output response Energy, click ....
      The Expression Builder opens.
    2. Click the Functions tab.
    3. From the list of available functions, select max.
    4. Click Insert Varname.
      The function max() appears in the Evaluate Expression field.


      Figure 11.
    5. Click the Data Sources tab.
    6. Click Add Data Source.
      A data source is created.
    7. In the File column of Data Source 1, click ....
      The Data Source Builder opens.
    8. In the File field, navigate to the approaches/setup_1-def/run__00001/m_1 directory and open the glstat file.
    9. Select the following options:
      • Set Type to Energy
      • Set Request to Internal Energy
      • Set Component to Energy
    10. Click OK.
    11. Next to Insert Varname, click and select First Element.


      Figure 12.
    12. Click Insert Varname.
      The expression max(ds_1[0]) appears in the Evaluate Expression field.
    13. Remove [0] from the expression, so that it reads max(ds_1).
      This expression produces the value of the energy value extracted from the nominal run.
    14. Click OK.
  4. Define the output response, Force.
    1. Repeat steps 3.a - 3.g for the Force output response.
    2. In the File field, navigate to the approaches/setup_1-def/run__00001/m_1 directory and open the binout0000 file.
    3. Select the following options:
      • Set Subcase to spcforc
      • Set Type to spcforc
      • Set Request to Resultant
      • Set Component to z_resultant
    4. Click OK.
    5. Click Insert Varname.
      The expression max(ds_2[0]) appears in the Evaluate Expression field.
    6. Remove [0] from the expression, so that it reads max(ds_2).
      This expression produces the value of the Force value extracted from the nominal run.
    7. Click OK.
  5. Define the output response, Mass.
    1. In the Expression column of the output response Mass, click ....
      The Expression Builder opens.
    2. Click the Data Sources tab.
    3. Click Add Data Source.
      A data source is created.
    4. In the File column of Data Source 3, click ....
      The Data Source Builder opens.
    5. In the File field, navigate to the approaches/setup_1-def/run__00001/m_1 directory and open the d3hsp file.
    6. For Tool, select ASCII Extract.
    7. Highlight the value for total mass of body.
      Tip: Quickly search for keywords within the file by selecting the Keyword checkbox and entering total mass of body in the text field. Click until the total mass of body keyword is located.
    8. Right-click on the highlighted fields, and select Value from the context menu.
    9. Click OK.
    10. Click Insert Varname.
      The expression ds_3[0] appears in the Evaluate Expression field. This expression produces the value of the Mass value extracted from the nominal run.
    11. Click OK.
  6. Click Evaluate to extract the response values.