Previous section-----Next section

TwoPulleys2
2D

TwoPulleys2[cnum, point1, rad1, point2, rad2, dist, C] models a chain and sprocket or belt set. The axes of the two sprockets point1 and point2 are constrained to be dist units apart, and the rotational positions of the sprockets are related as per their respective radii.
• The constant C sets the initial rotational position of the pulleys.
TwoPulleys2 constrains two degrees of freedom.

• The radii of the two sprockets cannot be equal; use RotationLock1.
• The constant C, which sets the initial rotation of the pulleys, is given by the formula C = (rad1 e1 - rad2 e2) where e1 and e2 are determined in the following way. Place the two sprockets in any valid position and construct a vector from point1 to point2. e1 is the angle, measured in radians, from the constructed vector to the local x axis of the first sprocket and e2 is the angle from the constructed vector to the x axis of the second sprocket.
• If the Euler solution method is specified, TwoPulleys2 generates three constraints, and add one extra variable to the model.
TwoPulleys2[cnum, point1, rad1, {sym1, guess}, point2, rad2, dist, C] can be used to explicitly specify the name of the extra variable, and its initial guess. Otherwise, a symbol of the form CapitalThetacnum is used.
• The first equation in TwoPulleys2 constrains the two points to lie dist units apart; the second, and optional third, equation relates the rotation angles of the two pulleys.
• See also:
RackAndPinion2, SetConstraints, SetSymbols, SysCon, TwoGears2.