ScalarExtract
Extracts scalar values from vector or tensor values.
Inputs
- src
 - A value table.
 - component
 - x,y,z,mag,xx,yy,zz,xy,yz,zx,p1,p2,p3,vm.
 
Outputs
- answer
 - A value table.
 
Comments
- src must be a vector or tensor format, and answer must be scalar format.
 - If src is a constant value table (created by the Constant operator), no records will be added to the answer table.
 - Valid components for vectors are: “X, Y, Z, Mag”.
 - Valid component strings for tensors are: “XX, YY, ZZ, XY, YZ, ZX, P1, P2, P3, or VM”.
 
Syntax
The ScalarExtract operator is called when a scalar or vector table is followed by a period, then by the component.For example:
displacement.x: extracts the x-component of
        the displacement vector.
stress.vm: extracts the vonMises from the
        stress tensor.
stress.yy: extracts the normal y component from the
        stress tensor.
XML Example
<call name="ScalarExtract" src="src_tab" component="mag" answer="ans_tab" />