Perform a molecular dynamics computer simulation

Assignment Help Mechanical Engineering
Reference no: EM131339907

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).

683_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: EM131339907

Questions Cloud

What is the percentage of sales forecasting method : What is the percentage of sales forecasting method? What are some of the limitations financial analysts should be aware of in applying this method?
What should be the mix of formats for future indycar : Describe products or companies where it might be appropriate to utilize market segmentation according to personality traits? 350 words and 3 references.
Six lessons for successful virtual teams : Write an essay that summarizes the six lessons for successful virtual teams.
Computerized machine tool-what is after-tax salvage value : Your firm needs a computerized machine tool lathe which costs $44,000 and requires $11,400 in maintenance for each year of its 3-year life. After three years, this machine will be replaced. The machine falls into the MACRS 3-year class life category...
Perform a molecular dynamics computer simulation : 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
Illustrate how the statement of cash flows can be used : Illustrate how the statement of cash flows can be used as a financial planning technique.- Explain the difference between deterministic and probabilistic financial planning models.
Brief review of the theories of cognitive psychology : A brief review of the theories of cognitive psychology and their applications to learning and instruction. (Benchmarks C 3.4: Apply the theories of cognitive psychology to learning and instruction.)
File-naming conventions for four different operating systems : Consult current literature, and compose an essay outlining file-naming conventions for four different operating systems. Note the acceptable range of characters, maximum length, case sensitivity, and other details.
Firm needs computerized machine tool lathe which costs : Your firm needs a computerized machine tool lathe which costs $60,000 and requires $13,000 in maintenance for each year of its 3-year life. After three years, this machine will be replaced. The machine falls into the MACRS 3-year class life category...

Reviews

Write a Review

Mechanical Engineering Questions & Answers

  It is assumed that the wire surface temperature is constant

an electrical wire having a diameter of 1.5 mm and covered with a plastic insulation thickness 2.5 mm is exposed to

  Compute the hydraulic radius for this channel

A drainage structure for an industrial park has a trapezoidal cross-section similar to that shown in Fig. 14.2(c). The bottom width is 3.50 ft and the sides are inclined at an angle of 60° from the horizontal. Compute the hydraulic radius for this..

  Compute the convective mass transfer coefficient when the

the sherwood number for vapor transport from the surface of a high moisture food product to the surrounding air is

  An axially loaded brass strut hinged at both ends is 1m

an axially loaded brass strut hinged at both ends is 1m long and is of a square cross-section of sides 20mm. what

  The freestream condition are those for a standard altitude

consider a lifting flow over a circular cylinder with a diameter of 0.5m.the freestream velocity is 25 ms and the

  What power must be added to the water by the pump

If the flow of 0.10 m3/s of water is to be maintained in the system shown, what power must be added to the water by the pump? The pipe is made of steel and is 15 cm in diameter

  Determine the horsepower input for a motor necessary to

determine the horsepower input for a motor necessary to lift a 200 kg box at a constant rate of 2 ms. the overall

  Obtain the mathematical expression for the rate of heat

in subsea oil and natural gas production hydrocarbon fluids may leave the reservoir with a temperature of 70 degc and

  Predict the total settlement of the terrain

If it is assumed that the deformation of the sand layers can be neglected, predict the total settlement of the terrain after 1 year, 10 years and 100 years.

  Determine the carbon concentration ratio

Determine the carbon concentration ratio, CC (x. t)/Cc,s, at a depth of 10 mm after 1 hour of carburization.

  Determine a the rate of heat loss from the compressor b the

consider an r-134a compressor on a refrigeration system. if the refrigerant enters as saturated vapor at 200 kpa 0.03

  Find the velocity with which particle b begins to move if

particle a of mass ma 1.0 kg is at the edge of a table with height 1.0 m. it is connected to a particle b of mass mb

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