Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Computer science. You are a scientist working at Los Alamos National Labs during

ID: 3833747 • Letter: C

Question

Computer science. You are a scientist working at Los Alamos National Labs during WWII and your job is to study the stability of an atomic material consisting of Argon atoms. You will initialize a uniform 2D lattice of 25 Argon atoms and plot it using the built in MATLAB scatter function (Part I), compute the potential energy and forces of the system using the supplied MATLAB function vanderWaals (Part II), move each atom 5000 times using an algorithm called molecular dynamics (Part III) and finally summarize the energetic and structural results for your boss Edward Teller (Part IV). Initialize the X and Y Cartesian coordinates for 25 argon atoms into a 2D grid using two arrays named V and The spacing between atomic centers should be exactly 3.8 Angstroms along both the X-and Y-axes. Plot the result using the MATLAB scatter function:

Explanation / Answer

x = [];
y = [];
%to place 25 atoms we need 5 rows and 5cols of atoms
for i = 1:5
x = [x , i * 3.8];
y = [y , i * 3.8];
end

meanx = mean(x);
x = x-meanx;    %such that the center is at (0,0)

meany = mean(y);
y = y-meany;    %such that the center is at (0,0)

x_ =[];

y_ = [];

for i = x % this nested loops create 25 coordinates from 5 x and 5 y

x_ = [x_ x];

for j = x

y_ = [y_ i];

end

end
scatter(x_,y_);

I tried my best to keep the code generalized. I commented the code to make your life easy. If incase you have any doubt or query please feel free to comment below. I shall be glad to help you. :)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote