Many of the methods in the Abaqus Scripting Interface that provide access to an output database return a reference to an object rather than the object itself. It is much more efficient to modify the previous example to specify the returned type to be a reference:
odb_Instance& instance = odb.rootAssembly().instances()
["PART-1-1"];
const odb_SequenceNode& nodeSequence = myInstance.nodes();
In this case no new object is created and no copy constructors are called. |