Python API¶
Names¶
The public names live in python/cpmdc. Importing cpmdc does not import
ASE. Import cpmdc.ase for CPMDCCalculator.
Name |
Role |
|---|---|
|
Hartree to eV, the constant in |
|
Bohr to Angstrom, the constant in |
|
failure from the library or from loading it |
|
|
|
one |
|
one geometry, native units |
|
|
|
numeric ABI generation |
|
true when OpenCPMD is linked |
|
destroy the handle |
|
rgpot-shaped provider over one session |
|
eV, eV/Angstrom, optional stress |
|
|
|
close the owned session |
|
explicit path, then the three environment variables |
|
|
|
Hartree/Bohr forces to eV/Angstrom |
|
row-major Hartree/Bohr3tensor to eV/Angstrom3 |
|
ASE calculator: energy, freeenergy, forces, stress |
|
fills energy, freeenergy, forces, and stress |
|
the |
|
close that potential |
free_energy on CPMDCCalculator equals energy. A repeated geometry
returns the stored step. A null or empty input raises; it does not abort
the interpreter.