This subroutine defines a user - defined nodal force.
Language type |
SubRoutine |
FORTRAN |
nodal_force_ext (ID,TIME,UPAR,NPAR,IFBODY,NODARR,NONDE,JFLAG,IFLAG,RESULT) |
C/C++ |
nodal_force_ext (int id, double time, double upar[], int npar, int ifbody, int nodarr[], int nonde, int jflag, int iflag, double result[]) |
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. |
ifbody |
int |
FFlex body sequential ID. |
nodarr |
int[nonde] |
Node sequential ID array of input node set. |
nonde |
int |
Number of node of node set |
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 |
Nodal forces. Acting point of the nodal force is each center of each node. Referece frame of each force vector must be the ground inertia marker. |
Example
This subroutine returns an air resistance force to a sheet as nodal force.
Figure 1 Air resistance 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/**).