PHONOPY(1)
๐ซถ PHONOPY(1) โ phonopy 2.48.0, explained by your bestie ๐ซถ
okay so bestie, you opened the manual page for phonopy, the phonopy command-line-tool, version 2.48.0, and it is long. like, unnecessarily long. but don't panic ๐ we're getting through every single flag together, no skipping, no summarising, because every one of these little guys matters. grab a strawberry drink ๐ and let's go.
๐ธ NAME
phonopy โ the manual page for phonopy 2.48.0 โจ
๐ DESCRIPTION
here's the usage line in all its glory, and yes, it is giving "the whole keyboard got dumped into one line":
usage: phonopy [-h] [--abacus] [--abinit] [--aims] [--castep] [--cp2k]
[--crystal] [--dftb+] [--elk] [--fleur] [--lammps] [--qlm] [--qe]
[--siesta] [--turbomole] [--vasp] [--wien2k] [--pwmat] [--alm]
[--amplitude DISPLACEMENT_DISTANCE] [--amax
DISPLACEMENT_DISTANCE_MAX] [--anime ANIME [ANIME ...]] [--band
BAND_PATHS [BAND_PATHS ...]] [--band-connection]
[--band-const-interval] [--band-labels BAND_LABELS [BAND_LABELS
...]] [--band-format BAND_FORMAT] [--band-points BAND_POINTS]
[--bi BAND_INDICES [BAND_INDICES ...]] [-c FILE] [--classical]
[--cutoff-freq CUTOFF_FREQUENCY] [--cutoff-radius CUTOFF_RADIUS]
[-d] [--dim SUPERCELL_DIMENSION [SUPERCELL_DIMENSION ...]]
[--dm-decimals DYNAMICAL_MATRIX_DECIMALS] [--dos] [--eigvecs] [-f
CREATE_FORCE_SETS [CREATE_FORCE_SETS ...]] [--factor
FREQUENCY_CONVERSION_FACTOR] [--fc FILE] [--fc-calc
FC_CALCULATOR] [--fc-calc-opt FC_CALCULATOR_OPTIONS]
[--fc-decimals FORCE_CONSTANTS_DECIMALS] [--fc-format FC_FORMAT]
[--fc-spg-symmetry] [--fc-symmetry] [--fits-debye-model]
[--full-fc] [--fz CREATE_FORCE_SETS_ZERO [CREATE_FORCE_SETS_ZERO
...]] [--fmax FMAX] [--fmin FMIN] [--fpitch FPITCH] [--gc]
[--gv] [--gv-delta-q GV_DELTA_Q] [--hdf5] [--hdf5-compression
HDF5_COMPRESSION] [--irreps IRREPS_QPOINT [IRREPS_QPOINT ...]]
[--include-fc] [--include-fs] [--include-disp] [--include-all]
[--legend] [--legacy-plot] [--lcg] [--loglevel LOGLEVEL] [--mass
MASSES [MASSES ...]] [--mass-ase-iupac2016] [--magmom MAGMOMS
[MAGMOMS ...]] [--mesh-format MESH_FORMAT] [--modulation
MODULATION [MODULATION ...]] [--mp MESH_NUMBERS [MESH_NUMBERS
...]] [--mlp-params MLP_PARAMS] [--moment] [--moment-order
MOMENT_ORDER] [--nac] [--nac-method NAC_METHOD] [--nodiag]
[--nomeshsym] [--nosym] [--nowritemesh] [-p] [--pa PRIMITIVE_AXES
[PRIMITIVE_AXES ...]] [--pd PROJECTION_DIRECTION
[PROJECTION_DIRECTION ...]] [--pdos PDOS [PDOS ...]] [--pm]
[--pr] [--pt] [--pypolymlp] [--qpoints QPOINTS [QPOINTS ...]]
[--qpoints-format QPOINTS_FORMAT] [--q-direction NAC_Q_DIRECTION
[NAC_Q_DIRECTION ...]] [-q] [--random-seed RANDOM_SEED] [--rd
RANDOM_DISPLACEMENTS] [--rd-auto-factor
RD_NUMBER_ESTIMATION_FACTOR] [--rd-temperature TEMPERATURE]
[--readfc] [--readfc-format READFC_FORMAT] [--read-qpoints]
[--relax-atomic-positions] [-s] [--sp] [--show-irreps] [--sigma
SIGMA] [--sscha SSCHA_ITERATIONS] [--symfc] [--symmetry] [-t]
[--td] [--tdm] [--tdm-cif TEMPERATURE] [--temperature
TEMPERATURE] [--tmax TMAX] [--tmin TMIN] [--tolerance
SYMMETRY_TOLERANCE] [--trigonal] [--tstep TSTEP] [-v]
[--wien2k-p1] [--writefc] [--writefc-format WRITEFC_FORMAT]
[--writedm] [--xyz-projection] [filename ...]
Phonopy command-line-tool ๐
one tool. a hundred-ish ways to tell it what you want. iconic honestly.
๐ positional arguments
filenameโ this is your Phonopy configure file. buuut if that file gets recognized as a phonopy.yaml-like file, then it gets read as a phonopy.yaml-like file instead. same slot, two personalities ๐
โจ options
deep breath. here we go.
-h,--helpโ shows this help message and then dips. the classic escape hatch ๐
heads up bestie: a whole pile of these are just "which DFT code are we talking to" switches. pick your fave, no judgement.
--abacusโ Invoke ABACUS mode--abinitโ Invoke Abinit mode--aimsโ Invoke FHI-aims mode--castepโ Invoke CASTEP mode--cp2kโ Invoke CP2K mode--crystalโ Invoke CRYSTAL mode--dftb+โ Invoke dftb+ mode--elkโ Invoke elk mode--fleurโ Invoke Fleur mode--lammpsโ Invoke Lammps mode--qlmโ Invoke Questaal/LMTO mode--qeโ Invoke Quantum espresso (QE) mode--siestaโ Invoke Siesta mode--turbomoleโ Invoke TURBOMOLE mode--vaspโ Invoke Vasp mode--wien2kโ Invoke Wien2k mode--pwmatโ Invoke PWmat mode--almโ Use ALM for generating force constants. force constants, but make it ALM ๐ซถ--amplitude,--amin DISPLACEMENT_DISTANCEโ Distance of displacements โ and also the minimum distance of displacements in random displacements. two jobs, one flag, main character energy โจ--amax DISPLACEMENT_DISTANCE_MAXโ Minimum distance of displacements in random displacements--anime ANIME [ANIME ...]โ Same asANIMEtag--band BAND_PATHS [BAND_PATHS ...]โ Same behavior asBANDtag--band-connectionโ Treat band crossings. letting the bands actually touch, as they deserve ๐--band-const-intervalโ Band paths are sampled with similar interval.--band-labels BAND_LABELS [BAND_LABELS ...]โ Show labels at band segments--band-format BAND_FORMATโ Band structure output file-format--band-points BAND_POINTSโ Number of points calculated on a band segment in the band structure mode--bi,--band-indices BAND_INDICES [BAND_INDICES ...]โ Band indices to be included to calculate thermal properties-c,--cell FILEโ Read unit cell--classicalโ Compute thermodynamic properties using classical statistics.--cutoff-freq,--cutoff-frequency CUTOFF_FREQUENCYโ Thermal properties are not calculated below this cutoff frequency.--cutoff-radius CUTOFF_RADIUSโ Out of cutoff radius, force constants are set zero.-d,--displacementโ Create supercells with displacements--dim SUPERCELL_DIMENSION [SUPERCELL_DIMENSION ...]โ Same behavior asDIMtag--dm-decimals DYNAMICAL_MATRIX_DECIMALSโ Decimals of values of decimals ๐ญ that's literally what it says, bestie. it's about how many decimals the dynamical matrix values get.--dosโ Calculate (P)DOS--eigvecs,--eigenvectorsโ Output eigenvectors-f,--force-sets CREATE_FORCE_SETS [CREATE_FORCE_SETS ...]โ CreateFORCE_SETS--factor FREQUENCY_CONVERSION_FACTORโ Frequency unit conversion factor--fc,--force-constants FILEโ CreateFORCE_CONSTANTSfromvaspurn.xml.vasprun.xmlhas to be passed as argument.--fc-calc,--fc-calculator FC_CALCULATORโ Force constants calculator--fc-calc-opt,--fc-calculator-options FC_CALCULATOR_OPTIONSโ Options for force constants calculator as comma separated string with the style ofkey = values--fc-decimals FORCE_CONSTANTS_DECIMALSโ Decimals of values of force constants--fc-format FC_FORMATโ Force constants input/output file-format--fc-spg-symmetryโ Enforce space group symmetry to force constants--fc-symmetry,--sym-fcโ Symmetrize force constants. symmetry check: passed ๐--fits-debye-modelโ Fits total DOS to a Debye model--full-fcโ Calculate full supercell force constants matrix--fz,--force-sets-zero CREATE_FORCE_SETS_ZERO [CREATE_FORCE_SETS_ZERO ...]โ CreateFORCE_SETS.disp.yamlin the current directory andvapsrun.xml's for VASP orcase.scf(m)for Wien2k as arguments are required. The first argument is that of the perfect supercell to subtract residual forces--fmax FMAXโ Maximum frequency used for DOS or moment calculation--fmin FMINโ Minimum frequency used for DOS or moment calculation--fpitch FPITCHโ Frequency pitch used for DOS or moment calculation--gc,--gamma-centerโ Set mesh as Gamma center--gv,--group-velocityโ Calculate group velocities at q-points--gv-delta-q GV_DELTA_Qโ Delta-q distance used for group velocity calculation--hdf5โ Use hdf5 for force constants--hdf5-compression HDF5_COMPRESSIONโ hdf5 compression filter (default:"gzip") and"none"for no compression--irreps,--irreps-qpoint IRREPS_QPOINT [IRREPS_QPOINT ...]โ A q-point where characters of irreps are calculated--include-fcโ Include force constants inphonopy.yaml--include-fsโ Include force sets inphonopy.yaml--include-dispโ Include displacements inphonopy.yaml--include-allโ Include all output file data inphonopy.yaml--legendโ Legend of plots is shown in thermal displacements--legacy-plotโ Legacy style band structure plot--lcg,--little-cogroupโ Show irreps of little co-group (or point-group of wave vector q) instead of little group--loglevel LOGLEVELโ Log level--mass MASSES [MASSES ...]โ Same asMASStag--mass-ase-iupac2016โ Import atomic weights from ASE according to IUPAC 2016--magmom MAGMOMS [MAGMOMS ...]โ Same asMAGMOMtag--mesh-format MESH_FORMATโ Mesh output file-format--modulation MODULATION [MODULATION ...]โ Same asMODULATIONtag--mp,--mesh MESH_NUMBERS [MESH_NUMBERS ...]โ Same behavior asMPtag--mlp-params MLP_PARAMSโ Parameters for machine learning potentials as comma separated string with the style ofkey = values--momentโ Calculate moment of phonon states distribution--moment-order MOMENT_ORDERโ Order of moment of phonon states distribution--nacโ Non-analytical term correction--nac-method NAC_METHODโ Non-analytical term correction method: Gonze (default) or Wang--nodiagโ Set displacements parallel to axes--nomeshsymโ Symmetry is not imposed for mesh sampling.--nosymโ Symmetry is not imposed.--nowritemeshโ Do not writemesh.yamlormesh.hdf5-p,--plotโ Plot data ๐--pa,--primitive-axis,--primitive-axes PRIMITIVE_AXES [PRIMITIVE_AXES ...]โ Same asPRIMITIVE_AXEStag--pd,--projection-direction PROJECTION_DIRECTION [PROJECTION_DIRECTION ...]โ Same asPROJECTION_DIRECTIONtag--pdos PDOS [PDOS ...]โ Same asPDOStag--pmโ Set plus minus displacements--pr,--pretend-realโ Use imaginary frequency as real for thermal property calculation. For a testing purpose only, when a small amount of imaginary branches obtained.--pt,--projected-thermal-propertyโ Output projected thermal properties--pypolymlpโ Use pypolymlp for generating force constants--qpoints QPOINTS [QPOINTS ...]โ Calculate at specified q-points--qpoints-format QPOINTS_FORMATโ Q-points output file-format--q-direction NAC_Q_DIRECTION [NAC_Q_DIRECTION ...]โ Direction of q-vector perturbation used for NAC at q->0, and group velocity for degenerate phonon mode in q-points mode-q,--quietโ Print out smallest information. minimal words, maximum mystery ๐คซ--random-seed RANDOM_SEEDโ Random seed by a 32 bit unsigned integer
--rd,--random-displacements RANDOM_DISPLACEMENTSโ the number of supercells you want built with random displacements, or the literal string"auto"if you'd rather let phonopy do the thinking ๐ฒ--rd-auto-factor RD_NUMBER_ESTIMATION_FACTORโ a factor used to estimate how many supercells with random displacements you're gonna need ๐--rd-temperature TEMPERATUREโ a temperature to generate those random displacements at ๐ก๏ธ--readfcโ read force constants straight from a file ๐--readfc-format READFC_FORMATโ tells it what file-format those incoming force constants are in ๐ค--read-qpointsโ readQPOITNS(yes, that spelling is the original's, we don't fix icons in this house ๐ )--relax-atomic-positionsโ relax your atomic positions using polynomial MLPs ๐๏ธ-s,--saveโ save the plot data as a pdf, so you can stare at it forever ๐ผ๏ธ--sp,--save-paramsโ saves the parameters that can run phonopy intophonopy_params.yaml๐--show-irrepsโ shows the IR-Reps along with their characters โจ--sigma SIGMAโ the smearing width for DOS ๐ซ๏ธ--sscha SSCHA_ITERATIONSโ how many iterations happen in an SSCHA calculation ๐--symfcโ usesymfcto generate force constants ๐งฎ--symmetryโ check the crystal symmetry ๐-t,--thermal-propertyโ output thermal properties ๐ฅ--td,--thermal-displacementsโ output thermal displacements ๐--tdm,--thermal-displacement-matrixโ output thermal displacement matrices ๐--tdm-cif,--thermal-displacement-matrix-cif TEMPERATUREโ writes a cif withaniso_Ufor whichever temperature you specify ๐ง--temperature TEMPERATUREโ (Deprecated!) a temperature used to generate random displacements โ ๏ธ--tmax TMAXโ the maximum calculated temperature ๐บ--tmin TMINโ the minimum calculated temperature ๐ป--tolerance SYMMETRY_TOLERANCEโ the symmetry tolerance used when searching ๐ฏ--trigonalโ sets the displacements of all trigonal axes ๐บโจ--tstep TSTEPโ the calculated temperature step ๐ฃ-v,--verboseโ shows you the detailed information, the whole tea โ--wien2k-p1โ assumes Wien2k structs that have displacements areP1๐งช--writefcโ writesFORCE_CONSTANTSโ๏ธ--writefc-format WRITEFC_FORMATโ the file-format your force constants get written out in ๐ก--writedmโ writes dynamical matrices. ๐จ it has to be used together with theQPOINTSsetting (or--qpoints) โ no solo runs, this one needs its plus-one ๐ฏ--xyz-projectionโ projects PDOS x, y, z directions in Cartesian coordinates ๐
and that's a wrap bestie โ that's every last flag shipped with this version, no crumbs left behind ๐ This whole manual is for phonopy 2.48.0, dated February 2026, and it lives at the top of the page as PHONOPY(1). Now go displace something, you absolute icon ๐๐ฆ๐
๐ฆ where this page comes from
- ubuntu stonking: python3-phonopy 2.48.0-1 ยท BSD-3-Clause
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms