Question: Molecular dynamics is a computer simulation method for studying the physical movements of atoms and molecules. Write a C script that simulates N number of

 Molecular dynamics is a computer simulation method for studying the physical

Molecular dynamics is a computer simulation method for studying the physical movements of atoms and molecules. Write a C script that simulates N number of particles where N is input by the user. Define and use a structure containing the following variables: positions (q) o velocities () e kinetic energy ( T) . potential energy (D) Note that each body has three positions, three velocities, a scalar kinetic energy, and a scalar potential energy Problem 1 [30] Assuming a cubic simulation volume of (50 x 50 x 50) with center at (0,0,0), randomly generate floating numbers for the particle positions (q) Problem 2 Randomly generate particle velocities ( constrained by: where the magnitude of the ith particle velocity is Problem 3 [35) Using the generated velocities, calculate and print the total kinetic energy of the system Assuming the particles do not rotate, the total kinetic energy is given by total i-1 i=1 You may assume the particles are all of the same material and have a unit mass of 1 Molecular dynamics is a computer simulation method for studying the physical movements of atoms and molecules. Write a C script that simulates N number of particles where N is input by the user. Define and use a structure containing the following variables: positions (q) o velocities () e kinetic energy ( T) . potential energy (D) Note that each body has three positions, three velocities, a scalar kinetic energy, and a scalar potential energy Problem 1 [30] Assuming a cubic simulation volume of (50 x 50 x 50) with center at (0,0,0), randomly generate floating numbers for the particle positions (q) Problem 2 Randomly generate particle velocities ( constrained by: where the magnitude of the ith particle velocity is Problem 3 [35) Using the generated velocities, calculate and print the total kinetic energy of the system Assuming the particles do not rotate, the total kinetic energy is given by total i-1 i=1 You may assume the particles are all of the same material and have a unit mass of 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!