General Constraints

Use the General Constraints tool to create a generic expression-based constraint.

Inspire provides several standard constraints such as Joints and Motions, however they may not be suitable to represent all possible modeling scenarios. A General Constraint may be defined using solver expressions in such scenarios. During solution, the solver would impose constraint such that the given expression is equated to zero.

For information on how to add or edit an entity like a general constraint, see Entity Creation.

General Constraints Properties

Descriptions of general constraints properties in the Property Editor.

Table 1.
Property Description
General
Name Descriptive label for the entity
Variable Name Variable name of the entity
ID Integer identifier
Active Active state of the entity

True or False

Entity is deactivated if False

Properties
Expression Solver expression that sets the constraint
Use Virtual Set the constraint as virtual1
Signal
User-defined Use a subroutine to define the general constraint.
  • For User expr, provide an expression with the USER solver function with parameters being passed to the user subroutine.
  • Turn on Use local file and function name to provide a local file for the subroutine. Otherwise, Inspire Motion will search for the subroutine within its search path.
    1. Specify a Local file where the subroutine code can be accessed by the solver. If this option is not specified, the application will search for a subroutine following its user subroutine loading rules.
      Note: The type of file to be specified will depend on the selected function type. For example, if DLL/SO is selected, you can specify a file with a .dll extension (for Windows) or an .so extension (for Linux).
    2. Select a Function type from the dropdown menu:
      • DLL/SO
      • Python
      • MatLab
      • Compose
    3. Specify the Function name in the subroutine that defines the entity, or accept the default name provided by the application.
Notes and Tags
Attachment Candidate Add an attachment candidate tag. See Attachments.

Comments

  1. The Use Virtual option defines whether the constraint is virtual or regular. If Use Virtual is selected, the constraint is implemented as a virtual constraint. Otherwise, the constraint is implemented as a regular algebraic constraint.