Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

bartleby

Concept explainers

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
expand button
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)
expand button
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
Check Mark
Knowledge Booster
Background pattern image
Computer Science
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
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education