Processing math: 100%

Instance Models

This section transforms the problem defined in the problem description into one which is expressed in mathematical terms. It uses concrete symbols defined in the data definitions to replace the abstract symbols in the models identified in theoretical models and general definitions.

RefnameIM:calOfAngle1
LabelCalculation of angle of first rod
InputL1, L2, m1, m2, θ1, θ2
Outputθ1
Input ConstraintsL1>0L2>0m1>0m2>0
Output Constraints
Equationα1(θ1,θ2,w1,w2)=g(2m1+m2)sin(θ1)m2gsin(θ12θ2)2sin(θ1θ2)m2(w22L2+w12L1cos(θ1θ2))L1(2m1+m2m2cos(2θ12θ2))
Description
  • α1 is the angular acceleration of the first object (rads2)
  • θ1 is the angle of the first rod (rad)
  • θ2 is the angle of the second rod (rad)
  • w1 is the angular velocity of the first object (rads)
  • w2 is the angular velocity of the second object (rads)
  • g is the magnitude of gravitational acceleration (ms2)
  • m1 is the mass of the first object (kg)
  • m2 is the mass of the second object (kg)
  • L2 is the length of the second rod (m)
  • L1 is the length of the first rod (m)
Notes
  • θ1 is calculated by solving the ODE here together with the initial conditions and IM:calOfAngle2.
Source
RefByIM:calOfAngle2, FR:Output-Values, and FR:Calculate-Angle-Of-Rod
RefnameIM:calOfAngle2
LabelCalculation of angle of second rod
InputL1, L2, m1, m2, θ1, θ2
Outputθ2
Input ConstraintsL1>0L2>0m1>0m2>0
Output Constraints
Equationα2(θ1,θ2,w1,w2)=2sin(θ1θ2)(w12L1(m1+m2)+g(m1+m2)cos(θ1)+w22L2m2cos(θ1θ2))L2(2m1+m2m2cos(2θ12θ2))
Description
  • α2 is the angular acceleration of the second object (rads2)
  • θ1 is the angle of the first rod (rad)
  • θ2 is the angle of the second rod (rad)
  • w1 is the angular velocity of the first object (rads)
  • w2 is the angular velocity of the second object (rads)
  • L1 is the length of the first rod (m)
  • m1 is the mass of the first object (kg)
  • m2 is the mass of the second object (kg)
  • g is the magnitude of gravitational acceleration (ms2)
  • L2 is the length of the second rod (m)
Notes
  • θ2 is calculated by solving the ODE here together with the initial conditions and IM:calOfAngle1.
Source
RefByIM:calOfAngle2, IM:calOfAngle1, FR:Output-Values, and FR:Calculate-Angle-Of-Rod

Detailed derivation of angle of the second rod:

By solving equations GD:xForce2 and GD:yForce2 for T2sin(θ2) and T2cos(θ2) and then substituting into equation GD:xForce1 and GD:yForce1 , we can get equations 1 and 2:

m1ax1=T1sin(θ1)m2ax2

m1ay1=T1cos(θ1)m2ay2m2gm1g

Multiply the equation 1 by cos(θ1) and the equation 2 by sin(θ1) and rearrange to get:

T1sin(θ1)cos(θ1)=cos(θ1)(m1ax1+m2ax2)

T1sin(θ1)cos(θ1)=sin(θ1)(m1ay1+m2ay2+m2g+m1g)

This leads to the equation 3

sin(θ1)(m1ay1+m2ay2+m2g+m1g)=cos(θ1)(m1ax1+m2ax2)

Next, multiply equation GD:xForce2 by cos(θ2) and equation GD:yForce2 by sin(θ2) and rearrange to get:

T2sin(θ2)cos(θ2)=cos(θ2)m2ax2

T1sin(θ2)cos(θ2)=sin(θ2)(m2ay2+m2g)

which leads to equation 4

sin(θ2)(m2ay2+m2g)=cos(θ2)m2ax2

By giving equations GD:accelerationX1 and GD:accelerationX2 and GD:accelerationY1 and GD:accelerationY2 plus additional two equations, 3 and 4, we can get IM:calOfAngle1 and IM:calOfAngle2 via a computer algebra program: