MOTION

 

This subroutine defines a user - defined motion. This subroutine can be used for translational joint, rotational joint, cylindrical joint and PTCV.

 

Language type

SubRoutine

FORTRAN

motion_usub (TIME,UPAR,NPAR,IORD,IFLAG,RESULT)

C/C++

motion_usub (double time, double upar[], int npar, int iord, int iflag, double* result)

 

Parameter information

 

Variable Name

Size

Description

time

double

Current simulation time of RecurDyn/Solver.

upar

double[30]

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

npar

int

Number of user parameters.

iord

int

Integrator order.

iflag

int

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

result

double

Returned value and one-dimensional variable.

 

Example

Figure 1  Example Model using Motion User Subroutine

 

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/**).

Motion User Subroutine can only be used as displacement.