Escolar Documentos
Profissional Documentos
Cultura Documentos
Expressions Catalogue
SIMPACK Release 8.6
COPYRIGHT 2003 c
VIIEXPR:2 -2
Kinematic Functions
VIIEXPR:2
Purpose:
Kinematic Functions
DX - Displacement in X
Access function of type kinematic measurement of translational displacements for SIMPACK. Denition: Calculates the translational x-displacement of marker i relative to marker j in the coordinates of marker k.
Input Parameters: integer integer integer I: ID of I marker J: ID of J marker, if 0 defaults to Isys K: ID of reference marker K, if 0 defaults to Isys
DY - displacement in Y
Purpose: Access function of type kinematic measurement of translational displacements for SIMPACK. Denition: Calculates the translational y-displacement of marker i relative to marker j in the coordinates of marker k.
Input Parameters: integer integer integer I: J: K: ID of I marker ID of J marker, if 0 defaults to Isys ID of reference marker K, if 0 defaults to Isys
Kinematic Functions
VIIEXPR:2 -3
DZ - Displacement in Z
Purpose: Access function of type kinematic measurement of translational displacements for SIMPACK. Denition: Calculates the translational z-displacement of marker i relative to marker j in the coordinates of marker k.
Input Parameters: integer integer integer I: J: K: ID of I marker ID of J marker, if 0 defaults to Isys ID of reference marker K, if 0 defaults to Isys
DM - Magnitude of Displacement
Purpose: Access function of type kinematic measurement of translational displacements for SIMPACK.
Denition: Calculates the positive magnitude of the translational displacement between marker i and marker j. Usage: res = DM(I, J)
VIIEXPR:2 -4
Kinematic Functions
VX - Velocity in X
Purpose: Access function of type kinematic measurement of translational velocities for SIMPACK. Denition: Calculates the x-component of the dierence of velocities of marker i in reference to marker j in the x-component of marker l. The measurments of the position markers are in the co-ordinates of marker k.
Input Parameters: integer integer integer integer I: J: K: L: ID ID ID ID of of of of I marker whose velocity is measured J marker, if 0 defaults to Isys reference marker K, if 0 defaults to Isys L marker, if 0 defaults to Isys
VY - Velocity in Y
Purpose: Access function of type kinematic measurement of translational velocities for SIMPACK. Denition: Calculates the y-component of the dierence of velocities of marker i in reference to marker j in the y-component of marker l. The measurments of the position markers are in the co-ordinates of marker k.
Input Parameters: integer integer I: J: ID of I marker whose velocity is measured ID of J marker, if 0 defaults to Isys
Kinematic Functions
VIIEXPR:2 -5
integer integer
K: L:
VZ - Velocity in Z
Purpose: Access function of type kinematic measurement of translational velocities for SIMPACK. Denition: Calculates the z-component of the dierence of velocities of marker i in reference to marker j in the z-component of marker l. The measurments of the position markers are in the co-ordinates of marker k.
Input Parameters: integer integer integer integer I: J: K: L: ID ID ID ID of of of of I marker whose velocity is measured J marker, if 0 defaults to Isys reference marker K, if 0 defaults to Isys L marker, if 0 defaults to Isys
VM - Magnitude of Velocity
Purpose: Access function of type kinematic measurement of translational velocities for SIMPACK. Denition: Calculates the magnitude of the dierence in speed (scalar quantity) of marker i and marker j in co-ordinates of marker l.
VIIEXPR:2 -6
Kinematic Functions
Input Parameters: integer integer integer I: J: L: ID of I marker ID of J marker, if 0 defaults to Isys ID of reference marker L, if 0 defaults to Isys
VR - Relative Velocity
Purpose: Access function of type kinematic measurement of translational velocities for SIMPACK. Denition: Calculates the relative point to point velocity (vector quantity) of marker i in respect to marker j in co-ordinates of marker l. n.b. VR is negative when the markers are approaching each other.
Input Parameters: integer integer integer I: J: L: ID of I marker ID of J marker, if 0 defaults to Isys ID of reference marker L, if 0 defaults to Isys
ACCX - Acceleration in X
Purpose: Access function of type kinematic measurement of translational accelerations for SIMPACK. Denition: Calculates the X-component of the acceleration of Marker i wrt Marker j, calculated in marker l, given in the co-ordinates of marker k.
Kinematic Functions
VIIEXPR:2 -7
Input Parameters: integer integer integer integer I: J: K: L: ID of I marker whose acceleration is measured ID of J marker that acceleration is wrt, if 0 defaults to Isys ID of reference marker K for presentation, if 0 defaults to Isys ID of L marker for co-ordinate system for calculation, if 0 defaults to Isys
ACCY - Acceleration in Y
Purpose: Access function of type kinematic measurement of translational accelerations for SIMPACK. Denition: Calculates the Y-component of the acceleration of Marker i wrt Marker j, calculated in marker l, given in the co-ordinates of marker k.
Input Parameters: integer integer integer integer I: ID of I marker whose acceleration is measured J: ID of J marker which acceleration is wrt, if 0 defaults to Isys K: ID of reference marker K for presentation, if 0 defaults to Isys L: ID of L marker which is co-ordinate system for calculation, if 0 defaults to Isys
ACCZ - Acceleration in Z
Purpose: Access function of type kinematic measurement of translational accelerations for SIMPACK.
VIIEXPR:2 -8
Kinematic Functions
Denition: Calculates the Z-component of the acceleration of Marker i wrt Marker j, calculated in marker l, given in the co-ordinates of marker k.
Input Parameters: integer integer integer integer I: J: K: L: ID ID ID ID of of of of I marker whose acceleration is measured J marker, if 0 defaults to Isys reference marker K, if 0 defaults to Isys L marker, if 0 defaults to Isys
Input Parameters: integer integer integer I: J: L: ID ID if ID if of I marker whose acceleration is measured of J marker that acceleration is wrt, 0 defaults to Isys of L marker for co-ordinate system for calculation 0 defaults to Isys
Restrictions: The determination of the acceleration on line during time integration is only possible as an additional algebraic q-state.
Kinematic Functions
VIIEXPR:2 -9
Input Parameters: integer integer I: J: ID of I marker whose angular displacement is measured ID of reference marker J, if 0 defaults to Isys
Additional Information: The angle is calculated as follows: AX = atan2(yi zj, yi yj). with yi, yj being the y axes of marker I and J respectively and zj being the z axis of marker J.
VIIEXPR:2 -10
Kinematic Functions
integer
J:
Additional Information: The angle is calculated as follows: AY = atan2(zi xj, zi zj). with zi, zj being the z axes of markers I and J respectively and xj being the x axis of marker J.
Input Parameters: integer integer I: J: ID of I marker whose angular displacement is measured ID of J marker, if 0 defaults to Isys
Additional Information: The angle is calculated as follows: AZ = atan2(xi yj, xi xj) with xi, xj being the x axes of marker I and j respectively and yj being the y axis of marker J.
Kinematic Functions
VIIEXPR:2 -11
Denition: Calculates the rst rotation of marker i with respect to marker j in 3-2-1 Euler Angles.
Input Parameters: integer integer I: ID of I marker whose velocity is measured J: ID of J marker, if 0 defaults to Isys
Input Parameters: integer I: integer J: ID of I marker whose velocity is measured ID of J marker, if 0 defaults to Isys
VIIEXPR:2 -12
Kinematic Functions
Denition: Calculates the third rotation of marker i with respect to marker j in 3-2-1 Euler Angles.
Input Parameters: integer integer I: ID of I marker whose velocity is measured J: ID of J marker, if 0 defaults to Isys
Kinematic Functions
VIIEXPR:2 -13
Input Parameters: integer integer I: J: ID of I marker whose velocity is measured ID of J marker, if 0 defaults to Isys
Input Parameters: integer integer I: J: ID of I marker whose velocity is measured ID of J marker, if 0 defaults to Isys
VIIEXPR:2 -14
Kinematic Functions
Input Parameters: integer integer I: J: ID of I marker whose angular displacement is measured ID of refernce marker J, if 0 defaults to Isys
Kinematic Functions
VIIEXPR:2 -15
Input Parameters: integer integer integer I: J: K: ID of I marker whose velocity is measured ID of J marker, if 0 defaults to Isys ID of reference marker K, if 0 defaults to Isys
Input Parameters: integer integer integer I: J: K: ID of I marker whose velocity is measured ID of J marker, if 0 defaults to Isys ID of reference marker K, if 0 defaults to Isys
VIIEXPR:2 -16
Kinematic Functions
Input Parameters: integer integer integer I: ID of I marker whose velocity is measured J: ID of J marker, if 0 defaults to Isys K: ID of reference marker K, if 0 defaults to Isys
Input Parameters: integer integer I: J: ID of I marker whose velocity is measured ID of J marker, if 0 defaults to Isys
Kinematic Functions
VIIEXPR:2 -17
Input Parameters: integer integer integer integer I: J: K: L: ID ID ID ID of of of of I marker whose acceleration is measured J marker, if 0 defaults to Isys reference marker K, if 0 defaults to Isys L marker, if 0 defaults to Isys
Additional Information: The angular accelerations are calculated as derivatives of the angular velocities . While the system in which the derivatives for the accelerations are calculated can be specied through marker l, the angular velocity x is always taken in the global reference frame.
VIIEXPR:2 -18
Kinematic Functions
Input Parameters: integer integer integer integer I: ID of I marker whose acceleration is measured J: ID of J marker, if 0 defaults to Isys K: ID of reference marker K, if 0 defaults to Isys L: ID of L marker, if 0 defaults to Isys
Additional Information: The angular accelerations are calculated as derivatives of the angular velocities . While the system in which the derivatives for the accelerations are calculated can be specied through marker L, the angular velocity y is always taken in the global reference frame.
Input Parameters: integer integer integer integer I: J: K: L: ID of I marker whose acceleration is measured ID of J marker, if 0 defaults to Isys ID of reference marker K, if 0 defaults to Isys ID of L marker, if 0 defaults to Isys
Maths Functions
VIIEXPR:1 -19
Additional Information: The angular accelerations are calculated as derivatives of the angular velocities . While the system in which the derivatives for the accelerations are calculated can be specied through marker l, the angular velocity z is always taken in the global reference frame.
Input Parameters: integer integer integer I: J: L: ID of I marker whose acceleration is measured ID of J marker, if 0 defaults to Isys ID of L marker, if 0 defaults to Isys
Additional Information: The angular accelerations are calculated as derivatives of the angular velocities . While the system in which the derivatives for the accelerations are calculated can be specied through marker l, the angular velocity is always taken in the global reference frame.
VIIEXPR:1
SIN - Sine
Denition:
Maths Functions
Calculates the sine of the formula or value entered in the brackets. Usage: res = SIN(inp)
VIIEXPR:1 -20
Maths Functions
COS - Cosine
Denition: Calculates the cosine of the formula or value entered in the brackets. Usage: res = COS(inp) inp is the string or value (radians)
Maths Functions
VIIEXPR:1 -21
TAN - Tangent
Denition: Calculates the tangent of the formula or value entered in the brackets. Usage: res = TAN(inp) inp is the string or value (radians)
VIIEXPR:1 -22
Maths Functions
Maths Functions
VIIEXPR:1 -23
VIIEXPR:1 -24
Maths Functions
Maths Functions
VIIEXPR:1 -25
An example of the output for various dierent inputs to the function is shown: MOD(7.0, 5.0) returns 2.0 MOD(21, 2) returns 1 MOD(-13, 5) returns -3 Usage: res = MOD(inp1,inp2) inp1 is the rst variable inp2 is the second variable
% - Modulo Function
Denition: This is the same function as the Modulo function, however the input in the expression is slightly dierent. An example of the output for various dierent inputs to the function is shown: MOD(7.0, 5.0) returns 2.0 MOD(21, 2) returns 1 MOD(-13, 5) returns -3 Usage: res = inp1%inp2 inp1 is the rst variable inp2 is the second variable
VIIEXPR:3 -26
Access Functions
IF - Arithmetic IF
Denition: The expression returns either the rst second or third input dependent upon whether the dening function is greater than, less than or equal to zero. Usage: res = IF(deunc:inp1,inp2,inp3) deunc is the dening function inp1 is the rst output variable inp2 is the second output variable inp3 is the third output variable If the dening function is: < 0 inp1 is returned = 0 inp2 is returned > 0 inp3 is returned
VIIEXPR:3
Purpose:
Access Functions
Usage: res = FORCEAF( id, mag, comp, refsys ) Input Parameters: integer integer integer id: mflag: comp: ID of the force element to be investigated Flags if force value in I (=0) or J (=1) marker should be returned Component of the force to be returned 1 = Magnitude of the force 2 = x component of the force 3 = y component of the force 4 = z component of the force 5 = Magnitude of the torque 6 = x component of the torque 7 = y component of the torque 8 = z component of the torque ID of reference marker in which the force should
integer
refsys:
Access Functions
VIIEXPR:3 -27
Usage: res = FORCEST( id, comp, iord ) Input Parameters: integer integer integer id: comp: iord: ID of the force element to be investigated. Range = {1,2,...,Mbs.Force.nmax}. Component of the force state. Range = {1,2,...,number_of_joint_states}. The order of the derivative to be returned, if zero, the value itself is returned. Range = {0,1}.
VIIEXPR:3 -28
Access Functions
integer
comp:
integer
refsys:
Access Functions
VIIEXPR:3 -29
Denition: Returns the joint state of the component COMP and the joint ID. Usage: res = JOINTST( id, comp, iord ) Input Parameters: integer integer integer id: comp: iord: ID of the joint element to be investigated. Range = {1,2,...,Mbs.Joint.nmax}. Component of the joint state. Range = {1,2,...,number_of_joint_states}. The order of the derivative to be returned, if zero, the value itself is returned. Range = {0,1,2}.
Usage: res = CONSTRCF( id, mag, comp, refsys ) Input Parameters: integer integer integer id: mflag: comp: ID of the constraint to be investigated Flags if force value in I (=0) or J (=1) marker should be returned Component of the force to be returned 1 = Magnitude of the force 2 = x component of the force 3 = y component of the force 4 = z component of the force 5 = Magnitude of the torque 6 = x component of the torque 7 = y component of the torque
VIIEXPR:4 -30
Functions
integer
refsys:
8 = z component of the torque ID of reference marker in which the force should be expressed, if 0 defaults to Isys
Usage: res = CONST( id, comp, iord ) Input Parameters: integer integer integer id: comp: iord: ID of the constraint element to be investigated. Range = {1,2,...,Mbs.Constr.nmax}. Component of the constraint state. Range = {1,2,...,number\_of\_constr\_states}. The order of the derivative to be returned, if zero, the value itself is returned. Range = {0}.
VIIEXPR:4
Purpose:
Functions
Functions
VIIEXPR:4 -31
linear interpolation (kind spl = 2), Akima spline (kind spl = 3). In case of spline evaluation the derivatives until 3. order are determined for the parameter xinp. Beyond the dened value range for 1. parameter xinp the function evaluation in case of splines may be further spline evaluation or linear interpolation with a smooth transition from spline interpolation to linear interpolation ( the 2. and 3. derivative become 0 after a transition range) When in case of spline evaluation the input value xinp exceeds the dened range, a warning is printed the rst time in Default mode (WPAR(45) = 0). WPAR(45) = 1 prevents the warning.
Usage: res = IFCTN( xinp, id ifctn, kind deriv , kind spl, kind extr , range extr ) Input Parameters: double integer integer Input value of first parameter ID-number of input function Index of derivative (0 - 3) = 0 : evaluation of function = 1 : 1st derivative of function evaluation = 2 : 2nd derivative of function evaluation = 3 : 3rd derivative of function evaluation kind_spl: kind of interpolation: = -1 : use interpolation defined by GUI = 0 : step interpolation = 1 : cubic spline evaluation = 2 : linear interpolation = 3 : Akima spline kind_extr: kind of extrapolation beyond the defined range incase of splines = -1 : use option defined by GUI = 0 : spline evaluation beyond the table values = 1 : transition from spline evaluation to linear evaluation range_extr: range of extrapolation beyond the defined set of table values ( kind_extr = 1 (transition to linear ) ) xinp: id_ifctn: kind_deriv:
integer
integer
double
VIIEXPR:4 -32
Functions
integer
kind_spl:
integer
kind_extr:
Functions
VIIEXPR:4 -33
= double range_extr:
1 : transition from spline evaluation to linear evaluation range of extrapolation beyond the defined set of table values. ( kind_extr = 1 (transition to linear ) )
Usage: res = HAVSIN(x, x0, h0, x1, h1, iord) Let x0 < x1 . f :=SPCK UF HAVSIN is dened as: h0 x x 0 xx0 1 + h0 x0 < x < x1 f (x) := (h1 h0 ) 1 cos x1 x0 2 h1 x1 x Input Parameters: double double double double double integer x: x0: h0: x1: h1: iord: The independent varible for the Haversine Step function. The x-value specifying the begin of the step. The value of the function before the step (x < x0 ) The x-value specifying the end of the step. The value of the function after the step (x > x1 ) The order of the derative to be returned, if zero, the value itself is returned. Range 0 <= iord <= 2.
=0: no error
VIIEXPR:4 -34
Functions
Denition: Returns the cubic approximation of the Heaviside step function with the given parameters. Usage: res = STEP(x, x0, x1, h0, h1) Let x0 < x1 . Within the range x0 < x < x1 solve f :=SPCK UF STEP the cubic approximation:
3
f (x) :=
n=0
an x n
with:
h0 x x0
xx 3 2 x1 x00 + h0 x0 < x < x1 h1 x1 x
f (x) =
(h1 h0 )
xx0 x1 x0
Input Parameters: double double double double double integer x: x0: h0: x1: h1: iord: The independent varible for the Heaviside Step function The x-value specifying the begin of the step. The value of the function before the step (x < x0 ) The x-value specifying the end of the step. The value of the function after the step (x > x1 ) The order of the derivative to be returned, if zero, the value itself is returned. Range 0 <= iord <= 2.
f (x) :=
n=0
an x n
with:
Functions
VIIEXPR:4 -35
f (x) =
(h1 h0 )
xx0 x1 x0
xx 10 15 x1 x00 + 6
xx0 x1 x0
h0 x x 0 + h0 x0 < x < x1 h1 x1 x
Input Parameters: double double double double double integer x: x0: h0: x1: h1: iord: The independent variable for the Haversine Step function. The x-value specifying the begin of the step. The value of the function before the step (x < x0 ) The x-value specifying the end of the step. The value of the function after the step (x > x1 ) The order of the derative to be returned, if zero, the value itself is returned. Range 0 <= iord <= 2.
FORSIN(x, x0 , , a) := b0 +
n=1
bn sin (n(x x0 ))
where x, x0 , R with > 0 and b := (b0 , . . . , bN ) with N {0, . . . , 31} . Input Parameters: double double double double x: x_0: omega: b_0, ..., b_31: The independent varibale for the Fourier Sine. Specifies an offset in the Fourier Sine. The fundamental frequence in the The arguments used by the function. From 0 up to 31 different arguments can be defined.
VIIEXPR:4 -36
Functions
FORCOS(x, x0 , , a) := a0 +
n=1
an cos (n(x x0 ))
where x, x0 , R with > 0 and a := (a0 , . . . , aN ) with N {0, . . . , 31} . Input Parameters: double double double double x: x_0: omega: a_0, ..., a_31: The independent variable for the Fourier Cosine. Specifies an offset in the Fourier Cosine. The fundamental frequence in the The arguments used by the function. From 0 up to 31 different arguments can be defined.
Functions
VIIEXPR:4 -37
POLY(x, x0 , p) := p0 +
n=1
pn (x x0 )n
where x, x0 R and p := (p0 , . . . , pN ) with N {0, . . . , 31} . Input Parameters: double double double x: x_0: p_0, ..., p_31: The independent varible for the polynomial. Specifies an offset in the polynomial The arguments used by the function. From 0 up to 31 different arguments can be defined.
CHEBY(x, x0 , p) := p0 +
n=1
pn Tn (x x0 )
where x, x0 R, p := (p0 , . . . , pN ) with N {0, . . . , 31} and the n-th Chebyshev polynomial Tn (). Input Parameters: double double double x: x_0: p_0, ..., p_31: The independent varibale for the polynomial. Specifies an offset in the Chebyshev polynomial. The arguments used by the function. From 0 up to 31 different arguments can be defined.
VIIEXPR:4 -38
Functions
Functions
VIIEXPR:4 -39