Print out histograms of the positions visited

Assignment Help Mechanical Engineering
Reference no: EM131342923

Molecular Dynamics (MD) simulation of a simple harmonic oscillator

This assignment uses the Molecular Dynamics method, which simply consists of discretizing Newton's equations of motion, and then iterating them many times to calculate the trajectory. Write a computer program to perform a Molecular Dynamics (MD) computer simulation of a one-dimensional simple harmonic oscillator (SHO).

2293_1934892d-4b25-446f-934e-4a296e61f8a8.png

[You can take K = 1 in answering the questions.]

Include a plot of the potential energy, including a horizontal line indicating the initial energy. [You will also do Monte Carlo (MC) simulations of the same models later, so remember to make your plots easy to compare.] The program should read in the starting position, the size of the time step, and the number of iterations. It should then print out a histogram of the positions visited during the simulation.

Your program should also print out the initial and final energy as a check on the accuracy of the algorithm. Don't forget to include the kinetic energy in your calculation!

1. For a starting value of x = 1.0. Try various values of the size of the time step to see the effect on the results. What happens when the time step is very small or very large?

2. Choose x = 1.0 and run the program for an appropriate value of dt. Print out histograms of the positions visited. [Later, you will compare them with you results for MC

 

Reference no: EM131342923

Questions Cloud

Write the given essay assignment : Write the given essay assignment.- Briefly describe six of the nine criteria a teacher considers when selecting a story to tell to the class.
Discuss about the applicability of medical necessity : Physicians must practice appropriate medical management: They must provide the correct services for their patients to get better, given their existing conditions. They must also be able to demonstrate medical necessity for the services they provid..
What kind of public relations efforts does company engage : What kind of advertising campaigns is this company currently engaged in? What kind of media do they advertise in, for example television, the internet, etc.? What kind of public relations efforts does this company engage in
Division of diploid nucleus divides into four haploid nuclei : In which stage does the division of diploid nucleus divides into four haploid nuclei?
Print out histograms of the positions visited : For a starting value of x = 1.0. Try various values of the size of the time step to see the effect on the results. What happens when the time step is very small or very large?
Discuss about the children health and safety : You need help with correcting some of the questions my lecturer term as "Not Yet Satisfactory" . you need someone who has nursing background to help me write the correct answers. you also missed submitting some documents as required by the instruc..
Write a resume packet : Write a Resume packet.- Use the major as Finance. Use any position of job but it have to be in finace and for an intership or full time job.
Write a six pages research paper about hindoesm : Write a six pages research paper about hindoesm. I have uploads the information on how I need it.
How is waste managed currently in your area : How is waste managed currently in your area? How has it changed in the last two decades? Analyze these changes (or lack of changes) and how if at all these are perceived as improvement

Reviews

Write a Review

Mechanical Engineering Questions & Answers

  Determine the x-coordinate of the mass center

Determine the x-coordinate of the mass center of the homogeneous hemisphere with the smaller hemispherical portion removed.

  Determine how long it takes before its velocity is reduced

a cannon ball having a weight of 20lb is fired upward in the vertical direction with a muzzle velocity of 1200 fts.

  Determine the height m above the shower at which the tank

a solar shower is to be supplied by 2.5-cm galvanized iron pipe running from a tank sharp-edged entrance holding 40

  Determine the temperature or quality if a saturated mixture

steam enters one inlet of an adiabatic mixing chamber at 1.4mpa and 300 c. at the second inlet steam enters at 1.4mpa

  Assuming that the speeding vehicle is approaching the

a lidar laser radar gun is an alternative to the standard radar gun that uses the doppler effect to catch speeders. a

  Calculate the declination zenith angle and the azimuth angle

Calculate the declination, the zenith angle, and the azimuth angle of the sun for New York City (latitude 40.77°N) on October 1 at 2:00 p.m. solar time.

  Find p1 and p2 if r= 40kn and p3 = 20kn

he force R is the resultant of the forces P1. P2, and P3 acting on the rectangular plate. Find P1 and P2 if R= 40kN and P3 = 20kN.

  Draw the complete mohr circle and sigma1sigma2 plot what is

a machine component is made of 2024-t4 aluminum. the external loads produce highest operating principle stresses that

  What is the temperature distribution in the rod

The tip of a 2-m-long slender rod with lateral surface insulated is dipped into a hot liquid at 200?C. What differential equation describes the temperature? After a long time, what is the temperature distribution in the rod if the other end is hel..

  Estimate the heat loss per unit length of the pipe

Saturated steam at 120oC is transported through a steel pipe of diameter 250 mm. The temperature of the outer surface of the pipe can also be assumed 120oC. The pipe is centeredin concrete of square cross section (400x400 mm). The outer surfaces of t..

  Assume the velocity distribution in the gap is linear and

1 one way to study the surface tension effects in a liquidsolid system is to dip a pair of parallel plates into the

  How the lubricants reduce the friction

How the lubricants reduce the friction and wear characteristics of the parts in contact?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd