The HistoryOutput object contains the history output at a point for the specified variable.
odb.steps()[name].historyRegions()[name].historyOutputs()[name]
This method creates a HistoryOutput object.
odb.steps()[name].historyRegions()[name].HistoryOutput
odb_HistoryOutput& HistoryOutput(const odb_String& name, const odb_String& description, odb_Enum::odb_DataTypeEnum type, const odb_SequenceInvariant& validInvariants);
Required arguments
An odb_String specifying the output variable name.
An odb_String specifying the output variable.
An odb_Enum::odb_DataTypeEnum specifying the output type. Only odb_Enum::SCALAR is currently supported.
Optional argument
An odb_SequenceInvariant specifying which invariants should be calculated for this field. Possible values are odb_Enum::MAGNITUDE, odb_Enum::MISES, odb_Enum::TRESCA, odb_Enum::PRESS, odb_Enum::INV3, odb_Enum::MAX_PRINCIPAL, odb_Enum::MID_PRINCIPAL, and odb_Enum::MIN_PRINCIPAL. The default value is an empty sequence.
Return value
A HistoryOutput object.
Exceptions
This method adds data to the data member of the HistoryOutput object.
void addData(double frame, double value);
Required arguments
A Double specifying the frame value. frame can be specified in step time, frequency, or mode number.
A Double specifying the value of the variable at the frame value specified in frame.
Optional arguments
Return value
Exceptions
This method adds data to the data member of the HistoryOutput object.
void addData(const odb_SequenceFloat& frame, const odb_SequenceFloat& value);
Required arguments
An odb_SequenceFloat specifying the frame values. frame can be specified in step time, frequency, or mode number.
An odb_SequenceFloat specifying the value of the variable at the frame values specified in frame.
Optional arguments
Return value
Exceptions
If the length of frame is not the same as the length of value a ValueError is raised.
This method adds data to the data member of the HistoryOutput object.
void addData(const odb_SequenceSequenceFloat& data);
Required argument
An odb_SequenceSequenceFloat specifying the pairs (frameValue, value) where frameValue is either time, frequency, or mode and value is the value of the specified variable at frameValue. (This value depends on the type of the variable.)
Optional arguments
Return value
Exceptions
The HistoryOutput object has members with the same names and descriptions as the arguments to the HistoryOutput method.
In addition, the HistoryOutput object has the following members:
odb_String name() const; odb_String description() const; odb_SequenceSequenceFloat data() const; odb_SequenceSequenceFloat conjugateData() const;
An odb_SequenceSequenceFloat specifying the pairs (frameValue, value) where frameValue is either time, frequency, or mode and value is the value of the specified variable at frameValue. (This value depends on the type of the variable.)
An odb_SequenceSequenceFloat specifying the imaginary portion of a specified complex variable at each frame value (time, frequency, or mode). The pairs have the form (frameValue, value).