TRANSLATIONAL_FORCE

 

This subroutine defines a user - defined translational force vector.

 

Language type

SubRoutine

FORTRAN

translational _force (time,upar,npar,jflag,iflag,result)

C/C++

translational _force (double time, double upar[], int npar, int jflag, int iflag, double result[3])

 

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.

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[3]

Returned force vector and three-dimensional variables.

 

Example

Figure 1  Example Model using Translational Force 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/**).