general-property-units
Skill174 starsChanged 6 months agoMITView on GitHub
Reference guide for energy, force, and stress units across MLIPs, DFT codes, and ASE, including conversion factors.
In this repository133 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/atomisticskills.mdcCursor rule
- .cursor/rules/use-agent-skills.mdcCursor rule
- chem-bond-dissociationSkill
- chem-conformer-searchSkill
- chem-db-mofSkill
- chem-db-qmofSkill
- chem-db-spectraSkill
- chem-dft-orca-advanced-calculationSkill
- chem-dft-orca-optimizationSkill
- chem-dft-orca-singlepointSkill
- chem-docking-voidSkill
- chem-hazard-toxicitySkill
- chem-irc-verificationSkill
- chem-msms-predictSkill
- chem-neb-barrierSkill
- chem-nmr-analysisSkill
- chem-nmr-predictSkill
- chem-react-otSkill
- chem-similarity-searchSkill
- chem-solution-mdSkill
- chem-sorption-gcmcSkill
- chem-sorption-relaxSkill
- chem-sorption-widomSkill
- chem-spectrum-matcherSkill
- chem-thermochemistrySkill
- chem-ts-optimizationSkill
- chem-vibrationSkill
- drug-admet-predictionSkill
- drug-binding-site-definitionSkill
- drug-bioactivity-assaySkill
- drug-complex-system-builderSkill
- drug-db-chemblSkill
- drug-db-pdbSkill
- drug-db-pubchemSkill
- drug-docking-analysisSkill
- drug-docking-vinaSkill
- drug-ligand-prepSkill
- drug-mmpbsa-gbsaSkill
- drug-molecular-fingerprintsSkill
- drug-pocket-detectionSkill
- drug-pose-validationSkill
- drug-protein-ligand-mdSkill
- drug-protein-prepSkill
- drug-redocking-rmsdSkill
- drug-retrosynthesisSkill
- drug-trajectory-analysisSkill
- general-arxiv-searchSkill
- general-biorxiv-searchSkill
- general-chemical-literatureSkill
- general-chemical-pricingSkill
- general-deep-researchSkill
- general-fair-data-reviewSkill
- general-patent-searchSkill
- general-peer-reviewSkill
- general-plot-digitizerSkill
- general-presentationSkill
- general-publisher-access-guardSkill
- general-query-literature-databaseSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
All internal representations follow the ASE (Atomic Simulation Environment) convention:
- Very specific: line 52
Every ratio above is exactly 160.21766208, i.e.
- Distinctive: line 153
Always: verify stress units when comparing MLIP predictions to DFT references.
- Distinctive: line 155
When reporting MAE in papers/docs, specify the unit explicitly (e.g., "Force MAE: 50 meV/Å").
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Units Reference for Atomistic Simulations
Goal
Provide a single authoritative reference for units of energy, forces, and stress across all MLIPs, DFT codes, and simulation tools used in this project, including the conversions applied internally.
Project Standard
All internal representations follow the ASE (Atomic Simulation Environment) convention:
| Quantity | Standard Unit | Notes |
| Energy | eV | Total energy of the system |
| Energy per atom | eV/atom | Used for MAE reporting and training labels |
| Forces | eV/Å | Negative gradient of energy w.r.t. position |
| Stress | eV/ų | Voigt notation, 6-component (xx, yy, zz, yz, xz, xy) |
MLIP Model Units
Prediction (Inference)
The raw torch model and the ASE calculator do not return the same stress units. Most calculators apply a unit conversion on the way out; two do not. Read the stress column for the layer you are actually calling.
Energy is eV and forces are eV/Å everywhere, at both layers. Only stress varies:
| Model (calculator class) | raw model output | ASE calculator output | conversion in the ASE layer |
MACE (MACECalculator) | eV/ų | eV/ų | none |
UMA / FairChem (FAIRChemCalculator) | eV/ų | eV/ų | none |
CHGNet standalone (CHGNetCalculator) | GPa | eV/ų | × stress_weight, default 1/160.21766208 |
CHGNet / M3GNet / TensorNet via MatGL (PESCalculator) | GPa | GPa unless asked otherwise | none by default — pass stress_unit="eV/A3" |
Measured on one compressed Si cell (xx component), 2026-08-25:
| path | raw | calculator default | calculator eV/ų |
| MACE-MP small | -0.0762876 | -0.0762876 | — |
UMA uma-s-1p1 (omat) | -0.0821809 | -0.0821810 | — |
| CHGNet standalone 0.4.2 | -13.906347 | -0.0867966 | — |
MatGL TensorNet-PES-MatPES-PBE-2025.2 | -10.780773 | -10.780773 | -0.067288 |
MatGL CHGNet-PES-MatPES-PBE-2025.2.10 | — | -15.229350 | -0.095054 |
MatGL M3GNet-PES-MatPES-2025.2 | — | -20.293510 | -0.126662 |
Every ratio above is exactly 160.21766208, i.e. GPa per eV/ų.
[!IMPORTANT]
matgl.ext.ase.PESCalculatortakesstress_unit: Literal["eV/A3", "GPa"] = "GPa", so using it as a drop-in ASE calculator gives GPa, not ASE units — it prints a runtime warning saying so. CallingPotential.forwarddirectly also returns GPa. PassPESCalculator(potential=model, stress_unit="eV/A3"), or divide by160.21766208. Mixing this up is a 160x error, not a sign error.
[!NOTE] All of the above are in the ASE sign convention: positive = tensile, compression negative. A compressed cell therefore gives negative diagonal stress at both layers. DFT codes may differ — see VASP below.
Training Input Labels
Training labels in training_data.json are stored in ASE standard units (eV, eV/Å, eV/ų). Conversions to trainer-specific units are handled automatically inside each wrapper:
| Trainer | Energy Input | Force Input | Stress Input | Internal Conversion |
| MACE | eV | eV/Å | eV/ų | None — trains in eV/ų |
| FairChem (UMA) | eV | eV/Å | eV/ų | None — trains in eV/ų |
| MatGL (CHGNet/M3GNet) | eV | eV/Å | GPa (converted) | eV/ų → GPa in _prepare_training_data |
[!IMPORTANT] MatGL is the only trainer that requires stress conversion. The conversion from eV/ų → GPa is performed automatically inside
MATGLWrapper._prepare_training_data(). Users should always provide stress labels in eV/ų.
Training Output (Saved Metrics)
Each MLIP trainer natively reports MAE in eV. All wrappers apply a ×1000 conversion to save MAE values in meV to training_history.json and plot axes in training_history.png, for human readability and consistent cross-model comparison:
| Trainer | Native Energy MAE | Native Force MAE | Native Stress MAE | Saved Unit |
| MACE | eV/atom | eV/Å | eV/ų | meV (×1000) |
| FairChem (UMA) | eV/atom | eV/Å | eV/ų | meV (×1000) |
| MatGL (CHGNet/M3GNet) | eV/atom | eV/Å | GPa → eV/ų | meV (×1000) |
The training_history.json keys and their units:
| Key | Unit |
energy_mae_train / energy_mae_val | meV/atom |
force_mae_train / force_mae_val | meV/Å |
stress_mae_train / stress_mae_val | meV/ų |
loss_train / loss_val | Dimensionless (weighted combination) |
[!NOTE] For MatGL stress: the trainer computes MAE in GPa internally. The wrapper converts back to eV/ų first, then multiplies by 1000 to get meV/ų, matching the other wrappers.
DFT Code Units
VASP
| Quantity | VASP Internal | VASP OUTCAR | Conversion to ASE Standard |
| Energy | eV | eV | None needed |
| Forces | eV/Å | eV/Å | None needed |
| Stress | kB (kilo-Bar) | kB (and GPa) | kB × 0.1 = GPa, then GPa × 0.0062415 = eV/ų |
[!NOTE] VASP stores stress internally in kB (kilo-Bar). The
vasprun.xmlparser in pymatgen returns stress in kB. The Atomate2 MCP tool applies the conversionkB → eV/ųautomatically whenconvert_units=True(default).
Sign Convention
VASP reports stress with the opposite sign to the physics and ASE convention:
- VASP: positive = compressive (pressure-like)
- ASE/Physics/MLIPs: positive = tensile
The sign flip is handled during VASP output parsing (e.g. in the atomate2 MCP tool, VASP stress is multiplied by -1 in addition to the unit conversion).
Common Conversion Factors
| From | To | Factor | ASE Code |
| GPa | eV/ų | 0.00624150913 | ase.units.GPa |
| eV/ų | GPa | 160.21766208 | 1.0 / ase.units.GPa |
| kB | GPa | 0.1 | — |
| kB | eV/ų | 0.000624150913 | 0.1 * ase.units.GPa |
| eV | kJ/mol | 96.4853 | ase.units.kJ / ase.units.mol |
| eV | kcal/mol | 23.0605 | ase.units.kcal / ase.units.mol |
| Å | Bohr | 1.8897259886 | 1.0 / ase.units.Bohr |
Quick Reference: Python Conversions
# Env: base-agent
from ase import units
# Stress conversions
stress_GPa = stress_eV_per_A3 / units.GPa # eV/ų → GPa
stress_eV_per_A3 = stress_GPa * units.GPa # GPa → eV/ų
stress_eV_per_A3 = stress_kB * 0.1 * units.GPa # kB → eV/ų
# Energy conversions
energy_kJ_per_mol = energy_eV * units.kJ / units.mol
energy_kcal_per_mol = energy_eV * units.kcal / units.molConstraints
- Never mix unit systems within a single workflow.
- Always verify stress units when comparing MLIP predictions to DFT references.
- Training data JSON files must use eV/ų for stress — wrapper-internal conversion handles the rest.
- When reporting MAE in papers/docs, specify the unit explicitly (e.g., "Force MAE: 50 meV/Å").
Author: Bowen Deng Contact: GitHub @learningmatter-mit
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

