Professional Documents
Culture Documents
Workshop 1 Creating and Reviewing A Replay File: Goals
Workshop 1 Creating and Reviewing A Replay File: Goals
Goals
When you complete this workshop, you will be able to:
1. Create an Abaqus/CAE model.
2. Understand the commands written to the replay file when creating an
Abaqus/CAE model.
3. Use the replay file to recreate a model.
4. Edit a replay file to modify a model.
Introduction
In this workshop, you will create a very simple Abaqus/CAE model and then review the
Abaqus Scripting Interface commands that are written to the replay file. The model is a
square tube with a through hole at one end. It is modeled with shell elements. A free
modal analysis is performed on it. The completed model is shown in Figure W1–1.
Figure W1–1
Preliminaries
1. Start a new session of Abaqus/CAE using the following command:
abaqus cae
where abaqus is the command used to run Abaqus.
2. In the Start Session dialog box, underneath Create Model Database, click With
Standard/Explicit Model.
Creating a part
1. Click the Create Part tool.
2. In the Create Part dialog box, name the part Tube.
3. Change the base feature shape to Shell and the type to Extrusion; click
Continue.
4. In the sketcher, click the Create Lines: Rectangle tool.
5. For the starting corner enter -10, 10.
6. For the opposite corner enter 10, -10.
7. Click the red X button to quit the rectangle tool.
8. The resulting sketch should look as shown Figure W1–2.
Figure W1–2
9. Click Done.
10. In the Edit Base Extrusion dialog enter 100 for the depth, and click OK.
Create a section
1. Click the Create Section tool.
2. In the Create Section dialog box, enter ShellSect as the section name.
3. Switch the Category to Shell and click Continue.
4. Enter 1.0 for the shell thickness and click OK.
Create a step
1. Switch to the Step module. Click the Create Step tool.
2. Enter Modal as the step name.
3. Select Linear Perturbation as the procedure type.
4. Select Frequency and click Continue.
5. Under Number of eigenvalues requested enter the value 10. Click OK.
Create a mesh
1. Switch to the Mesh module. Make sure the Part Object is set to Tube.
2. Click on the Seed Part Instance tool.
3. Assign a global size of 2.
4. Click the Mesh Part tool to generate the mesh.
Create a job
1. Switch to the Job module. Click the Create Job tool.
2. Enter TubeModel as the job name. Click Continue.
3. Click OK in the Edit Job dialog box.
4. Click the Job Manager tool. Click DataCheck and then click Dismiss.
Finishing up
1. From the main menu bar, select File → Save As.
2. Enter tube.cae for the filename and click OK.
3. Exit Abaqus/CAE.
4. Find the file named abaqus.rpy in your working directory.
5. Rename this file to tube.py.
6. This replay file will be used in later workshops. If you have any difficulty
creating this model, you may use the file ws_scr_tube_1_answer.py file
that is provided.
Task 1
Delete the tube.cae and tube.jnl files. Use the tube.py file to recreate the model.
Enter the following command:
Abaqus/CAE will use the replay file to rebuild the model exactly as it was. Exit CAE.
Task 2
Open the tube.py file in a Python-aware text editor (Notepad++, Abaqus PDE, etc. ).
Read through the file and make note of the commands that were created in it as you built
the model.
Questions:
Which command created the sketch rectangle?
Which command set the length of the tube?
Which command set the thickness of the tube?
Task 3
Edit the tube.py file to make some changes to the model. Do the following:
Change the size of the tube cross section to be 10 by 30 rather than 20 by 20.
Make the length 200.
Run the revised replay file and note the changes to the model. An answer script is
provided in ws_scr_tube_2_answer.py.
Answers to questions:
Answers to Task 3
File ws_scr_tube_2_answer.py contains answers to Task 3. The commands to change
are: