Introduction
Parametric studies require that multiple analyses be performed to provide information about the behavior of a structure or component at different design points in a design space. The inputs for these analyses differ only in the values assigned to the parameters of a parametrized keyword input file (identified with the .inp extension).
Parametric studies in Abaqus require a user-developed Python script in a file (identified with the .psf extension) that contains Python commands to define the parametric study. For example, consider a case where you wish to perform a parametric study in which the thickness of a shell is varied. You need to create a parametrized input file (in this example, a file named shell.inp) containing the parameter definition
PARAMETER thick1 = 5.
and the parameter usage:
SHELL SECTION,ELSET=name, MATERIAL=name <thick1>
You create the parametric study by developing a .psf file that contains a script of Python instructions specifying the different designs that are to be analyzed, as follows:
thick = ParStudy(par='thick1', name='shell') thick.define(CONTINUOUS, par='thick1', domain=(10., 20.)) thick.sample(NUMBER, par='thick1', number=5) thick.combine(MESH)
These scripting commands create five designs with corresponding section thicknesses of 10., 12.5, 15., 17.5, and 20.0. Each of these thicknesses will, in turn, replace the value of 5. specified in the parameter definition in shell.inp. You may then provide additional Python scripting commands in the .psf file instructing Abaqus to do the following:
-
Generate a number of shell_id.inp files and corresponding Abaqus jobs using the shell.inp file as a template. (The identifier id that is appended to the input file name is unique to each design in the parametric study.) An example of the Python command for this is
thick.generate(template='shell')
In this example the shell_id.inp files will differ only in the value to be used for the shell thickness.
-
Execute all the Abaqus jobs representing the different variations of the parametric study. The Python command for this is
thick.execute(ALL)
You generally want to review certain key results from the large amount of data that is generated by a parametric study. Abaqus provides the following capabilities for this purpose:
-
A command specifying the source from which the results of a parametric study will be gathered. For example:
thick.output(file=ODB, step=1, inc=LAST)
The command above sets the output location to the last frame of the first step in the output database (.odb) file. The default behavior is to gather results from the last frame of a given step in the results (.fil) file.
-
Commands to gather the required results from the multiple analyses generated by the parametric study and report them in a file or table. For example, the sequence of Python scripting commands used to gather and report the value of a displacement at a key node for each of the designs is:
thick.gather(results='n33_u', variable='U', node=33, step=1) thick.report(PRINT, par='thick1', results=('n33_u.2'))
The commands above gather the results record
'n33_u'
(the displacement vector of node 33 at the end of Step 1 of the analysis) for each of the designs and then print a table of the U2 component (the second component of the results record) of displacement for all designs. -
The ability to visualize X–Y plot data gathered across multiple analyses using the Visualization module of Abaqus/CAE. A typical example is to obtain an X–Y plot of the value of the displacement at a key node versus the value of the shell thickness. This is done by gathering the appropriate parametric study results in an ASCII file that can be read into the Visualization module to display the plot.