Here is a short Python + Materials Science task for candidates interested in joining the D2R2 group. With basic knowledge in Python and Materials Science this should be achievable in about 1 hour.
- Download this repository.
- Use the
template.pyfile to write your Python code in.
- Download the following database:
- Move the file
WF-CE_database_58332.jsoninto the repository folder. - Write Python code to plot the distribution of column
cleavage_energy. Save the created plot as a png or pdf file. - Plot the distribution of column
WFfor different number of unique elements present (i.e., 1, 2, or 3) at the surface (determine which column you get that information from). Save the created plot as a png or pdf file. - Are the columns
WFandFermicorrelated? Write code to assess their correlation.
- Install
pymatgen. - Write a function that takes any pymatgen
Structureobject and returns the unit cell volume, number of unique chemical elements, and the angle between lattice vectors a and b. - Get the crystal structure
mp-2490from the Materials Project. - Load that structure with pymatgen.
- Test the function from step 2 with the loaded structure.
- Write one more function that takes any pymatgen
Structureobject and does something useful to the input. You can be creative here.
There are a 4 short questions in file questions.txt. Please, add your answers to the same file.
Please, create one file submission.zip containing all the files (template.py containing your code,
questions.txt containing your answers, and the two plot you created as png/pdf) and
send it to me via email. Thank you!