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)
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)
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fc4205fce-0b4d-4640-b3f9-45e32a33cf84%2F2e63c033-4fd5-4bd9-8d08-cca3f8a1c606%2Fle0wdec_processed.png&w=3840&q=75)
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)](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fc4205fce-0b4d-4640-b3f9-45e32a33cf84%2F2e63c033-4fd5-4bd9-8d08-cca3f8a1c606%2Fasdme0n_processed.png&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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.Recommended textbooks for you
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education