8. TheorChem2Blender - Unit cells, growth, Miller planes, and polyhedra¶
Overview¶
TheorChem2Blender is a program that has 6 tabs: Input, Customization, Ions, Unit Cells, Output, and Convert!. Which tabs to modify depend on the type of 3D file the user wants to create. The Unit Cells tab is different from the others covered so far - it only becomes available when the input file type is .vasp, since periodic cell information is read from VASP-format files. Below is a continuation on how to use TheorChem2Blender, focused on rendering unit cell boundaries, growing supercells, drawing crystallographic (Miller) planes, and building coordination polyhedra from a .vasp input. Refer to (3) basic use for the general input/convert workflow.
Input tab¶
Change the input type to .vasp
Click on set to select the input name
Go to input_examples/vasp_files/
Select SrTiO3_perovskite.vasp as the input
Notice the Unit Cells tab, previously greyed out, is now available - this only happens for .vasp input
Go to the Unit Cells tab
Unit Cells tab¶
If you defined cell boundaries in the .vasp file using a bond order of 0.5, check unit cell boundaries to render them as solid unit cell edges instead of dashed lines
Check allow unit cell growth to render one or more duplicated copies of the unit cell
Click add cell growth, then choose how many times to repeat the cell along x, y, and z - for this example, try 2, 2, 2
x: 2 y: 2 z: 2
Click add cell growth again if you want to render more than one growth size in the same batch - for example, also add 1, 1, 1 to keep the original cell alongside the 2x2x2 supercell
Check allow Miller indices to render crystallographic planes
Click add plane, then choose h, k, and l - for this example, try 1, 0, 0
h: 1 k: 0 l: 0
Click add plane again for more planes, e.g. 1, 1, 1. Every plane you add is rendered on every unit cell growth size defined in steps 9-10
Check build polyhedra to draw coordination polyhedra around selected center atoms
Click add center, then choose the element that will act as the polyhedron center - for this example, choose Ti, so a polyhedron is drawn around every titanium atom with three or more bonded oxygen neighbors
Click add center again to build polyhedra around a second element type, if desired
Click Clear at any point to reset unit cell boundaries, growth, Miller planes, and polyhedra back to empty
Go to the Convert! tab
Convert! tab¶
Click on Convert!
If you added more than one unit cell growth size, one output file is generated per growth size, each with every Miller plane rendered on it
Your file(s) will appear by default in the output/ folder
Note
🎥 To see a video recording of this walkthrough, visit the following link: [video coming soon]
Previous: (7) animating xyz files