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

  Package design

Package Design Brief: Assume you are the packaging engineer for a large consumer products company. In this company, the Packaging Design Briefs are initiated by the marketing group and forwarded to the Package Engineering group.

  Mechanical engineering questions

Define dynamic viscosity, Determine the centroid, Pressure due to the height of liquid, Advantage of changing the liquid, Calculate the total moment about the hinge of the seal gate.

  Automatic control

DOF system and Find the differential equation describing the system

  Write a paper on boyle''s law

Write a paper on Boyle's law and describe Compression and Combustion stroke . Also explain Charles's law and illustrate SI engine and CI engine.

  Verify the law for parallelogram of forces

To Verify the law for parallelogram of forces, law for triangle of forces and law of polygon of forces. These laws are very useful to calculate unknown forces in very short time.

  Discharge pressure of the compressor

What is the discharge revised discharge pressure of the compressor.

  The Case for Global Accounting Standards

The role of IFRS in both developing and developed capital markets.

  Wind turbine

Wind turbines are becoming more and more common as a method of energy production, wind turbines by their very nature are dynamic and are subject to and create their own internal and external kinematics and kinetics.

  Advanced design methodologies

8 x product engineering and design review (week 2 – 12), ~3 pages per item which must contain a brief description of the product then delve into concepts such as materials selection, manufacturing methods, life cycle analysis, recyclability and overa..

  Design of absorption column and the cooler

Design of absorption column and the cooler. Process design of other units should be completed along with pipe sizes.

  Determine the maximum total bending moment

Determine maximum total bending moment (static plus dynamic) of the beam under steady-state conditions.

  Force of the water on the gate

Determine the magnitude of the horizontal and vertical components of the force of the water on the gate.

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