8.2 How the object model for the output database relates to commands

You need to understand the object model for the output database both to read data from it and to write data to it. An object model describes the relationship between objects. The object model for the ABAQUS/CAE model is described in The ABAQUS object model, Section 6.1.

For example, consider the object model for field output data shown in Figure 8–1. The Odb object at the top of the figure is created when you issue the command to open or create an output database. As you move down the object model, an OdbStep object is a member of the Odb object; similarly, a Frame object is a member of the OdbStep object. The FieldOutput object has two members—fieldValue and fieldLocation.

The object model translates directly to the structure of an ABAQUS Scripting Interface command. For example, the following command refers to a Frame object in the sequence of frames contained in an OdbStep object:

odb.steps['10 hz vibration'].frames[3] 
Similarly, the following command refers to the sequence of field data contained in a FieldOutput object.
odb.steps['10 hz vibration'].frames[3].\
    fieldOutputs['U'].values[47]
You use commands to access objects by stepping through the hierarchy of objects in the object model. The Access and Path descriptions in Chapter 30, Odb commands,” of the ABAQUS Scripting Reference Manual describe the interface definition of the command. The interface definition of the command reflects the hierarchy of objects in the object model. If you are unsure of the structure of the output database, you can issue the objectname.__members__ command from the command line interface to view the members of an object.

Figure 8–1 The output database object model.