Jmol and Crystal Bob Hanson St. Olaf College, Northfield, MN http://www.stolaf.edu/people/hansonr Crystal Workshop MSSC2018 l'università di Torino, Italia 4 Sep 2018
Bob Hanson St. Olaf College Jmol
Topics for Discussion - Jmol general introduction examples from the web general capabilities features specific to crystals
General Introduction to Jmol Mission: The high-quality, real-time visualization and analysis of molecular structure, dynamics, and energetics. Jmol is: open source Java cross-disciplinary actively being developed Jmol is not: a commercial enterprise a quantum computational package
General Introduction to Jmol Configurations: Java Application
General Introduction to Jmol Configurations: Java Application fast, full service, drag and drop
General Introduction to Jmol Configurations: Command-line Java application server-side app can run headless automated workflow.
General Introduction to Jmol Configurations: Command-line Java application server-side app no user interface can create images and do analyses.
General Introduction to Jmol Configurations: Java Applet easily added highly customizable highly interactive highly modular signed or unsigned in 20 languages
General Introduction to Jmol Configurations: Java Applet easily added highly customizable highly interactive highly modular signed or unsigned in 20 languages
General Introduction to Jmol Configurations: JavaScript App identical to Java works in all popular browsers, including Safari for the ipad, android phones, etc. somewhat slower than Java
Jmol Examples from the Web https://chemapps.stolaf.edu/jmol/jsmol/jcse
Jmol Examples from the Web https://stolaf.edu/people/hansonr/jmol/jice/index.html
General Capabilities of Jmol File Loading
General Capabilities of Jmol File Loading input configurations optimizations (all steps, or just last) vibrations, phonons molecular dynamics trajectories primitive and conventional unit cells over-ride of file-based unit cells and space groups multiple files and files with multiple structures
General Capabilities of Jmol File Loading since 2014 incommensurately modulated structures (3+n)D magnetic spacegroups, including (3+n)D
General Capabilities of Jmol File Loading incommensurately modulated structures (3+n)D magnetic spacegroups, including (3+n)D
General Capabilities of Jmol File Loading premade structures small molecules directly from: National Cancer Institute load $benzene PubChem load :caffeine
General Capabilities of Jmol File Loading premade structures crystal structures directly from: Crystallography Open Database load =cod/1000062 (rutile SnO2) American Mineralogist Society load =ams/quartz
General Capabilities of Jmol Scripting - Think Python meets Molecular Flash Jmol has a rich JavaScript-like scripting language that is easily accessed via a console, a pop-up menu, or via an API. There are nearly 2000 semantic tokens and about 200 commands. The HELP command accesses the interactive script documentation directly at https://chemapps.stolaf.edu/jmol/docs
General Capabilities of Jmol Output/Export Options Jmol can export a view to several formats, including: POV-Ray VRML/STL X3D animated GIF (fancy ray-tracing some people like) (can be used for 3D-printing) (XML version of VRML)
General Capabilities of Jmol Output/Export Options Structures can be saved in PDB, MOL, and XYZ formats. (CIF, but P1 only) Only the selected atoms are written, allowing for creating files that are subsets of the original file.
General Capabilities of Jmol Output/Export Options Images can be created in JPG and PNG formats. A special PNGJ format is interesting: combines an image and a ZIP file retains the full state of Jmol includes all files used in the formation of the image allows dragging the image back into the application or a web page to restore the state
General Capabilities of Jmol Output/Export Options Images can be created in JPG and PNG formats.
General Capabilities of Jmol Output/Export Options Images can be created in JPG and PNG formats.
General Capabilities of Jmol Output/Export Options Images can be created in JPG and PNG formats.
General Capabilities of Jmol Output/Export Options Images can be created in JPG and PNG formats.
General Capabilities of Jmol Output/Export Options Images can be created in JPG and PNG formats.
Try this: load http://www.theochem.unito.it/crystal_tuto/mssc2008_cd/ tutorials/nanotube/output/test_nano03.out {3 1 1}
Now add: set zshade on set zshadepower 5 // removes back side of nanotube
Now save the structure and delete it: write PNGJ nano.png OK PNGJ 47349 C:/jmol-dev/bobtest/nano.png; quality=-1; width=642; height=452 PNGJ is a standard PNGJ image with a ZIP-file payload zap It s gone. Now, here s the cool part: Find that image on your computer and drag it back into Jmol or use CTRL- C/CTRL-V to copy and paste it into Jmol.
Just where you left it! Cool, eh? Because Jmol is state driven
Uses of PNGJ - save sessions after working on a website - transfer states from Java to/from JavaScript - create visual directories of your work - send by email to collaborators - amaze your coworkers and students!
General Capabilities of Jmol Rendering Options ball and stick wireframe spacefill dots, stars polyhedra ellipsoids (tensors) cartoons z-shading
General Capabilities of Jmol Coloring Options CPK custom colors color by property {*}.temperature = {*}.vxyz.all color temperature
General Capabilities of Jmol Depicting vibrations arrows animation vectors on
Surface Capabilities of Jmol Built-in surfaces include Van der Waals and contacts (this is a ligand in a binding site, actually)
Surface Capabilities of Jmol Built-in surfaces include Van der Waals and contacts isosurface select {ligand} only vdw
Surface Capabilities of Jmol Built-in surfaces include Van der Waals and contacts contact {ligand} surface
Surface Capabilities of Jmol Built-in surfaces include Van der Waals and contacts contact {ligand} trimmed
Surface Capabilities of Jmol Built-in surfaces include Van der Waals and contacts contact {ligand} hbond
Surface Capabilities of Jmol Isosurface Creation from Cube Data
Surface Capabilities of Jmol Mappable
Surface Capabilities of Jmol Extensible isosurface lattice {3 3 1} xxx.cube (POV-ray output)
Surface Capabilities of Jmol Compressible as JVXL files write xxx.jvxl or isosurface CACHE (prior to write PNGJ xxx.png) (POV-ray output)
Molecule Building Jmol s modelkitmode allows for the creation and modification of models.
Jmol Virtual Model Kit
Jmol Virtual Model Kit
Jmol Virtual Model Kit
Jmol Virtual Model Kit
Jmol Virtual Model Kit
Jmol Virtual Model Kit
Jmol Virtual Model Kit
Minimization Jmol uses the Universal Force Field (UFF) to allow rapid minimization of structures.
Features Specific to Crystals space groups unit cells slabs and polymers tensor visualization Multipole analysis tensors as ellipsoids
Features Specific to Crystals space groups unit cells slabs and polymers tensor visualization Miller planes
Features Specific to Crystals space groups unit cells slabs and polymers tensor visualization Miller planes operator visualization https://chemapps.stolaf.edu/jmol/jsmol/jcse
Features Specific to Crystals load load {1 1 1} / load {555 555 1} load {1 1 1} packed / load {555 555-1} load {555 555 0}
Features Specific to Crystals load alpha_pbo.out {2 2 1} SUPERCELL {3 1 1}
Features Specific to Crystals brillouin zones
Thank you! Special thanks to: Roberto Dovesi Piero Ugliengo Bartolomeo Civalleri Pieremanuele Canepa The Jmol user group The Jmol development team