Adams Basic Package > Adams View > View Command Language > constraint > constraint create user_defined

constraint create user_defined

Allows the user to create a USER DEFINED constraint.

Format:

 
constraint create user_defined
user_constraint_name =
new user constraint
adams_id =
geom._id
comments =
string
user_function =
function

Description:

 
Parameter
Value Type
Description
user_constraint_name
New user defined constraint
Allows the user to create a USER DEFINED constraint.
adams_id
Integer
Specifies an integer used to identify this element in the Adams data file.
comments
String
Specifies comments for the object being created or modified.
user_function
Real
Specifies up to 30 values for Adams to pass to a user-written subroutine.

Extended Definition:

1. When you use the FILE ADAMS_DATA_SET WRITE command, Adams View writes an Adams data file for your model. Adams requires that each modeling element be identified by a unique integer identifier. If you use this parameter to specify a non-zero identifier, Adams View will use it in the corresponding statement in the Adams data file.
You may also enter zero as an identifier, either explicitly or by default. The next time you write an Adams file, Adams View will replace the zero with a unique, internally-generated identifier.
Adams View will permanently store this identifier with the element just as if you had entered it yourself.
Normally, you would let all identifiers default to zero, and Adams View would generate the identifiers for you. You are never required to enter a non-zero identifier. You only need to specify it if, for some reason, you wish to control the Adams file output.
2. A user-defined constraint describes a system constraint as a function of time and as many as thirty variables. Each of these variables must be the displacement or the velocity of a part. For any part at any point in time, six displacements define its position, and six velocities define its velocity. The six displacements are the x, y, and z translations and the three Euler angle rotations. The six velocities are the x, y, and z translational velocities and the time derivatives of the three Euler angles. Adams measures all of these displacements and velocities at the origin of the principal axes with respect to the global coordinate system. A USER DEFINED constraint is only used when a constraint is needed that is not definable by any of the other constraint types.