HS-1550: Shape Optimization Study Using HyperMesh and Abaqus |
|||||
HS-1550: Shape Optimization Study Using HyperMesh and Abaqus |
This tutorial demonstrates how to perform a shape optimization using HyperMesh and HyperStudy. You will be using the finite element solver Abaqus, and HyperMorph to do the shape parameterization. This tutorial also demonstrates how to solve a problem when HyperMesh and HyperStudy are running in Windows and the solver is on a UNIX platform.
The files used in this tutorial can be found in <hst.zip>/HS-1550/. Copy the tutorial files from this directory to your working directory. The tutorial directory includes the following files:
link.hm |
Original HyperMesh file. |
HS-1550_solverScript.py |
Basic Solver Script Setup (ONLY for LOCAL Machine) – Run everything on local machine (Windows or Unix) |
run_abaqus.sh |
(ONLY for REMOTE Machine) - Shell script which is designed to run the abaqus solver in the UNIX machine. |
ssh_remote.bat |
Advanced Solver Script Setup (ONLY for REMOTE Machine) – Run HyperStudy on Windows with Study Directory in Unix and the Solver is Running on Unix. Sample execution script to run Abaqus on UNIX. |
In this tutorial, you will:
• | Use HyperMorph to generate a shape variable. |
• | Run a study from inside HyperMesh. |
• | Perform a shape parameterization using HyperStudy. |
• | Set up a study. |
• | Write a script to run Abaqus on UNIX and register the script in the preference file. |
• | Run an optimization study. |
The objective of this tutorial is to minimize the mass of a link that is connected to a shaft, given a stress constraint of 200MPa. The input variables are defined by the outer shape.
|
|
To run the solver on a local machine, use the supplied python script HS-1550_solverScript.py, which calls the Abaqus solver using arguments specified that you specify. Change the path in the file to the Abaqus executable on your machine. Any additional arguments, such as memory requests, can be modified in the script as well.
(OPTIONAL - ONLY for REMOTE Machine): Advanced Solver Script Setup – Run HyperStudy on Windows with Study Directory in Unix and the Solver is Running on Unix.In order to run commands on a remote Unix machine, a local program must be installed to communicate the commands remotely. In this example, the program ssh is being used, but other equivalent or better programs exist. In most cases, the program’s protocols require authentication from a password. For this setup to work the environment needs to be configured to work without an active password entry. This setup may require help from your network administrators. The ssh_remote.bat file is a sample (Windows) batch file to run a script on Unix (run_abaqus.sh) from a HyperStudy session running on Windows.
The batch file uses the ssh command to log onto the Unix machine and execute the solver on the files created by HyperStudy. This script will be registered in HyperStudy as the solver script. To use the sample script, change the following to match your setup:
The file run_abaqus.sh is a shell script which is designed to run the Abaqus solver on a UNIX machine. This file should be placed in your HOME directory on the Unix machine.
Once there, perform the following:
|
|
Optional. In addition, you may need to edit the Abaqus environment file (ex: <ABAQUS INSTALL>\v6.11\6.11-1\site\abaqus v6.env) to include: ask_delete=OFF or comment the line ask delete=on if any. This is needed because Abaqus prompts you to overwrite the old files when re-running the analysis. In order to eliminate the need for user interaction, you need to command Abaqus not to ask this question and overwrite.
|
|
In this step you will create two output responses: Mass and Max_Stress.
|
|
|