SCREW_FORCE

 

This subroutine generates a user- defined screw force.

 

Language type

SubRoutine

FORTRAN

screw_force (TIME, UPAR, NPAR, JFLAG, IFLAG, RESULT)

C/C++

screw_force (double time, double upar[], int npar, int jflag, int iflag, double result[6])

 

Parameter information

 

Variable Name

Size

Description

time

double

Current simulation time of RecurDyn/Solver.

upar

double[100]

Parameters defined by the user. The maximum size of array is 100.

npar

int

Number of user parameters.

jflag

int

When RecurDyn/Solver evaluates the Jacobian, the flag is true. Otherwise, the flag is false.

iflag

int

When RecurDyn/Solver makes its initial call to this routine, the flag is true. Otherwise, the flag is false.

result

double[6]

Returned force vector and six-dimensional array.

 

Example

 

This subroutine returns forces to a wheel for standing on the ground, as shown in Figure 1.

Figure 1  Wheels and Screw forces

 

Note

If the user wants to run this model using a user subroutine, the user can refer it in the directory (<install dir>/Help/usub/**).