The parameterized script changes the skew angle of the plate and computes
the maximum bending moment at the center for two different element types. The
script changes the skew angle by modifying an angular dimension and selecting
the vertices to move. You need to add the angular dimension and determine the
indices of the dimension to modify and the vertices to move.
The parameterized script changes the skew angle of the plate and computes
the maximum bending moment at the center for two different element types. The
script changes the skew angle by modifying an angular dimension and selecting
the vertices to move. You need to add the angular dimension and determine the
indices of the dimension to modify and the vertices to move.
Add the angular dimension
Return to the
Part module.
From the main menu bar, select
FeatureEdit
and select the plate to edit.
From the Edit Feature dialog box, select
Edit Section Sketch.
From the Sketcher toolbox, select the dimension tool
and dimension the angle at the lower left corner of the plate as
shown in
Figure 1.
Figure 1. Dimension the angle at the lower left corner of the
plate.
Determine the indices of the dimension to modify and the vertices to
move
From the Sketcher toolbox, select the edit dimension tool
.
Select the lower left angular dimension.
Enter a dimension of 60, and click
OK.
Exit the Sketcher tools, and exit the Sketcher.
From the Edit Feature dialog box, select
OK.
Examine the replay file, abaqus.rpy. The last few
lines of the replay file will contain the statements that modified the angular
dimension. The statement will look similar to the following:
d[0].setValues(value=60.0, )
The example script, skewExample.py, contains a
similar statement that modifies the angular dimension of the plate. The index
of the angular dimension in your model must be the same as the index in the
example script. If the indices are not the same, you must edit the example
script and enter the correct indices.
d[0].setValues(value=angle, )
Save the model database, and name it skew.
Abaqus/CAE
saves the model database in a file called skew.cae. The
example script opens this model database and parameterizes the model it
contains.