Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use Python Consider the dynamics of a metal strip hanging downwards from a fixed point, so that when straight its end is exactly midway between
Use Python
Consider the dynamics of a metal strip hanging downwards from a fixed point, so that when straight its end is exactly midway between two strong
magnets. The strip of metal is flexible, and may bend towards one or the other magnet. If we assume there is no friction or heating in the system then the
energy of the metal strip is fixed and is given by:
where is the position of the end of the metal strip between the magnets with exactly in the middle and is the velocity of the end of the
metal strip.
Import your libraries here:
a Write a function that given a position and a velocity returns the associated energy of the metal strip. See if you can write your function so
that it receives a vector input this will make it possible to use the built in SciPy routine required in part c
b Plot ie the plot of energy along the line in the range xin What does this suggest will happen if the metal strip is initially
hanging motionless almost vertically?
c Find the position of the minimum for and the value of the energy at the minimum.
d Plot the energy as a surface in interactive mode.
e Using the command plt contour create a contour plot of your energy surface. The contours in this plot are lines of constant energy. If energy is
conserved then the metal tip will be constrained to follow a contour. Identify which contour the tip will follow if it starts at rest slightly offset from the exact
midpoint between the magnets.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started