Defining a shape variation
Create and mesh the model in Abaqus/CAE. Output the corresponding input file by selecting and from the main menu bar in the Job module.
(In the discussion that follows it is assumed that the model is named
Model-1
, the part is namedPart-1
, and the part instance is namedPart-1-1
).Select
from the main menu bar to copyModel-1
toModel-2
, for example. SelectModel-2
from the list located in the context bar. This model will be used in subsequent steps to compute the shape variation.In the Part module select the part for which a shape variation must be calculated from the
list located under the context bar. Select from the main menu bar to edit the associated sketch. Select and to change the design parameter. End the edit of the sketch, and indicate that the geometry should be regenerated automatically.Editing the sketch will cause the mesh of
Model-2
to be deleted.Use the Abaqus/CAE command line or select to execute the commands listed below. The _computeShapeVariations() command is accessed from the rootAssembly of either model and requires as input the original part instance, the modified part instance, and the name of the file to which the data lines of the shape variation option will be written. The .inp extension will be appended automatically to the specified file name.
The following sequence of commands is appropriate for the creation of a shape variable associated with a parameter h:
ra1 = mdb.models['Model-1'].rootAssembly ra2 = mdb.models['Model-2'].rootAssembly i1 = ra1.instances['Part-1-1'] i2 = ra2.instances['Part-1-1'] ra1._computeShapeVariations(originalInstance=i1, modifiedInstance=i2, fileName='shape_h')
To compute the shape variation, the mesh of
Model-1
is mapped to the changed geometry ofModel-2
and then smoothed. Examine the mapped mesh ofModel-2
to verify that the mesh was mapped as expected. (In general, any changes to the geometry should be small—around 1%—so as to avoid difficulties with the mapping of the mesh).The shape variation is calculated simply by subtracting the initial node positions from the node positions calculated after mapping and smoothing the mesh to the changed geometry.
To use the shape variation data, copy to the input file for your analysis the data written by the _computeShapeVariations() command to the shape_h.inp file.
Verify the correctness of the data by running your analysis and using the Visualization module in Abaqus/CAE to view the shape variation.