English · Español
Author: Pablo Daniel Alvarez Hernandez, Universidad Juárez Autónoma de Tabasco (UJAT)
Versions follow Semantic Versioning: before 1.0.0, a minor version may change commands or output formats, and every such change is listed in the changelog. 1.0.0 will mark a stable public interface.
CADMIA is a command-line suite for studying the reactivity and adsorption properties of
nanoclusters from quantum-chemistry outputs (ORCA and Gaussian). It reads the calculations,
derives the descriptors, prepares the next calculations and records where every number came from.
A single command, cadmia, gives access to every tool.
Main features:
- Conceptual DFT: global descriptors (I, A, η, μ, ω) by finite differences or Koopmans, and condensed Fukui functions and the dual descriptor, matching Multiwfn.
- Adsorption: starting configurations for small probe molecules on the most reactive sites, GFN2-xTB pre-screening, and adsorption energetics (ΔE, ΔH, ΔG, deformation and interaction).
- Stability: mixing and binding energies against the pure oxides, size series, isomers and Boltzmann populations.
- Structure: coordination numbers (CN, ECN), bond lengths, rings, coordination polyhedra and point-group symmetry.
- Electronic structure: DOS and PDOS, electrostatic potential on the molecular surface, IR spectra
and volumetric maps (density, Fukui, Δρ). DOS, PDOS, IR and the structural plots come as
interactive HTML or as PNG, SVG and PDF figures at one- or two-column width (
--width). - Calculations: input preparation, a local sequential queue and SLURM submission, with resumable pipelines.
- Provenance: results stored in a local SQLite database with file hash, exact command and program version.
- Bilingual help (
--helpin English,--ayudain Spanish) and a fixed-width text report of all the stages (reports/cadmia.out), with a Markdown summary and LaTeX tables on request.
Highlights only; the full detail is in CHANGELOG.md.
- One source per stage: inside a
cadmia initproject,structure report,cdft,analyzeandstabilitysave their data and full text report toresults/;cadmia reportassembles them intoreports/cadmia.out, and--report/-r FILEalone rewrites a stage's report without recomputing. - Counterpoise BSSE for ORCA:
prepare bssewrites the four Boys–Bernardi single points andanalyze --bssereads them; checked against GaussianCounterpoise=2on Al₂TiO₅ + CO₂ (1.49 vs 1.52 kcal/mol). - Spin and charge carried through:
geometrywritescharge=/mult=(O₂ is a triplet), andprescreen,rank,prepare,benchmarkandpipeline --chargekeep them. - Thermochemistry: ΔG with the σ correction and quasi-RRHO ΔG in
analyze; activation by bending for linear probes (--bend-threshold, 10° by default). - Static figures:
electronic dos|pdos|irandstructure plotwrite PNG/SVG/PDF (--format,--width single|double). The DOS is in states/eV over both spins. - Safer runs: results of different clusters are not mixed in one report, a used pipeline
folder needs
--resume, and each output is checked with its own engine.
Planned for the next version (subject to change):
- Extended XYZ:
cdft,prescreenandrankwill write.xyzfiles with the energy and its unit and per-atom values (charges, Fukui, dual, ECN), readable by viewers such as MOLE and by ASE. - Plot styles: other forms for bonds, ECN and DOS plots (bars, sticks, curves).
- Definitions per module in the guide;
cadmia.outwill point to them.
- Python 3.11 or newer.
- Outputs from ORCA 6 or Gaussian 16. ORCA is needed only to run calculations; analysis works on any machine.
- Optional:
xtb(pre-screening), SLURM (job submission) and MOLE (pip install mole-viewer, a quick viewer for sets of structures).
python -m venv ~/cadmia-env
source ~/cadmia-env/bin/activate
pip install cadmia # core, from PyPI
pip install "cadmia[full]" # optional: figures and interactive 2D plots
cadmia doctor # checks engines, dependencies and configurationFrom a clone of this repository, pip install -e ".[full]" installs the working copy instead.
runs the examples in the browser, with nothing to install.
From a clone of the repository, with the sample outputs that ship with the tests:
cadmia doctor # engines, dependencies and configuration
cadmia cdft --n tests/fixtures/1tial_cdft/N.out \
--np1 tests/fixtures/1tial_cdft/N+1.out \
--nm1 tests/fixtures/1tial_cdft/N-1.out # descriptors + ranked reactive sites
cadmia structure report tests/fixtures/1tial_orca/1tial_opt.xyz -o structure.txt # coordination, bonds, rings
cadmia guide # the full user guidecadmia --helpandcadmia <command> --help(English);--ayuda(Spanish).- User guide:
docs/usage_guide_en.txt(English) anddocs/usage_guide.txt(Spanish). - Dictionary of terms and descriptors: docs/descriptor_dictionary.md.
- Validation of the CDFT descriptors against Multiwfn: docs/cdft_vs_multiwfn.md.
- Changes between versions: CHANGELOG.md.
pip install -e ".[dev]"
pytest tests/ -qIf CADMIA is used in published work, please cite it as described in CITATION.cff. CADMIA is free software, distributed under the GNU General Public License, version 3 or (at your option) any later version (LICENSE).
CADMIA was designed, directed and scientifically validated by Pablo Daniel Álvarez Hernández. AI-based coding assistants were used to write and refactor parts of the code, the automated tests and the documentation; every change was reviewed and validated by the author. Numerical results always come from the quantum-chemistry outputs, never from a language model.
Bugs and questions: GitHub Issues.
Direct contact: Pablo Daniel Alvarez Hernandez — pablo.alvarez@padalher.com — https://padalher.com
