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

  An adiabatic capillary tube is used in some refrigeration

an adiabatic capillary tube is used in some refrigeration systems to drop the pressure of the refrigerant from the

  Kinetic energy and potential energy

For the automobile, determine its changes in kinetic and potential energy, each in kJ. For each quantity, kinetic energy and potential energy, specify your choice of datum and reference value at that datum. Let g 5 9.81 m/s2.

  Define a coordinate system

For a coordinate system such that the y-axis is going through the points O1 and O2 upwards, outline the solution procedure using solutions in the book for a slider-crank mechanism.

  A steam turbine has 7lbmmin of steam entering at 200psi600

a steam turbine has 7lbmmin of steam entering at 200psi600 degrees f and leaving at 1 psi with a quality of 90.a draw

  In order to maintain the same values for q and change in

a horizontal pipeline is designed for a given e epsilon l q flow rate density viscosity and change in pressure and the

  Calculate the heat rate

For the condition when the floor and duct temperatures are 30 and 80°C, respectively, and the thermal conductivity of concrete is 1.4 W/m · K, calculate the heat rate from each duct, per unit length of duct. Use a grid spacing with ?x = 2?y, where..

  Determine the optimum young''s modulus for a linear elastic

Write a material parameter extraction tool in your favorite mathematical software language, and use the tool to determine the optimum Young's modulus for a linear elastic material model.

  Derive an expression for the velocity distribution

You need not consider body forces. Assume that the flow is axisymmetric and the fluid is at rest at infinity.

  Determine the surface temperatures on the two sides

(a) Determine the surface temperatures on the two sides of the circuit board.

  Use maxwell relations and prove that the ratio of

p rtvct21 use maxwell relations to prove that the entropy of the system using this substance between states p1 and p2

  What are the factors that affect weldability

(Video) According to the video, what are four possible functions of the electrodes in resistance spot welding?

  Determine the velocity of the block after 5 seconds assume

a force f 12t where t is in seconds is applied to a 2kg box at rest on a horizontal surface uk .3 for 5 seconds.

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