Contents - Index


$Vector and $Vector2D

 

$Vector A B C    or      $Vector2D A B C

 

The $Vector directive indicates that the variables that follow on the same line, separated by a space or list separator, are 3D vectors.  3D vectors consist of 3 EES variables with subscripts x, y, and z.  For example, 3D vector A is shorthand for A_x i + A_y j + A_z k where i, j, and k are unit vectors in the x, y, and z directions, respectively.

 

The $Vector2D directive is defined in the same manner except that the z-component does not exist.  For example 2D vector A is shortance for A_x i + A_y j.

 

Vector variables and functions that return vectors are identified in the EES Equations window with a bold underline font.

 

Note:  2D and 3D vectors cannot both be used in the same equation,

 

EES variables that are not defined to be vectors are referred to as scalars.  Vectors can be multiplied or divided by scalars, but scalars cannot be added to or substracted from a vector.

 

The following functions have been developed to work with vectors.  Click on the function name for information relating to the function.

 

VectorAssign

VectorAssignPolar

 

VectorAngle_x

VectorAngle_y

VectorAngle_z

VectorCross

VectorCross_i

VectorCross_j

VectorCross_k

VectorDot

VectorMag

VectorUnit_i

VectorUnit_j

VectorUnit_k

VectorZeros