CONTACT_FORCE

 

This subroutine generates a user - defined contact force.

 

Language type

SubRoutine

FORTRAN

contact force (time,upar,npar,pen,rvel,jflag,iflag,result)

C/C++

contact force (double time, double upar[], int npar, double pen, double rvel[], int jflag, 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.

pen

double

Penetration at the contact point.

rvel

double[3]

Relative velocity between contact pair w.r.t. contact reference frame.

jflag

int

When RecurDyn/Solver evaluates 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 arrays. Though the returned force has six arrays, only three terms of the translational force are available.

 

Example

Figure 1  Contact force model using Contact 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/**).