*SetGeneralConstraint() - user-defined
Sets a general constraint to a user-defined property.
Syntax
*SetGeneralConstraint(gcon_name,cUSER, 'expr')
Arguments
- gcon_name
- The variable name of the general constraint.
- USER
- Indicates that the general constraint is of a user subroutine type.
- expr
- A string that the solver input deck will use to invoke the user subroutine.
Example
*BeginMDL( the_model, "Model", )
*StandardInclude(FILE)
*SetCurrentSolverMode(MotionSolve)
*Body( b_0, "Body 0", , , , , )
*Body( b_1, "Body 1", , , , , )
*Point( p_1, "Point 1" )
*Point( p_2, "Point 2" )
*Marker( m_0, "Slot", b_1, p_2 )
*Marker( m_1, "Point", b_0, p_1 )
*GeneralConstraint( gcon_0, "GeneralConstraint 0" )
*SetGeneralConstraint( gcon_0, USER, `USER(1)` )
*SetLocalUserFunction( gcon_0, "my_gcosub.dll" )
*EndMDL()
Context
Comments
This statement can be used to set a general constraint to a user-defined type.
Use *SetLocalUserFunction() statements to provide the subroutine file details.