Spot Weld Reduction using CWELD and 1-D Topology Optimization - OS-2040



Your Ad Here

This tutorial demonstrates how to perform 1-D topology optimization. The model is a simple welded hat section. The welding is modeled using CWELD elements.

The necessary file can be found in <install_directory>/tutorials/os/. Copy the files from this directory to your working directory.

The steps in the tutorial are:

·      Define the design space

·      Set-up the optimization problem

·      Run OptiStruct

·      Post-process the results

The following file is needed to perform this tutorial:

hut.hm Original HyperMesh database containing the analysis model.

The objective is to minimize the weighted compliance through all three load cases. The volume fraction of the weld component is limited to 0.3. The design space is the spot weld component.

image\os-1005-1-rszd.gif

Initial model.

To load the model in HyperMesh:

  1. Start HyperMesh.

  2. Choose OptiStruct in the User Profile dialog and click OK.

User Profile… can also be accessed from the Preferences pull-down menu on the toolbar.

  1. Select the hm file subpanel using the radio buttons on the left side of the panel.

  2. Click retrieve… and use the file browser to locate the file hut.hm. in <install_directory>/tutorials/os/.

  3. Click Open.

The hut.hm database is loaded into the current HyperMesh session, replacing any existing data.

Note that the location of the file is now displayed in the file: field.

  1. Click Return.

To define the design space:

  1. Go to the Analysis page.

  2. Click optimization.

This brings up the optimization module.

  1. Click topology.

  2. Set the radio button to create.

  3. Set the selector to type PWELD.

This action makes the props selection box show up.

  1. Click props.

  2. Select the tick box PWELD_500.

  3. Click return.

  4. Enter desvar = tpl.

  5. Click create.

This defines the design space.

  1. Click return.

To define the responses:

  1. Click responses.

  2. Select response type: volumefrac.

  3. Select by entity.

This action makes the yellow selection box show up.

  1. Switch the yellow box to the props box.

  2. Click props.

  3. Select the tick box PWELD_500.

  4. Click return.

  5. Enter response = volfrac.

  6. Click create.

This defines the volume fraction response.

  1. Enter response= wcomp.

  2. Select the pull-down menu below response type: to open a window listing all responses that are available for optimization in OptiStruct.

  3. Click the arrow icon image\green_aarow.gif to go to the second page.

  4. Click weighted comp to select it as the response type and return to the response panel.

  5. Click loadsteps.

  6. Turn on all three tick boxes for the subcases.

  7. Change the weighting factors for SUBCASE2 and SUBCASE3 to 100.0.

This increases the influence of the two bending load cases vs. the torsion load case SUBCASE1, which is kept at 1.0.

  1. Click return.

  2. Click create.

This defines the weighted compliance response.

  1. Click return.

To define the constraint and objective:

  1. Click dconstraints.

  2. Select response = volfrac.

  3. Select the tick box upper bound = and enter 0.3.

  4. Enter constraint = volfrac.

  5. Click create.

This defines the volume fraction constraint.

  1. Click return.

  2. Click objective.

  3. Select response = wcomp.

  4. Select min as the objective.

  5. Click create.

This defines the weighted compliance objective.

  1. Click return.

This concludes the definition of the optimization problem. Some optimization parameters should be modified to achieve a good result.

  1. Click opti control.

  2. Select the tick box DISCRETE = and enter 20.0.

This increases the penalty factor to the density method to achieve a discrete result.

  1. Select the tick box OBJTOL = and enter 1.e-5.

This reduces the objective tolerance that is checked for convergence.

  1. Click return twice.

To perform the OptiStruct run:

  1. Click OptiStruct to enter the panel to run OptiStruct.

  2. Click save as… following the input file: field.

A Save file… browser window pops up.

  1. Select the directory where you would like to write the OptiStruct model file and enter the name for the model, hut.fem, in the File name: field.

The .fem filename extension is the suggested extension for OptiStruct input decks.

  1. Click Save.

Note the name and location of the hut.fem file now displays in the input file: field.

  1. Select run options: optimization.

  2. The input file name should be hut.fem

  3. Click OptiStruct.

This will export the input deck and start the execution of OptiStruct in a DOS or Unix window.

To visualize the new spot weld configuration:

To post-process the results, the weld elements will be sorted by density into different components.

  1. Click files.

  2. Use browse to find the output hut.HM.comp.cmf from your OptiStruct run.

  3. Click Open.

  4. Click execute.

As a result, four of the welds are in the DENS 0.9-1.0 component, all others are in the DENS 0.0-1.0 component.

  1. To do a reanalysis with the new weld configuration, un-display the components with low density (DENS 0.0-0.1 to DENS 0.8-0.9) and rerun the analysis with export options: set to displayed in the OptiStruct panel.

image\os-1005-2-rszd.gif

Final configuration.

Go To

OptiStruct Tutorials

Return to Altair HyperWorks Index