xcrysden(1)

πŸ’– xcrysden β€” the crystalline & molecular structure visualizer πŸ’–

okay bestie, pull up a chair, because we're about to talk about the xcrysden(1) manual page and honestly? it's a lot, but we're gonna get through it together. this is the page for XCrySDen, the program, and yes the name is also right there in the header of the page, no we're not gonna retype the whole header line, we're better than that. πŸ’…


✨ NAME ✨

xcrysden β€” crystalline and molecular structure visualizer πŸ¦‹


✨ SYNOPSIS ✨

xcrysden [special-options]
xcrysden [special-options] format-options file|directory

like. two whole modes. iconic. πŸ‘‘


🌸 DESCRIPTION 🌸

okay so XCrySDen is a crystalline and molecular structure visualisation program, and its whole thing β€” its main character energy, if you will β€” is displaying isosurfaces and contours, which you can superimpose on crystalline structures and then interactively rotate and manipulate. that's the vibe. you look at it, you spin it, you're obsessed. ✨


πŸ’… SPECIAL OPTIONS πŸ’…

these are the special ones, the pre-game, the getting-ready-with-me options.

  • -h, --help β€” shows you the help message. like, "hey bestie here's how this works" 🫢
  • -v, --version β€” shows you the program version info. the receipts. πŸ“‹
  • -u id, --use id β€” loads XCrySDen embedded into a container window with window-ID=id. yes, it's a whole nesting situation, it ate.
  • -r dim, --reducedim dim β€” reduces the periodic dimension of the XSF file to dim. ⚠️ must be specified before the --xsf option β€” like, order matters, it's giving strict. e.g. xcrysden -r 2 --xsf file.
  • -c file, --custom file β€” loads custom-definitions from a specified file. the syntax is that of ~/.xcrysden/custom-definitions. πŸŽ€
  • -a file, --attributes file β€” loads attributes from file. the format of the attributes file is literally this:
ELEMENTCOLOR
atomic-number1   red1 blue1 green1
atomic-number2   red2 blue2 green2
...
ELEMENTRADIUS
atomic-number1   radius1
atomic-number2   radius2
...
  • -l file, --lights file β€” loads lights parameters from XCrySDen's lights formatted file. πŸ’‘ lighting is everything, no cap.

πŸ¦‹ FORMAT OPTIONS πŸ¦‹

now the file-format buffet. pick your format, bestie, there's one for everybody. πŸ“

  • --xsf file β€” loads structure from XCrySDen's-Structure-File (XSF) formatted file. the classic. the blueprint. 🌟
  • --animxsf file, --axsf file β€” loads structures from Animated-XCrySDen's-Structure-File (AXSF) formatted file. plural structures! it moves! πŸ’ƒ
  • --bxsf file β€” loads bands from a BXSF (Band-XSF) file and visualizes the Fermi Surface. πŸ”₯
  • --xmol file, --xyz file β€” loads structure from an XYZ formatted file. simple, cute, does the job.
  • --pdb file β€” loads structure from a PDB formatted file. 🧬
  • --gzmat file β€” loads structure from a Gaussian Z-matrix. heads up: this one requires the Open-Babel program. not optional, it's a whole dependency.
  • --gaussian_out file, --gxx_out file, --g98_out file β€” loads structure from a Gaussian output file. fair warning: only single point calculation and optimization run is supported so far. but for the optimization run you can render all the structures that were produced during the run, which is lowkey kind of a serve. ✨
  • --cube file, --gXX_cube file, --g98_cube file β€” loads structure from a Gaussian cube file. ⚠️ the cube file should be produced with the Cube=Cards option. and only scalar cube files are supported β€” that means Cube=(Cards,Density) or Cube=(Cards,Orbitals) or Cube=(Cards,Potential). refer to the GAUSSIAN manual for the meaning of these keywords, because that lore is not in here. πŸ“š
  • --orca_out file β€” loads structure(s) from an Orca output file. heads up: only Geometry optimization outputs were tested so far. πŸ™ˆ
  • --crystal_inp file β€” loads structure from a CRYSTAL (http://http://www.crystal.unito.it/) input file.
  • --crystal_f9 file β€” loads structure from CRYSTAL (http://http://www.crystal.unito.it/) fortran unit 9.
  • --wien_struct filehead|file|directory β€” loads structure from a WIEN2k (http://www.wien2k.at/) struct-file, where:
    • filehead = name of struct file without the .struct extension,
    • file = filename,
    • directory = name of case directory.
  • --wien_kpath directory|struct-file β€” reads the struct file and renders the first Brillouin zone with special k-points. 🎯 k-path can be selected interactively by mouse-clicking the special k-points. user must specify EMIN and EMAX energies and the total number of k-points along the path. ⚠️ that number is merely an estimation of the total number of k-points, since XCrySDen tries to get a very uniform sampling of k-points along the path β€” so don't specify the WIEN2k maximum allowed number of k-points, because XCrySDen might generate a few points more. πŸ’€
  • --wien_renderdensity directory β€” reads struct, output, and rho files and renders the crystalline structure plus the precomputed charge density. 🌈
  • --wien_density direcory β€” either a 2D or 3D region for charge density calculation is interactively chosen by mouse-clicking. XCrySDen generates in5 file(s), calculates and renders charge density either as isolines/colorplanes (2D) or isosurfaces (3D). ✨ (and yes, the manual literally spells the argument direcory there β€” we keep it exactly as it is, periodt.)
  • --wien_fermisurface directory β€” pops up a task window for Fermi surface creation. after several steps the Fermi surface is (hopefully) drawn as a 3D isosurface. the "(hopefully)" is doing a lot of emotional labor there and we respect it. πŸ™
  • --fhi_inpini file β€” loads structure from an FHI98MD inp.ini formatted file.
  • --fhi_coord file β€” loads structure from an FHI98MD coord.out formatted file.
  • --pwi, --pw_inp file β€” loads structure from a pw.x input file. pw.x is a pseudopotential planewave program of the Quantum-ESPRESSO distribution (http://www.quantum-espresso.org/). β˜•
  • --pwo, --pw_out file β€” loads structure from a pw.x output file. pw.x is a pseudopotential planewave program of the Quantum-ESPRESSO distribution (http://www.quantum-espresso.org/). β˜•
  • -s script, --script script β€” loads a script from a file containing a Tcl script. πŸ’»
  • --os script, --oldscript script β€” loads an old-formatted script (prior to xcrysden-1.6) from file. vintage. archival. nostalgic-core. πŸŽ€
  • --print filename β€” prints the displayed structure to a file and exits. super useful inside shell scripts if you want "automatic" printing. like, it does the thing and then dips. πŸ‘‹

example:

xcrysden --xsf file.xsf --script state.xcrysden --print file.png

in this example, --xsf file.xsf loads the structure from the XSF file, --script state.xcrysden sets up a desired display (a script like this is typically created via the File-->Save Current State menu option), and --print file.png prints the displayed structure to a file and exits xcrysden. chef's kiss. 🀌


πŸ” SEE ALSO πŸ”

for more info about XCrySDen, go look here:

http://www.xcrysden.org/

and further documentation is available at:

http://www.xcrysden.org/Documentation.html

go read, bestie, iykyk. πŸ“–


Copyright (C) 1996--2019 Anton Kokalj

this program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. you should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

this program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. see the GNU General Public License for more details. 🫑 (no warranty bestie, we said what we said)


and that's the whole page, you ate it, you understood it, you're literally a Unix girlie now. πŸ’–βœ¨ this has been the xcrysden(1) page from XCrySDen, dated August 7, 2019 β€” mwah, go visualize something pretty. πŸŽ€πŸ¦‹πŸŒΈ