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 withwindow-ID=id. yes, it's a whole nesting situation, it ate.-r dim,--reducedim dimβ reduces the periodic dimension of the XSF file todim. β οΈ must be specified before the--xsfoption β 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 fromfile. 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 theCube=Cardsoption. and only scalar cube files are supported β that meansCube=(Cards,Density)orCube=(Cards,Orbitals)orCube=(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.structextension,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 specifyEMINandEMAXenergies 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 generatesin5file(s), calculates and renders charge density either as isolines/colorplanes (2D) or isosurfaces (3D). β¨ (and yes, the manual literally spells the argumentdirecorythere β 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 FHI98MDinp.iniformatted file.--fhi_coord fileβ loads structure from an FHI98MDcoord.outformatted file.--pwi,--pw_inp fileβ loads structure from apw.xinput file.pw.xis a pseudopotential planewave program of the Quantum-ESPRESSO distribution (http://www.quantum-espresso.org/). β--pwo,--pw_out fileβ loads structure from apw.xoutput file.pw.xis 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 toxcrysden-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:
and further documentation is available at:
http://www.xcrysden.org/Documentation.html
go read, bestie, iykyk. π
π COPYRIGHT π
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. ππ¦πΈ
π¦ where this page comes from
- debian bookworm: xcrysden 1.6.2-4 Β· GPL-2.0-or-later
- debian trixie: xcrysden 1.6.2-4 Β· GPL-2.0-or-later
- ubuntu jammy: xcrysden 1.6.2-4 Β· GPL-2.0-or-later
- ubuntu noble: xcrysden 1.6.2-4 Β· GPL-2.0-or-later
- ubuntu questing: xcrysden 1.6.2-5
- ubuntu resolute: xcrysden 1.6.2-5build1 Β· GPL-2.0-or-later
- ubuntu stonking: xcrysden 1.6.2-5build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms