Skip to main content

A Python tool for visualizing atomic systems and properties of condensed matter.

Project description

XtraCrysPy

A Python tool for visualizing atomic systems and spatial properties of condensed matter.

Alt text Alt text

Alt text Alt text

Features:

  • Plot molecular systems with minimal setup
  • Plot systems from DFT or MD input/output files
  • Interact with the system to caluclate distances, angles, or receive atomic information
  • Display relaxation or MD steps from QE relax output, raw coordinates, LAMMPS trajectory files, or CP2K (xyz)
  • Display reciprocal space features
  • Plot real space iso-surfaces (charge density, etc)
  • Plot reciprocal iso-surfaces (Fermi surface, spin-texture, etc)

Supported File Types:

  • Quantum ESPRESSO input or output
  • POSCAR
  • CIF
  • XSF
  • CP2K
  • BXSF (coming soon)
  • Any ASE supported format

Requirements:

Installation:

(only use --user if you do not have permission to install python packages)

Install with pip:

  • pip install xtracryspy

Install from source:

  • python setup.py install
  • python setup.py install --user

Control Inputs:

  • 'u' : Toggle UI visibility
  • 'a' : Toggle Axis visibility
  • 'b' : Toggle Boundary visiblity
  • 'c' : Toggle constraint of atoms within cell
  • 's' : Togle the selection type panel visibility
  • 'n' : Toggle the cell repition panel visibility
  • '>' : Step forward in relax or MD
  • '<' : Step backward in relax or MD
  • CTRL + ('>' or '<') : Step 5% through the relaxation or MD steps
  • SHIFT + 'o' : Report the camera position and orientation
  • SHIFT + 'c' : Reset camera to default position
  • SHIFT + 's' : Take snapshot
  • CTRL + 'w' : Exit
  • Arrow Keys : Rotate model
  • SHIFT + Arrow Keys : Translate camera
  • CTRL + Arrow Keys (+ SHIFT) : Rotate (or Translate) in smaller steps

Display an atomic model from inputfile, with the examples/main.py script:

  • python main.py <input_file>
  • python main.py <input_file> <bond_distance>

Examples:

Available in the examples directory

From scratch:

  • python CNO3.py
  • python caffeine.py
  • python silicon_fcc.py
  • python example_motion.py
  • python example_textured_isosurface.py

From inputfile (with main.py script):

  • python main.py <input_file>
  • python main.py <input_file> <bond_distance>

From inputfile (programmatic):

  • python SnTe_2D.py
  • python example_cif.py
  • python example_cp2k.py
  • python example_qe_in.py
  • python example_poscar.py

Relax QE outputfile:

  • python example_relax.py

LAMMPS MD trajectory:

  • python example_lammps_md.py

Charge Density:

  • python example_charge_density.py

Reciprocal Space:

  • python example_BZ.py

Isosurfaces:

  • python example_isosurface1.py
  • python example_isosurface2.py
  • python example_isosurface_clip.py
  • python example_colored_isosurface.py
  • python example_textured_isosurface.py
  • python example_textured_isosurface_clip.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

XtraCrysPy-1.0.0-py3.9.egg (79.8 kB view details)

Uploaded Source

XtraCrysPy-1.0.0-py3-none-any.whl (33.0 kB view details)

Uploaded Python 3

File details

Details for the file XtraCrysPy-1.0.0-py3.9.egg.

File metadata

  • Download URL: XtraCrysPy-1.0.0-py3.9.egg
  • Upload date:
  • Size: 79.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 CPython/3.9.12

File hashes

Hashes for XtraCrysPy-1.0.0-py3.9.egg
Algorithm Hash digest
SHA256 b0d34e9000364bff1f7094484da56cac51d43e415d40d57ab531fb88f1cdae4a
MD5 bdc4590869377f506e53c405e2301e2e
BLAKE2b-256 32f4b8f391f0c7dc4f7f446fee12eab7577a2b10e4a0f7937a6c0e9452e8b14c

See more details on using hashes here.

File details

Details for the file XtraCrysPy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: XtraCrysPy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 33.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.8

File hashes

Hashes for XtraCrysPy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 160c994f05124641f36e087a31f5b5a7a56c57d288f2b01ec70a037bd6d8670f
MD5 b51cbbce7426599effa8fe1eca8d12c4
BLAKE2b-256 29195c5c8ac3026593af0adfd3091393e7cfb713812abe27bcfc51f809e7b4b7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page