This subroutine defines a user - defined nodal force. This subroutine can be applied FFlex, MTT3D and MTT2D.
Language type |
SubRoutine |
FORTRAN |
nodal_force (ID,TIME,UPAR,NPAR,POS,VEL,JFLAG,IFLAG,RESULT) |
C/C++ |
nodal_force (int id, double time, double upar[], int npar, double pos[12], double vel[6], int jflag, int iflag, double result[6]) |
Parameter information
Variable Name |
Size |
Description |
id |
int |
Nodal Force sequential identification |
time |
double |
Current simulation time of RecurDyn/Solver. |
upar |
double* |
Parameters defined by the user. There is no limit about the maximum size of array. |
npar |
int |
Number of user parameters. |
pos |
double[12] |
Nodal postion and Orientation with respect to Inertia Reference Frame |
vel |
double[6] |
When RecurDyn/Solver makes its initial call to this routine, the flag is true. Otherwise, the flag is false |
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 nodal force. |
Example
This subroutine returns forces like bushing force.
Figure 1 Bushing force model
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/**).
If nodal force is applied both FFlex body and MTT3D sheet, nodal force id is able to same in user subroutine.