This subroutine defines a user - defined request.
Language type |
SubRoutine |
FORTRAN |
request_usub (time,upar,npar,,iflag,result) |
C/C++ |
request_usub (double time, double upar[], int npar, int iflag, double result[8]) |
Parameter information
Variable Name |
Size |
Description |
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. |
iflag |
int |
When RecurDyn/Solver makes its initial call to this routine, the flag is true. Otherwise, the flag is false. |
result |
double[8] |
Returned value and eight-dimensional variable. RecurDyn/Solver will report only six variables (result(2~4) and result(6~8)) of eight returned variables. |
Example
Figure 1 Double Pendulum 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/**).