In the below cell, we have imported all the functions you will need to complete this assignment; note that you can not modify this cell. In [ ]: from sympy import symbols, sin, cos, Matrix from sympy.physics.mechanics import dynamicsymbols, ReferenceFrame, Point, init_vprinting init_vprinting() QUESTION 1: Update constant and time-varying scalars; create reference frames and points in figure You are provided the code in the cells below that define all the scalar variables as symbols . Based on the problem statement above, please modify the lines in this first code cell to correctly identify the scalar variables as constants or time-varying using either symbols or dynamicsymbols . Also, in this cell, create all reference frames and points from the figure above using ReferenceFrame and Point. In [ ]: 1 = symbols('l') theta, beta, phi = symbols('theta, beta, phi') omega_x, omega_y, omega_z = symbols('omega_x, omega_y, omega_z') v_x, v_y, v_z = symbols('v_x, v_y, v_z') YOUR CODE HERE In [ ]: For your solutions In [ ]: For your solutions In [ ]: For your solutions (add more cells direcly below this one if needed)

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section7.5: Case Studies
Problem 15E
icon
Related questions
Question
In the figure below, B is a rigid cube whose sides are of length I. A, C, and D are square plates that are hinged to B as shown in the figure.
The motion of the system is such that the angular velocity of B in reference frame G is: CoB = wzb, + @,b, + w,bz.
Wy
The velocity of point O of B in the reference frame G is: Gv° = vxbx + v „b, + v̟b,.
yDy
Note that w; and v; (i = x, y, z) are time-varying scalars. Further, 0, B, and o as shown in the figure are also time-varying orientation angles.
Your tasks are:
1. Correctly identify which of the scalars are symbols or dynamicsymbols , based on the above question. You will use these scalars in all subsequent
computations. Also, correctly define all the frames and reference frames using Point and ReferenceFrame from sympy. 0
2. Compute "wª: the angular velocity of A in G. This computation must be stored in the variable name G_omega_A. ()
3. Compute CaD: the angular acceleration of D in G. This computation must be stored in the variable name G_alpha_D. ()
4. Compute Bve: the velocity of Q in B. This computation must be stored in the variable name B_v_Q. 0
Express all your answers in the b; (i
= x, y, z) system.
Note: you must make additional variables that follow the above conventions.For example:
1. if any calculations require that you compute "w4 then you must create a variable G omega C that saves the value of this vector.
2. if a calculation requires you to compute roP, then you must save that as a variable using the convention r oQ . And so on.
P
Cy
dy
S
(D
B
(A
Transcribed Image Text:In the figure below, B is a rigid cube whose sides are of length I. A, C, and D are square plates that are hinged to B as shown in the figure. The motion of the system is such that the angular velocity of B in reference frame G is: CoB = wzb, + @,b, + w,bz. Wy The velocity of point O of B in the reference frame G is: Gv° = vxbx + v „b, + v̟b,. yDy Note that w; and v; (i = x, y, z) are time-varying scalars. Further, 0, B, and o as shown in the figure are also time-varying orientation angles. Your tasks are: 1. Correctly identify which of the scalars are symbols or dynamicsymbols , based on the above question. You will use these scalars in all subsequent computations. Also, correctly define all the frames and reference frames using Point and ReferenceFrame from sympy. 0 2. Compute "wª: the angular velocity of A in G. This computation must be stored in the variable name G_omega_A. () 3. Compute CaD: the angular acceleration of D in G. This computation must be stored in the variable name G_alpha_D. () 4. Compute Bve: the velocity of Q in B. This computation must be stored in the variable name B_v_Q. 0 Express all your answers in the b; (i = x, y, z) system. Note: you must make additional variables that follow the above conventions.For example: 1. if any calculations require that you compute "w4 then you must create a variable G omega C that saves the value of this vector. 2. if a calculation requires you to compute roP, then you must save that as a variable using the convention r oQ . And so on. P Cy dy S (D B (A
In the below cell, we have imported all the functions you will need to complete this assignment; note that you can not modify this cell.
In [ ]:
from sympy import symbols, sin, cos, Matrix
from sympy.physics.mechanics import dynamicsymbols, ReferenceFrame, Point, init_vprinting
init_vprinting()
QUESTION 1: Update constant and time-varying scalars; create reference
frames and points in figure
You are provided the code in the cells below that define all the scalar variables as symbols . Based on the problem statement above, please modify the lines
in this first code cell to correctly identify the scalar variables as constants or time-varying using either symbols or dynamicsymbols .
Also, in this cell, create all reference frames and points from the figure above using ReferenceFrame and Point.
In [ ]: 1 = symbols ('l')
theta, beta, phi
symbols ( 'theta, beta, phi')
symbols ('omega_x, omega_y, omega_z')
omega_x, omega_y, omega_z =
v_x, v_y, v_z = symbols('v_x, v_y, v_z')
# YOUR CODE HERE
In [ ]: # For your solutions
In [ ]: # For your solutions
In [ ]: # For your solutions (add more cells direcly below this one if needed)
Transcribed Image Text:In the below cell, we have imported all the functions you will need to complete this assignment; note that you can not modify this cell. In [ ]: from sympy import symbols, sin, cos, Matrix from sympy.physics.mechanics import dynamicsymbols, ReferenceFrame, Point, init_vprinting init_vprinting() QUESTION 1: Update constant and time-varying scalars; create reference frames and points in figure You are provided the code in the cells below that define all the scalar variables as symbols . Based on the problem statement above, please modify the lines in this first code cell to correctly identify the scalar variables as constants or time-varying using either symbols or dynamicsymbols . Also, in this cell, create all reference frames and points from the figure above using ReferenceFrame and Point. In [ ]: 1 = symbols ('l') theta, beta, phi symbols ( 'theta, beta, phi') symbols ('omega_x, omega_y, omega_z') omega_x, omega_y, omega_z = v_x, v_y, v_z = symbols('v_x, v_y, v_z') # YOUR CODE HERE In [ ]: # For your solutions In [ ]: # For your solutions In [ ]: # For your solutions (add more cells direcly below this one if needed)
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Topological Sort
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr