Compute invariants.
r=invariant(r,type[,intersect])
r=r.invariant('vonm')
r.invariant('magt',true)
INVARIANT computes invariants for each IMAT_RESULT. Supported invariants vary with result DataLocation. Please see the help for each individual result to see what invariants are supported.
TYPE is a string containing the invariant type. For INVARIANT to be successful, all of the results in the IMAT_RESULT must support that invariant type. Depending on the DataLocation, the following invariants are supported. The following table shows the supported invariant types for each DataLocation. The numbers in the DataLocation Columns denote the DataCharacteristic(s) required to compute that invariant.
DataLocation | ||||||
TYPE | Name | Data At Nodes | Data On Elements | Data At Points | Data At Nodes On Elements | Data On Elements At Nodes |
'magt' | Translational Magnitude | 2, 3 | ||||
'magr' | Rotational Magnitude | 3 | ||||
'vonm' | von Mises | 4 | 4 | |||
'minp' | Minimum Principal | 4 | 4 | |||
'midp' | Mid Principal | 4 | 4 | |||
'maxp' | Maximum Principal | 4 | 4 | |||
'maxs' | Maximum shear | 4 | 4 |
The following table defines the DataCharacteristic numbers used in the table above.
DataCharacteristic | Description | Component numbers |
2 | 3DOF vector | 1, 2, 3 |
3 | 6DOF vector | 1, 2, 3, 4, 5, 6 |
4 | Symmetric Tensor | 11, 12, 13, 22, 23, 33 |
INTERSECT is an optional logical specifying whether the components should be intersected. If not, and the components do not match for all of the components required to compute the invariant, an error will occur.