Repository navigation
Releases
Releases · alamode-code/alamode
ALAMODE version 2.0.2 (2026-11-16)
Documentation: https://alamode-code.github.io/alamode/
Packaging release; the calculations are unchanged.
Build / packaging
- Binary wheels of the Python modules
almandanphonon PyPI for Linux (x86_64, aarch64) and macOS (arm64):pip install "alamode-python[openmpi]"(contributed by Hrushikesh Sahasrabuddhe, GitHub #338). The wheels contain neither the command-line programs and tool scripts nor the optional SuiteSparse solvers of alm. - The Python distribution is named
alamode-python(wasalamode, a name that cannot be registered on PyPI). The modules are still imported asalmandanphon. If the Python package of 2.0.0 or 2.0.1 was installed from source, runpip uninstall alamodebefore installing this version. - Boost >= 1.67 is required (
boost::sort::block_indirect_sort); the build checks and the documentation said 1.66. - The Python package requires Python >= 3.11 (was 3.9); it is built and tested with 3.11 and newer only.
- The Python build can leave out either module (
ALAMODE_PYTHON_ALM=OFF,ALAMODE_PYTHON_ANPHON=OFF). - License texts of the vendored code (
external/LICENSE_1_0.txt,external/niggli_LICENSE.txt) and of the libraries bundled in the wheels (python/LICENSES_bundled.txt). - Importing
anphonwithout Open MPI says how to install it.
ALAMODE version 2.0.1 (2026-11-15)
Documentation: https://alamode-code.github.io/alamode/
Bug-fix release. Upgrading from 2.0.0 needs no change to inputs or files.
Bug fixes
- anphon Reading
MagneticMomentsfrom an XML force-constant file with a supercell larger than the primitive cell read past the end of the array (segmentation fault, or undefined moments in the symmetry search). Each supercell atom now takes the moment of its primitive atom. HDF5 force-constant files and version 1.5.0 were not affected (GitHub #340, thanks to masato1122). - alm Inter-order rotational constraints (
ICONST = 2-4, 12-14,NORDER >= 2) had the wrong sign of the higher-order IFC terms relative to the lower-order ones, so the fitted IFCs violated the rotational invariance (Si NORDER = 3: fitting error 7.3 % -> 4.0 %). IFCs fitted with these settings should be refitted.
ALAMODE version 2.0.0 (2026-10-30)
Documentation: https://alamode-code.github.io/alamode/ (1.5 documentation under the version switcher). See the "Migrating from 1.x to 2.0" page before reusing 1.5 inputs.
ALAMODE follows Semantic Versioning from this release on: incompatible changes to input tags, file formats, or the Python API increase the major version.
Breaking changes and changed defaults
- anphon
FCSXML/FC2XMLrenamedFCSFILE/FC2FILE; the old names are rejected. - anphon
NKDandNSYMremoved (inputs with them stop);KDoptional, taken from FCSFILE. - anphon New
&kappafield:ISOTOPE,ISOFACT,KAPPA_SPEC,KAPPA_COHERENTmoved there from&analysis(rejected in&analysis);RESTART/RESTART_4PHmoved there (still accepted in&generalwith a warning). - anphon
MODE = RTArenamedMODE = kappawith theSOLVERtag;MODE = RTAaccepted with a warning. - anphon
FSTATE_Kremoved;kplaneoption removed. - anphon
ISOTOPE = 1by default (the kappa of natural Si at 300 K is about 7 % lower than withISOTOPE = 0). - anphon
TREVSYM(default 1): time-reversal symmetry in the k-point reduction; restart files of the other setting are rejected. - anphon SCPH mixing default
IMIX = 1(DIIS);IMIX = 0= 1.5 simple mixing. - anphon HDF5 restart/result files by default: PREFIX.kappa.h5, PREFIX.scph.h5, PREFIX.qha.h5;
FILE_FORMAT = textkeeps the legacy .result/.scph_dymat/.renorm_harm_dymat (deprecated); legacy files are imported once. - anphon
PRINTEVECwrites.evec.h5(was.evec.hdf5+ text.evec); text only withFILE_FORMAT = text; NEWFCS writesPREFIX_+.h5/PREFIX_-.h5. - anphon Unconverged SCPH/QHA temperatures recorded; later runs refuse them unless
ALLOW_UNCONVERGED = 1; their thermo/DOS/MSD rows are NaN unlessALLOW_UNCONVERGED = 1. - anphon
RENORM_2TO1ST/RENORM_34TO1ST/RENORM_3TO2NDreplaced bySTRAIN_COUPLING(default 7); old tags accepted with a warning, they will be removed in a later release. - anphon
COOLING_U0_INDEX/COOLING_U0_THRdeprecated and ignored;SET_INIT_STR = 3detects the high-symmetry phase with spglib. - anphon
KS_INPUTdeprecated in favour ofMODE = selfenergy. - anphon Group velocities for kappa from the velocity matrix of degenerate blocks (basis invariant), little-group symmetrization, zero Gamma translational velocities; restarting from an older kappa.h5 recomputes kappa.
- anphon
BCONNECTmatches bands by eigenvectors and frequencies (frequency only across path breaks) and applies to SCPH/QHA bands (GitHub #309). - anphon HDF5 FCS
unitattributes honoured. - anphon
&celloptional when the HDF5 FCSFILE contains the primitive cell; stricter cell checks (cell must tile the FCS supercell, handedness, skewed supercell rejected with NONANALYTIC = 2, exact BORNINFO count). - anphon
.scph_dfc2corrections are relative to the full harmonic dynamical matrix (headerDELTA_BASELINE = 1); 1.x.scph_dymatconverted for NONANALYTIC = 2/3, refused for 1. - alm
PREFIX.h5is the only default output;.xmland.fcsneedFCS_ALAMODE = 1. - alm
FCSYM_BASIS = Cartesianby default (was Lattice); XML FC2FIX/FC3FIX files keep their recorded basis; warning for imprecise input structures. - alm
FC2XML/FC3XMLrenamedFC2FIX/FC3FIX(old names warn). - alm
NAT,NKDoptional (inferred from &position / KD / STRUCTURE_FILE). - alm Displacement-pattern files in YAML by default;
FORMAT_PATTERN = oldkeeps the 1.5 format. - alm ShengBTE outputs named
PREFIX.FORCE_CONSTANTS_3RD/_4TH(wasFORCE_CONSTANT_3RD); warn when NORDER is too small. - alm Numerical
ICONST = 2-4drop nearly dependent constraint rows byTOL_CONST; algebraicICONST = 12-14withALGO_REDUCTION = 3use scale-free rank + threshold pivoting and now match 2-4. - alm Python API default
TOL_CONST = 1e-6, as in the CLI. - alm Order of rows in
/ForceConstantsindependent of round-off; FC orders without nonzero IFCs written as empty datasets. - alm/anphon/tools CODATA 2018 physical constants throughout.
- alm/anphon Stricter input validation: malformed inputs that were accepted or crashed are errors (DFSET 6 finite numbers per line, ICONST whitelist, range checks, numeric parsing,
&kpointnumbers, EMIN/EMAX honoured by DOS, KMESH_COARSE checks, extra &cutoff columns warn, only tokens starting with N mean None in &cutoff). - alm/anphon WARNING/ERROR messages word-wrapped at 90 columns.
- tools
analyze_phonons.{py,cpp}replaced byanalyzer.py(reads--h5 PREFIX.kappa.h5,--3ph PREFIX.result). - tools
makedisp_qe.pyremoved (usedisplace.py --QE). - tools
displace.py --random_normalcoord: sigma capping by nearest-neighbour distance, 4 sigma truncation, 10 cm^-1 frequency floor, fixed default seed. - docs Hosted on GitHub Pages with the Breeze theme.
New features
anphon
- Four-phonon scattering in kappa (
INCLUDE_4PH, separateKMESH_COARSE,ISMEAR_4PH,EPSILON_4PH,INTERPOLATOR,WRITE_INTERPOL,RESTART_4PH,.kl3/.kl4), factorized 4ph kernel. - Quartic IFCs can be given separately with
FC4FILE(ALAMODE XML/HDF5; convert FourPhonon files withfcconvert.py). - Beyond-RTA solvers:
SOLVER = IBTE | VBTE | DBTEwithMAX_CYCLE,MIN_CYCLE,ITER_THRESHOLD,IBTE_MIXING, isotope in-scattering (ISOTOPE_INSCATTERING), sparse collision operator, irreducible-wedge iteration, warm restart and per-temperature storage in kappa.h5. - Adaptive smearing
ISMEAR = 2withADAPTIVE_FACTOR. - Boundary scattering
LEN_BOUNDARY. MODE = selfenergywith&selfenergyfield: self-energies at arbitrary q, band paths,PREFIX.selfenergy.h5.IRREPS: Gamma-point irreps and IR/Raman activity.GRUNEISEN = 2, 3: generalized Grüneisen parameters;PREFIX.gru_kpoints.- Elastic constants (second and third order) from IFCs,
SUBLATTICE_RELAX. PRINTEVAL;DISPMODE = 2for initial displacements along normal modes.FC2_TEMPERATUREandDFC2FILE: SCPH/QHA force constants used directly by later runs; temperature-resolved kappa.h5.RELAXED_STRUCTURE = 1: run on the structure relaxed by SCPH/QHA (FC3 deformed as Phi3 + Phi4:d).BUBBLE = 1-3allowed withRELAX_STR > 0;KMESH_BUBBLE; robust QP root search forBUBBLE = 3.BUBBLE = 4: curvature of the SCP free energy (strain block, finite Q, unstable directions,PREFIX.scph_hessian*,PREFIX.scph_fe.h5),BUBBLE_HESS,V4_REAL_SPACE.FE_BUBBLE: bubble correction to the vibrational free energy withMODE = phononsandMODE = SCPH(SCPH phonons of each temperature); available without the_FE_BUBBLEbuild flag of 1.5 and documented.CV_ANHARManharmonic Cv correction.- Structural optimization:
RELAX_STR = 4(fixed-strain coordinate relaxation), Farkas-III optimizer, GDIIS safeguards on by default (GDIIS_PLAIN = 1disables them),GRADIENT_CONV_TOL,CELL_GRADIENT_CONV_TOL, bounded optimization steps. STRAINFILE: one HDF5 container for the cell-relaxation inputs; GPa units in text inputs;&reference_cell.STRAIN_FC5,STRAIN_FC5_CHANNELS: strain derivative of FC4 from FC5.INTERPOLATOR = modified-log-linear.TREVSYM(see above);TRISYMhonoured in the BTE collision operator.- Input tags and git commit echoed to stdout and to the h5 files.
VERBOSITY-controlled stage timers.
alm
- HDF5 force-constant files
PREFIX.h5withCOMPRESSION; magnetic moments saved. SUPERCELL,PRIMCELL(incl.PRIMCELL = Auto),STRUCTURE_FILE.SYMMETRIZE_STRUCTURE.LENGTH_UNIT,FORCE_UNIT,FCS_UNIT_OUTPUT.- Huang invariance
ICONST = 4, 14; algebraic rotational invarianceICONST = 12, 13, usable with enet/adaptive LASSO. STRESStag for stress-aware Huang conditions.ALGO_REDUCTION(0-4) for the constraint reduction; SuiteSparse SPQR backend.- L1 solvers
L1_SOLVER = cd | fista | admm;USE_CHOLESKY,CHUNKSIZE; MINRES and SuiteSparse KKT solvers. CV_MINALPHA_RATIO;adalassoalias;DEBIAS_OLS = 1with adaptive LASSO; parallel CV.FC4_SHENGBTEoutput.
Python
- One distribution
alamode(pip install ./python) with packagesalm(nanobind wrapper, sensing-matrix access for external regressors, FC2FIX, units, ROTAXIS, stress) andanphon(experimental:anphon.run,Result,Phonon.frequencies). almcompatible with phonopy's ALM interface.- Errors raised as Python exceptions instead of exiting.
tools
analyzer.py(replaces analyze_phonons), reads kappa.h5, modified-log-linear interpolation, |v| and mfp output.fcconvert.py: FC2/FC3 between ALAMODE, phonopy/phono3py and ShengBTE, FC4 between ALAMODE and FourPhonon;fcsinfo.py.- Strain tools
strainifc.py,elastic.py,strainfile.py. dfc2.py(HDF5 dfc2), also reading.scph.h5/.qha.h5;scph_to_qefc.pyreads state files and writes QE XML.calcpes.py(energies from IFCs, comparison with DFSET),taylor.pywith optional numba kernel.displace.py: random seed, robust random normal-coordinate sampling,--softmode-only, flexible--pes, builds the alm supercell for QE/OpenMX/LAMMPS.extract.py --vca; FORCE_CONSTANTS writer for phonopy;plotband.py/plotdos.py -o.qe2almsupports the newer QE force-constant format.
Performance
- alm Constraint reduction overhaul (coord factorization, SPQR, forward elimination + back-substitution, OpenMP), much faster for large models.
- alm Faster sensing-matrix construction, CD Gram via GEMM, standardized adaptive LASSO, normal-equation OLS weights; efficient cluster generation.
- anphon SCPH: DIIS, V4 kernel memory halved, row-distributed V4 over MPI, GEMM-based V3/V4 builders, zheevd for large cells, O(nk ns^3) forces/stress and free-energy postprocess (setup 325 -> 70 s, postprocess 373 -> 3 s per T on a clathrate).
- anphon Faster 3ph/4ph scattering rates, OpenMP over triplets/qua...
v.1.5.0
New
- Structural optimization at finite temperatures based on SCPH and QHA (see
RELAX_STRtag,&relax,&qha,&displace, and&strainfield for more details.) - New way to distribute anharmonic force constants to periodic images (
PERIODIC_IMAGE_CONV=1) is set to default. If you want to move back to the older convention, please setPERIODIC_IMAGE_CONV=0.
Fix
- Fix a bug in
IALGO=1for the SCPH mode
Improvement
NONANALYTIC=3(Ewald summation) is now compatible withMODE = SCPH- Computation of SCPH is accelerated
- More efficient and robust VASP XML parser (requires lxml)
What's Changed
- supply arguments which are used as global variables in functions in t… by @nim-hrkn in #87
- structural optimization based on SCPH and QHA. by @r-masuki in #136
- Faster mode transformation in calculating reciprocal-space IFCs. by @r-masuki in #169
- Optimized PERIODIC_IMAGE_CONV=1 by @r-masuki in #170
- Add tutorials by @r-masuki in #171
Full Changelog: v.1.4.2...v.1.5.0
ALAMODE version 1.4.2 (2022-09-28)
ALAMODE version 1.4.1 (2022-06-22)
ALAMODE version 1.4.0 (2022-06-21)
New
FC_ZERO_THRtag (alm) for solving #71STOP_CRITERIONtag (alm) for stopping the cross-validation calculation when appropriateFC3_SHENGBTEtag (alm) for saving third-order force constants for ShengBTE formatZMODEtag (anphon) for computing mode effective chargesUCORRandSHIFT_UCORRtags (anphon) for computing displacement-displacement correlation functionextract.pycan extract data from vaspout.h5 for VASP6
Changes
- Update the predefined values of atomic weights and isotope factors
- Add new lines before printing warning/error messages. #61
- Make non-analytic correction of dynamical matrix to be periodic in G
- The file suffix for phonon eigenvectors is .evec, .band.evec, or .mesh.evec depending on the input KPMODE.
scph_to_qefc.pynow accepts ibrav/=0 and .fc files containing the macroscopic field
Fixes
- Fix minor typos in the documentation pages
ALAMODE version 1.3.0 (2021-10-01)
Changes
- For OpenMX, displace.py now generates atomic positions in Cartesian coordinate instead of the fractional coordinate.
- Refactor the codes for future major release (This release does not change the user interface.)
Fixes
- Fix a few bugs in the SCP class. The stability of the phonon frequency interpolation has been improved.
- Fix other minor bugs and typos in documentation and header parts of output files.
ALAMODE version 1.2.0 (2021-04-02)
New features
- CMake installation option
FC_BASIStag (alm) for better stability of force constant symmetrizationNONCOLLINEARtag (alm) for phonon calculations with noncollinear magnetismNMAXSAVEtag (alm) that controls the maximum order of anharmonic terms to be saved in a fileLMODEL = adaptive-lasso(alm) that performs adaptive LASSOKAPPA_COHERENTtag (anphon) for computing the coherent part of thermal conductivityANIME_FRAMEStag (anphon) that controls the number of frames saved for animation outputsextract.pycan extract the dielectric tensor and Born effective charges from vasprun.xml (VASP) and ph.x outputs (Quantum ESPRESSO) by the--get bornoption.fc_virtual.cppwhich perform a virtual crystal approximation (VCA)-like interpolation of force constants
Changes
- The old tags
DFILEandFFILEare now obsolete. UseDFSETinstead. - The filename extension of
PREFIX.enet_cv is changed asPREFIX.cvset. CV_MINALPHAandCV_MAXALPHAare now set automatically (by default)- The default value of
CV_NALPHAis changed to 50 - The header part in PREFIX.evec has been modified slightly. Please be careful if you are using PREFIX.evec for further analyses.
plotband.pynow works nicely for discontinuous BZ paths.- When
BCONNECT > 0and KPMODE = 1, phonon velocities, polarization vectors, and Grüneisen parameters are also reordered before saved in files. - Support command line usage of
dfc2
Fixes
- The tetrahedron method (
ISMEAR = -1) now works correctly even when the number of momentum points along each axis is only one. (fix issue #10) - Fix an issue of MPI communicators when sending large messages (> 2^31-1).
- The parser for LAMMPS now can read *.lammps file that contains charge entries. (fix issue #13)
- Fix a bug in the
ANIMEoption
ALAMODE version 1.1.0 (2019-05-01)
New
- An interface to OpenMX code (contributed by Yuto Tanaka)
- Compressive sensing approach (
LMODEL = enet) in alm code. Many new variables related to compressive sensing are also added. See the documentation page for details. SPARSEandSPARSESOLVERtags in alm codeDOS-tag in anphon code- A python script scph_to_qe.py that converts the result of an SCPH calculation to Quantum ESPRESSO force-constant format.
Changes
- Default value of
ICONSTis changed toICONST = 11 - Python scripts now work with python3 as well as python2
- Python interface scripts are moved to tools/interface
- Default values for
MASS- andISOFACT-tags are implemented - Implement a sparse version of rref, which improves the performance of alm significantly.
- Performance improvements of anphon code.
DFILEandFFILEin alm code are now deprecated. UseDFSETinstead.&fittingfield in alm is replaced with&optimizefield.
Fix
- Fix a minor bug in calc_damping_tetrahedron. The phonon linewidths at high temperatures and the thermal conductivities were not affected by this minor error. In a very low-temperature region (< 10 K), the thermal conductivity may have been underestimated.
- Fix other minor bugs