Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Ik f Background: In analysis of 2nd-order mechanical system dynamics, we often consider how the positive, real parameters for mass m and stiffness k and

image text in transcribed
image text in transcribed
Ik f Background: In analysis of 2nd-order mechanical system dynamics, we often consider how the positive, real parameters for mass m and stiffness k and nonnegative, real parameter damping c affect the system's response x. more one + kx = 0 Or, dividing through by m, we can put things in terms of two parameters + 2zwa wix = 0 where the two parameters are is the natural frequency of the system, typically in 1/sec or radians/sec units, though it is often useful to show natural frequency in Hz (which is cycles/second), as given by fn = w./20. is the damping ratio of the system (unitless) and we can find nonnegative, real values for w, and It turns out that important changes to the system response take place, depending on the value of. Thus Value of System Response { = 0 undamped 01 overdamped 1) Write a Python program that, inside a loop, does several things: a) Asks the user for values of mass in kg, damping in N/(m/s), and stiffness in N/m and appends the user's values to the ends of list variables that were initially set to empty. b) Prints out the natural frequency in Hz, the damping ratio, and the description of the system response for the user's most recently entered data. c) Asks the user if they want to continue Then, when the user is done entering values, leave the loop. Print out a neat table with the user's values, the values for natural frequency and damping ratio, and the type system response, as given above. The table should start with header and unit rows, as shown in the example run below. Numerical values should be formatted wide enough to make neat columns and show 4 digits to the right of the decimal. Enter a mass in kilograms: 3 Enter a stiffness in newtons/meter: 12 Enter a damping in newtons/(meter/second): 2 Natural Frequency = 0.3183 Hz Damping Ratio = 0.1667 System Response = Underdamped Do another (y)? y Enter a mass in kilograms: 2 Enter a stiffness in newtons/meter: 4 Enter a damping in newtons/(meter/ second): 9 Natural Frequency = 0.2251 Hz Damping Ratio - 1.5910 System Response - Overdamped Do another (y)? y Enter a mass in kilograms: 4 Enter a stiffness in newtons/meter: 4 Enter a damping in newtons/(meter/ second): 8 Natural Frequency = 0.1592 Hz Damping Ratio - 1.0000 System Response = Critically Damped Do another (y) ? y Enter a mass in kilograms: 4 Enter a stiffness in newtons/meter: 8 Enter a damping in newtons/(meter/second): Natural Frequency = 0.2251 Hz Damping Ratio - 0.0000 System Response = Undamped Do another (y) ? n Summary: Mass Stiffness kg N/m 3.0000 2.0000 4.0000 4.0000 12.0000 4.0000 4.0000 8.0000 Damping Omega_n Zeta Response Type N/(m/s) Hz ------- ------- ---- 2.0000 .3183 0.1667 Underdamped 9.0000 0.2251 1.5910 Overdamped 8.0000 0.1592 1.0008 Critically Damped 0.0000 0.2251 0.0000 Undamped

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database And SQL

Authors: Lucy Scott

3rd Edition

1087899699, 978-1087899695

More Books

Students also viewed these Databases questions

Question

8. Describe how cultural spaces are formed.

Answered: 1 week ago