*VectorPair()

Creates a vector pair.

Syntax

*VectorPair(vector_name, "vector_label")

Arguments

vector_name
The variable name of the vector pair.
Data type: varname
vector_label
The descriptive label of the vector pair.
Data type: label

Example

*VectorPair(v_f_sp, "Front Spindle")
*VectorPair(v_r_sp, "Rear Spindle")
*SetVector(v_f_sp.l, p_f_wc.l.x-p_f_spal.l.x, 
 p_f_wc.l.y-p_f_spal.l.y, 
 p_f_wc.l.z-p_f_spal.l.z)
*SetVector(v_f_sp.r, p_f_spal.r.x-p_f_wc.r.x, 
 p_f_spal.r.y-p_f_wc.r.y, 
 p_f_spal.r.z-p_f_wc.r.z)
*SetVector(v_r_sp.l, p_r_wc.l.x-p_r_spal.l.x, 
 p_r_wc.l.y-p_r_spal.l.y, 
 p_r_wc.l.z-p_r_spal.l.z)
*SetVector(v_r_sp.r, p_r_spal.r.x-p_r_wc.r.x, 
 p_r_spal.r.y-p_r_wc.r.y, 
 p_r_spal.r.z-p_r_wc.r.z)
*MarkerPair( mrk_fwc, "Front Wheel Center", b_f_wheel, 
 p_f_wc )
*MarkerPair( mrk_rwc, "Rear Wheel Center", b_r_wheel, 
 p_r_wc )
*SetOrientation(mrk_fwc.l, ONEAXIS, Z, v_f_sp.l)
*SetOrientation(mrk_fwc.r, ONEAXIS, Z, v_f_sp.r)
*SetOrientation(mrk_rwc.l, ONEAXIS, Z, v_r_sp.l)
*SetOrientation(mrk_rwc.r, ONEAXIS, Z, v_r_sp.r)

Context

*BeginMdl()

*DefineAnalysis()

*DefineSystem()

Properties

Table 1.
Property Returns Data Type Description
l Beam Left vector.
label string The descriptive label of the vector pair.
r Beam Right vector.
state boolean Control state (TRUE or FALSE).
varname string The variable name of the vector pair.

Comments

The individual vectors of a *VectorPair() can be referred to as vector_name.l (left vector) and vector_name.r (right vector).