*SetForce() - single force with user subroutine
Sets the values for a translational, rotational line of action and single component rotational force when a user-defined subroutine is used to model the force expression.
Syntax
*SetForce(force_name,USER,`expr`)
Arguments
- force_name
- The variable name of an existing force.
- USER
- This argument indicates the user-written subroutine is used to model the force value.
- expr
- The solver expression that sets the arguments for the user-defined force.
Example
*ActionReactionForce( frc_bmp, "Rebound bumper",
TRANS_ROT,
b_bmp_contact,
b_bmp_attach,
p_contact,
mrk_ref)
*SetForce(frc_bmp, USER, `USER( { frc_bmp.id, %d },
{ frc_bmp.i.id, %d } ,
{ cr() }, `
` { frc_bmp.j.id, %d },
{ frc_bmp.rm.id, %d }, -10)`)
Context
Comments
The solver force entity type is dependent on the force type referred to by the *SetForce() statement.