2) Consider the so-called Duffing oscillator which is an example of a damped and driven oscillator with a nonlinear restoring force. (A simple harmonic oscillator has a linear restoring force.) “Driven" just means there is an external force pushing/pulling on the end of the effective spring not connected to the oscillating mass. For example, think of your house as a kind of oscillator and the shaking ground due to an earthquake as the driving force. We'll use a slightly simplified version the relevant ODE: - - Ö – ß0(1 – 0²) = -αė + f coswt. = Here, a is the damping coefficient you would have if you had a plain old perfect Hookean spring (ẞ :0) while ẞ is a “stiffness” parameter describing the properties of the thing acting as the effective spring. We'll take beta = 0.5 for simplicity. The factor f charac- terizes the magnitude of the time varying forcing function and omega is its frequency. For specificity, use a = 0.2, f = 2 and w = 2πT. We leave out units since we do everything in the SI system of units. Make 2 subplots. The first will be displacement versus time. Label the axes sensibly and give the plot a sensible title. The second plot is a phase space plot. Label and title this subplot sensibly. When you make these plots a time span of (0, 100) may be useful, although other choices are fine. Make a sensible choice for the aspect ratio of the subplots.
2) Consider the so-called Duffing oscillator which is an example of a damped and driven oscillator with a nonlinear restoring force. (A simple harmonic oscillator has a linear restoring force.) “Driven" just means there is an external force pushing/pulling on the end of the effective spring not connected to the oscillating mass. For example, think of your house as a kind of oscillator and the shaking ground due to an earthquake as the driving force. We'll use a slightly simplified version the relevant ODE: - - Ö – ß0(1 – 0²) = -αė + f coswt. = Here, a is the damping coefficient you would have if you had a plain old perfect Hookean spring (ẞ :0) while ẞ is a “stiffness” parameter describing the properties of the thing acting as the effective spring. We'll take beta = 0.5 for simplicity. The factor f charac- terizes the magnitude of the time varying forcing function and omega is its frequency. For specificity, use a = 0.2, f = 2 and w = 2πT. We leave out units since we do everything in the SI system of units. Make 2 subplots. The first will be displacement versus time. Label the axes sensibly and give the plot a sensible title. The second plot is a phase space plot. Label and title this subplot sensibly. When you make these plots a time span of (0, 100) may be useful, although other choices are fine. Make a sensible choice for the aspect ratio of the subplots.
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
Related questions
Question
Please show the code for this assignment using python in a jupyter notebook. I am stuck
Expert Solution
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 2 images
Recommended textbooks for you
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning