Question: In the our sample configuration from NIST, the density is 0 . 8 . This is calculated by dividing the number of atoms by the

In the our sample configuration from NIST, the density is 0.8. This is calculated by dividing the number of atoms by the box volume -800 atoms /(10*10*10), since 10 was our box length. You will need to calculate a box length depending on the number of atoms and the desired density.
Write a function that makes a configuration by randomly placing points in a 3 dimensional box. The function should return coordinates``, box_length the same way ourread_xyz` function does so we can switch out the two without changing our code.Generate points on a cubic lattice on python code. Similar to the random configuration generator, python def function should accept arguments for the number of atoms and the desired system density.

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 Programming Questions!