*Vector()

Creates a vector.

Syntax

*Vector(vector_name, "vector_label")

Arguments

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

Example

*Point(p_end_of_yoke, "End of slip yoke")
*Point(p_driveshaft_cg, "Driveshaft cg")
*Point(p_yoke_cg, "Yoke cg")
*Body(b_driveshaft, "Driveshaft", p_driveshaft_cg)
*Body(b_yoke, "Yoke", p_yoke_cg)
*Vector(v_shaft, "Driveshaft")
*Vector(v_fix, "Fixed end")
*Vector(v_slip, "Slip end")
*Vector(v_cross1, "Crosspin 1")
*Vector(v_cross2, "Crosspin 2")
*SetVector(v_shaft, p_fix_uj.x-p_slip_uj.x, 
 p_fix_uj.y-p_slip_uj.y, 
 p_fix_uj.z-p_slip_uj.z)
*SetVector(v_fix, p_fix_uj_al.x-p_fix_uj.x, 
 p_fix_uj_al.y-p_fix_uj.y, 
 p_fix_uj_al.z-p_fix_uj.z)
*SetVector(v_slip, p_slip_uj.x-p_slip_uj_al.x, 
 p_slip_uj.y-p_slip_uj_al.y, 
 p_slip_uj.z-p_slip_uj_al.z)
*SetVector(v_cross1, 
 v_fix.y*v_shaft.z-v_fix.z*v_shaft.y, 
 v_fix.z*v_shaft.x-v_fix.x*v_shaft.z, 
 v_fix.x*v_shaft.y-v_fix.y*v_shaft.x)
*SetVector(v_cross2, 
 v_slip.y*v_shaft.z-v_slip.z*v_shaft.y, 
 v_slip.z*v_shaft.x-v_slip.x*v_shaft.z, 
 v_slip.x*v_shaft.y-v_slip.y*v_shaft.x)

Context

*BeginMdl()

*DefineAnalysis()

*DefineSystem()

Properties

Table 1.
Property Returns Data Type Description
label string The descriptive label of the vector.
state boolean Control state (TRUE or FALSE).
varname string The variable name of the vector.
x, y, z real X, Y, and Z components of the vector.