pymdkit 1.7.7__tar.gz → 1.7.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pymdkit-1.7.7 → pymdkit-1.7.9}/CHANGELOG.md +19 -0
- {pymdkit-1.7.7/src/pymdkit.egg-info → pymdkit-1.7.9}/PKG-INFO +310 -49
- {pymdkit-1.7.7 → pymdkit-1.7.9}/README.md +308 -48
- {pymdkit-1.7.7 → pymdkit-1.7.9}/pyproject.toml +2 -1
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/__init__.py +1 -1
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_cifio.py +4 -3
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_dope_certify.py +5 -1
- pymdkit-1.7.9/src/pymdkit/commands/_dope_exact.py +209 -0
- pymdkit-1.7.9/src/pymdkit/commands/_dope_graph.py +132 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_dope_optimize.py +9 -5
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_extxyz.py +3 -1
- pymdkit-1.7.9/src/pymdkit/commands/_fileio.py +268 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_gpumd_final_structure.py +12 -5
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_gpumd_msd.py +60 -16
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_gpumd_thermo.py +18 -4
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_ionhop.py +53 -28
- pymdkit-1.7.9/src/pymdkit/commands/_msd_arrhenius.py +84 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_msd_auto.py +10 -2
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_msd_coordinates.py +31 -8
- pymdkit-1.7.9/src/pymdkit/commands/_msd_elements.py +64 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_msd_fit.py +85 -35
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_msd_io.py +17 -0
- pymdkit-1.7.9/src/pymdkit/commands/_msd_plot.py +65 -0
- pymdkit-1.7.9/src/pymdkit/commands/_msd_provenance.py +57 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_msd_reuse.py +389 -249
- pymdkit-1.7.9/src/pymdkit/commands/_msd_summary.py +207 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_precision.py +6 -1
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_pred_msd_reference.py +4 -1
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_reduction.py +17 -9
- pymdkit-1.7.9/src/pymdkit/commands/_submit.py +165 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_submit_vasp.py +30 -13
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_symmetry.py +8 -16
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_vasp_ehull.py +2 -1
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_vasp_final_structure.py +7 -2
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_vasp_nep.py +74 -5
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_vaspset.py +47 -17
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/chemsys_entry.py +12 -3
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/compute_rmsd.py +5 -6
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/convert.py +39 -21
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/dope.py +20 -16
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/ewald.py +37 -9
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/gpumd_job.py +152 -18
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/msd.py +275 -121
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/nep_rmse.py +11 -7
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/perturb.py +9 -2
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/rd.py +6 -2
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/realloc_occ.py +13 -14
- pymdkit-1.7.9/src/pymdkit/commands/submit.py +171 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/supercell.py +14 -5
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/trjconv.py +15 -6
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/vasp_job.py +9 -41
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/vasp_out.py +54 -4
- pymdkit-1.7.9/src/pymdkit/commands/zip_traj.py +289 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/pymdkit_main.py +77 -35
- {pymdkit-1.7.7 → pymdkit-1.7.9/src/pymdkit.egg-info}/PKG-INFO +310 -49
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit.egg-info/SOURCES.txt +13 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit.egg-info/requires.txt +1 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_config_logging.py +22 -1
- pymdkit-1.7.9/tests/test_dope_graph.py +78 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_dope_optimize.py +6 -3
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_gpumd_job_fixes.py +3 -3
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_gpumd_out.py +20 -1
- pymdkit-1.7.9/tests/test_incremental_batch.py +247 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_ionhop.py +15 -2
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_msd_fit.py +4 -3
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_msd_large.py +63 -1
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_msd_phase3.py +3 -3
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_msd_reuse.py +54 -10
- pymdkit-1.7.9/tests/test_msd_wrapped.py +124 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_pred_msd_time.py +8 -0
- pymdkit-1.7.9/tests/test_release179.py +286 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_submit.py +78 -1
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_v165.py +23 -2
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_v170_job_infrastructure.py +350 -350
- pymdkit-1.7.9/tests/test_vasp_nep_bec.py +192 -0
- pymdkit-1.7.9/tests/test_zip_traj.py +401 -0
- pymdkit-1.7.7/src/pymdkit/commands/_fileio.py +0 -113
- pymdkit-1.7.7/src/pymdkit/commands/_msd_provenance.py +0 -27
- pymdkit-1.7.7/src/pymdkit/commands/_submit.py +0 -91
- pymdkit-1.7.7/src/pymdkit/commands/submit.py +0 -115
- {pymdkit-1.7.7 → pymdkit-1.7.9}/LICENSE +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/MANIFEST.in +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/setup.cfg +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/_config.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/_logging.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/__init__.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_geometry.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_gpumd.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_gpumd_run.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_gpumd_status.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_lattice.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_msd_conductivity.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_msd_range.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_msd_thermo.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_msd_uncertainty.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_oxidation.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_parallel.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_pred_msd_plan.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_supercell.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/_vasp_output.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/config.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/gpumd_out.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/ionhop.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit/commands/pred_msd_time.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit.egg-info/dependency_links.txt +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit.egg-info/entry_points.txt +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/src/pymdkit.egg-info/top_level.txt +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/data/88-Li2YCl3-63-d1.cif +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_convert.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_dope_certify.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_dope_performance.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_ehull.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_lattice_symmetry.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_msd_auto.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_msd_range.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_msd_uncertainty.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_parallel.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_progress.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_realloc_occ.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_rmsd_gpu.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_rmsd_max.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_rmsd_two_folder.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_v170_vasp_consolidation.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_v172_vasp_writing.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_vasp_out.py +0 -0
- {pymdkit-1.7.7 → pymdkit-1.7.9}/tests/test_vaspset.py +0 -0
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.7.9
|
|
4
|
+
|
|
5
|
+
- Preserve existing independent batch results and append command logs away from input and output paths.
|
|
6
|
+
- Merge MSD summaries by directory and element with rollback across the public tables, provenance index and Arrhenius files. Fit diffusion and NE conductivity from compatible accumulated production-temperature observations.
|
|
7
|
+
- Prevent duplicate GPUMD submissions, preserve conflicting submission scripts, and retain VASP restart outputs and scheduler ID history.
|
|
8
|
+
- Merge new ionhop, Ewald and GPUMD SDC summary rows while preserving earlier batch records.
|
|
9
|
+
- Add element-resolved MSD, species-specific Nernst–Einstein conductivity, and headless plots.
|
|
10
|
+
- Use independent dyadic power-law fitting domains for WLS and GLS and report exclusion sensitivity.
|
|
11
|
+
- Retain positions, groups and velocities by default in GPUMD jobs and add staged pre-production handoff.
|
|
12
|
+
- Audit MSD whole-system mass-weighted COM across wrapped, unwrapped, segmented and element-resolved paths. Record the algorithm in provenance and reject explicitly incompatible reuse.
|
|
13
|
+
- Add `pmk zip-traj` for recursive or single-file Zstandard compression and restoration with byte-count, SHA-256 and frame-checksum verification.
|
|
14
|
+
- Fix negative atom counts that can stall the raw XYZ frame reader and reject nonfinite time inputs in `trjconv`. Protect explicitly named trajectory files from command-log collisions.
|
|
15
|
+
|
|
16
|
+
## 1.7.8
|
|
17
|
+
|
|
18
|
+
- Validate wrapped-only GPUMD schemas, preserve streaming MIC reconstruction and COM semantics, and record coordinate provenance and sampling diagnostics.
|
|
19
|
+
- Prune exact doping thresholds with applicable packing bounds; add exact graph reductions, verified clique constraints and LP bounds, and maximum-independent-set certification with validated witnesses.
|
|
20
|
+
- Preserve timeout status semantics, deterministic heuristic restarts, and all existing CLI defaults.
|
|
21
|
+
|
|
3
22
|
## 1.7.7
|
|
4
23
|
|
|
5
24
|
- Speed up automatic dope exchange scoring using exact incremental distances and bounded two-dimensional work arrays.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pymdkit
|
|
3
|
-
Version: 1.7.
|
|
3
|
+
Version: 1.7.9
|
|
4
4
|
Summary: A Python command-line toolkit for high-throughput atomistic workflows in AI-driven materials design.
|
|
5
5
|
Author-email: Yueda Wang <ydwang0608@ustc.edu.cn>
|
|
6
6
|
License-Expression: GPL-3.0-or-later
|
|
@@ -24,6 +24,7 @@ Requires-Dist: dpdata
|
|
|
24
24
|
Requires-Dist: matplotlib
|
|
25
25
|
Requires-Dist: umap-learn
|
|
26
26
|
Requires-Dist: tqdm
|
|
27
|
+
Requires-Dist: zstandard>=0.23
|
|
27
28
|
Provides-Extra: gpu-cuda12
|
|
28
29
|
Requires-Dist: cupy-cuda12x; extra == "gpu-cuda12"
|
|
29
30
|
Dynamic: license-file
|
|
@@ -37,7 +38,48 @@ materials design. Install `pymdkit` once and call its tools from anywhere as
|
|
|
37
38
|
Commands expose explicit, documented CLI interfaces designed for reproducible shell,
|
|
38
39
|
HPC, and AI-agent workflows, and each underlying script is still runnable on its own.
|
|
39
40
|
|
|
40
|
-
## 1.7.
|
|
41
|
+
## 1.7.9 release notes
|
|
42
|
+
|
|
43
|
+
Element-resolved MSD, species-specific NE conductivity, headless plots and
|
|
44
|
+
independent binary WLS/GLS plateau fitting are available. GPUMD jobs add PGV
|
|
45
|
+
filtering and transactional pre-production handoff. See the
|
|
46
|
+
[development report](reports/1.7.9/PYMDKIT_1.7.9_DEVELOPMENT_REPORT.md).
|
|
47
|
+
|
|
48
|
+
MSD provenance now identifies the whole-system mass-weighted COM correction.
|
|
49
|
+
`pmk zip-traj` provides verified lossless trajectory compression and
|
|
50
|
+
decompression. The project audit also fixed negative XYZ atom counts and
|
|
51
|
+
nonfinite `trjconv` time inputs. See the
|
|
52
|
+
[1.7.9 audit and compression report](reports/1.7.9/PYMDKIT_1.7.9_PROJECT_AUDIT_ZIP_TRAJ_REPORT.md).
|
|
53
|
+
|
|
54
|
+
### Batch processing and result preservation
|
|
55
|
+
|
|
56
|
+
Batch writers preserve existing independent structures, trajectories, plots and
|
|
57
|
+
calculation results by default. A job with existing files is reported explicitly.
|
|
58
|
+
`pmk msd` reuses results when their provenance verifies the inputs, outputs and
|
|
59
|
+
analysis settings. Handle incompatible or incomplete results manually before
|
|
60
|
+
retrying the affected job. Command logs append to their previous contents and
|
|
61
|
+
use a separate name when an operand occupies the default log path.
|
|
62
|
+
|
|
63
|
+
MSD merges previously published rows with newly calculated or verified rows.
|
|
64
|
+
Relative directory paths and, where applicable, element names identify records.
|
|
65
|
+
The tables sort by numeric production temperature, path and element. Failed or
|
|
66
|
+
incompatible jobs leave the previous summaries and fits in place. MSD stores
|
|
67
|
+
full-precision, provenance-backed observations in `.pmk_msd_index.json` alongside
|
|
68
|
+
the public tables. Keep this file with the summaries to use accumulated
|
|
69
|
+
observations whose calculation directories are outside future scans.
|
|
70
|
+
See the [1.7.9 incremental batch report](reports/1.7.9/PYMDKIT_1.7.9_INCREMENTAL_BATCH_ARRHENIUS_REPORT.md)
|
|
71
|
+
for command coverage and validation.
|
|
72
|
+
|
|
73
|
+
### Previous 1.7.8 improvements
|
|
74
|
+
|
|
75
|
+
Wrapped-only GPUMD trajectories now receive strict schema validation, a sampling
|
|
76
|
+
warning, and versioned coordinate provenance. Explicit unwrapped trajectories
|
|
77
|
+
retain the existing numerical analysis. Exact doping certification now filters
|
|
78
|
+
distance levels with applicable packing bounds and strengthens the graph model
|
|
79
|
+
with safe reductions, verified cliques, and corrected LP dual bounds.
|
|
80
|
+
See `reports/1.7.8/development-report.md` for measured results and limitations.
|
|
81
|
+
|
|
82
|
+
### Previous 1.7.7 improvements
|
|
41
83
|
|
|
42
84
|
- Automatic `pmk dope` uses exact incremental exchange scores and bounded 2D
|
|
43
85
|
work arrays, preserving the three ranking metrics and search budgets.
|
|
@@ -91,7 +133,7 @@ outputs. Optional threadpoolctl limits numerical threads within each worker.
|
|
|
91
133
|
## 1.7.3 release notes
|
|
92
134
|
|
|
93
135
|
- `pmk msd` analyzes GPUMD trajectories from fixed-cell NVT production. OLS is
|
|
94
|
-
the default
|
|
136
|
+
the default with a free intercept; WLS/GLS now fit a binary diffusivity plateau. Forced-origin
|
|
95
137
|
fitting has been removed from production. Changing-cell MSD is outside scope.
|
|
96
138
|
- `pmk pred-msd-time` uses validated free-intercept OLS references for
|
|
97
139
|
higher-temperature Li transport and production-time planning. The duration
|
|
@@ -113,7 +155,7 @@ pip install pymdkit
|
|
|
113
155
|
This installs the `pmk` command into the active Python or conda environment,
|
|
114
156
|
together with its direct dependencies, including ASE, pymatgen, py4vasp-core,
|
|
115
157
|
h5py,
|
|
116
|
-
dpdata, matplotlib, UMAP, and
|
|
158
|
+
dpdata, matplotlib, UMAP, tqdm, and zstandard. Some packages also install transitive
|
|
117
159
|
dependencies.
|
|
118
160
|
|
|
119
161
|
### Optional CUDA 12 GPU support
|
|
@@ -149,7 +191,7 @@ installed.
|
|
|
149
191
|
On a machine with Internet access, run:
|
|
150
192
|
|
|
151
193
|
```bash
|
|
152
|
-
python -m pip download pymdkit==1.7.
|
|
194
|
+
python -m pip download pymdkit==1.7.9 -d pymdkit-offline
|
|
153
195
|
```
|
|
154
196
|
|
|
155
197
|
This downloads `pymdkit` and the dependencies resolved by pip into the
|
|
@@ -157,14 +199,14 @@ This downloads `pymdkit` and the dependencies resolved by pip into the
|
|
|
157
199
|
system. Then, inside the target pymdkit Python or conda environment, run:
|
|
158
200
|
|
|
159
201
|
```bash
|
|
160
|
-
python -m pip install --no-index --find-links=pymdkit-offline pymdkit==1.7.
|
|
202
|
+
python -m pip install --no-index --find-links=pymdkit-offline pymdkit==1.7.9
|
|
161
203
|
```
|
|
162
204
|
|
|
163
205
|
For optional GPU use, prepare the bundle on a networked machine compatible with
|
|
164
206
|
the target HPC platform and Python environment:
|
|
165
207
|
|
|
166
208
|
```bash
|
|
167
|
-
python -m pip download "pymdkit[gpu-cuda12]==1.7.
|
|
209
|
+
python -m pip download "pymdkit[gpu-cuda12]==1.7.9" -d pymdkit-offline
|
|
168
210
|
```
|
|
169
211
|
|
|
170
212
|
Transfer the whole `pymdkit-offline` directory, then install from it on the
|
|
@@ -172,7 +214,7 @@ target system:
|
|
|
172
214
|
|
|
173
215
|
```bash
|
|
174
216
|
python -m pip install --no-index --find-links=pymdkit-offline \
|
|
175
|
-
"pymdkit[gpu-cuda12]==1.7.
|
|
217
|
+
"pymdkit[gpu-cuda12]==1.7.9"
|
|
176
218
|
```
|
|
177
219
|
|
|
178
220
|
This GPU bundle includes the optional `cupy-cuda12x` package. Its wheels must also
|
|
@@ -234,8 +276,9 @@ file. Values registered by a command as sensitive are shown as `<redacted>` in
|
|
|
234
276
|
the logged command line. The log stays in the invocation directory even when a
|
|
235
277
|
command changes the working directory or `-of` selects an output folder.
|
|
236
278
|
|
|
237
|
-
Command help (`pmk <command> -h` or `-help`)
|
|
238
|
-
|
|
279
|
+
Command help (`pmk <command> -h` or `-help`) and argument parsing errors exit
|
|
280
|
+
before loading configuration or writing an execution log. Argument parsing
|
|
281
|
+
errors are printed to stderr. Scientific result files such as `rmsd.txt`,
|
|
239
282
|
`ehull.txt`, `d2o.txt`, and quantity reports remain separate command-owned
|
|
240
283
|
artifacts; their contents are never merged into the execution log.
|
|
241
284
|
|
|
@@ -256,6 +299,7 @@ preserve occupancy, oxidation, symmetry, and Wyckoff metadata.
|
|
|
256
299
|
| `pred-msd-time` | Predict Li conductivity, diffusion and NVT production durations from GPUMD MSD |
|
|
257
300
|
| `gpumd-out` | Export GPUMD thermo/MSD results or gather final structures |
|
|
258
301
|
| `ionhop` | Count completed Li site hops and report nearest-neighbor hop frequencies from GPUMD trajectories |
|
|
302
|
+
| `msd` | Calculate atom-resolved mean squared displacement, self-diffusion, and optional Nernst–Einstein conductivity |
|
|
259
303
|
| `mp-chemsys` | Download stable Materials Project structures for a chemical system |
|
|
260
304
|
| `nep-rmse` | Compute NEP energy/force/stress RMSE and select candidates |
|
|
261
305
|
| `perturb` | Generate perturbed structures with dpdata |
|
|
@@ -267,6 +311,7 @@ preserve occupancy, oxidation, symmetry, and Wyckoff metadata.
|
|
|
267
311
|
| `trjconv` | Extract or stride trajectory frames by frame number or physical time |
|
|
268
312
|
| `vasp-job` | Create or inspect VASP jobs |
|
|
269
313
|
| `vasp-out` | Extract VASP quantities, compute E_hull, build NEP data, or gather final structures |
|
|
314
|
+
| `zip-traj` | Compress or restore trajectory bytes with a verified Zstandard frame |
|
|
270
315
|
|
|
271
316
|
## Examples
|
|
272
317
|
|
|
@@ -282,8 +327,8 @@ pmk supercell -i model.vasp -o model-sc.vasp -matrix 1x1x2
|
|
|
282
327
|
pmk supercell -if structures -of capped -max-abc 40
|
|
283
328
|
pmk supercell -if structures -of close -close-abc 50
|
|
284
329
|
|
|
285
|
-
pmk gpumd-job -if Li3YCl6-all -supercell-close-abc 50 -nep nep.txt -in run.in -temp 300 320 340 360 -group Li Y Cl -
|
|
286
|
-
pmk gpumd-job -it train.xyz -supercell-matrix 2x2x2 -nep nep.txt -group Li Y Cl -
|
|
330
|
+
pmk gpumd-job -if Li3YCl6-all -supercell-close-abc 50 -nep nep.txt -in run.in -temp 300 320 340 360 -group Li Y Cl -pgv-only no
|
|
331
|
+
pmk gpumd-job -it train.xyz -supercell-matrix 2x2x2 -nep nep.txt -group Li Y Cl -pgv-only no
|
|
287
332
|
pmk submit -gpumd
|
|
288
333
|
pmk submit -gpumd -subscript custom_gpumd.pbs -queue pbs -max-job-num 30
|
|
289
334
|
|
|
@@ -445,15 +490,31 @@ and `-in` default to `nep.txt` and `run.in` in the invocation directory. Each
|
|
|
445
490
|
job receives `model.xyz` as extxyz, the potential as `nep.txt`, and the input as
|
|
446
491
|
`run.in`; the `potential` line is synchronized to `nep.txt`. With `-temp`, PMK
|
|
447
492
|
creates `<structure>/<T>/` and replaces every `target_t` token with T.
|
|
448
|
-
`-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
493
|
+
`-pgv-only yes` is the default: retain species, positions, group (if present)
|
|
494
|
+
and velocity. ASE momenta become GPUMD `vel` in Angstrom/fs. Custom `vel`,
|
|
495
|
+
`velocity`, `velocities` arrays are interpreted as Angstrom/fs in that priority
|
|
496
|
+
order. Cell, PBC and atom order survive; unrelated properties and header metadata
|
|
497
|
+
are omitted. `-pgv-only no` uses the full-property writer. Deprecated
|
|
498
|
+
`-pos-only yes` still means positions only and emits a warning.
|
|
499
|
+
|
|
500
|
+
```bash
|
|
501
|
+
pmk gpumd-job -pre-prod ../1-pre-prod -in run.in
|
|
502
|
+
```
|
|
503
|
+
|
|
504
|
+
This mode discovers immediate numeric temperature directories (optional K suffix),
|
|
505
|
+
validates every source and destination, and copies each single-frame `dump.xyz`
|
|
506
|
+
byte-for-byte to `model.xyz` alongside `nep.txt`. Explicitly export a single desired
|
|
507
|
+
structure first if a dump has multiple frames. Active `target_t` tokens become
|
|
508
|
+
the directory temperature; comments remain intact and potential paths become
|
|
509
|
+
`nep.txt`. Missing files, duplicate temperatures, existing destinations or no
|
|
510
|
+
active placeholder fail before writing. Write failures roll back created jobs.
|
|
511
|
+
No additional structure or potential input is required. This mode conflicts with
|
|
512
|
+
structure inputs, supercell options, `-group`, `-temp`, `-msd-time`, `-status`;
|
|
513
|
+
PGV filtering does not apply to direct copies.
|
|
453
514
|
|
|
454
515
|
```bash
|
|
455
516
|
pmk gpumd-job -if opted-vasp -nep nep.txt -in run.in -temp 300 400 500 600
|
|
456
|
-
pmk gpumd-job -if opted-vasp -nep nep.txt -in run.in -temp 300 400 500 600 -
|
|
517
|
+
pmk gpumd-job -if opted-vasp -nep nep.txt -in run.in -temp 300 400 500 600 -pgv-only no
|
|
457
518
|
```
|
|
458
519
|
|
|
459
520
|
Explicit `npt_scr` pressure tokens, including zero and scientific notation, are
|
|
@@ -498,9 +559,15 @@ are saved in `.pmk-job-id`. User-facing job names are relative to the invocation
|
|
|
498
559
|
directory, and execution details are recorded in `submit.log`.
|
|
499
560
|
|
|
500
561
|
`submit -gpumd` recursively submits only folders containing `model.xyz`,
|
|
501
|
-
`run.in`, and `nep.txt`. It
|
|
502
|
-
|
|
503
|
-
|
|
562
|
+
`run.in`, and `nep.txt`. It skips directories with a valid saved scheduler ID
|
|
563
|
+
or existing GPUMD outputs. Existing submission scripts are reused when their
|
|
564
|
+
bytes match. A script conflict is reported for its directory and other jobs can
|
|
565
|
+
continue. VASP checks saved IDs against the scheduler and retains its
|
|
566
|
+
convergence-aware restart rules. A restart archives the previous job ID,
|
|
567
|
+
recognized outputs and, for relaxation, the input POSCAR and restart files
|
|
568
|
+
before updating the in-place restart inputs. `vasp-job -status` still reads
|
|
569
|
+
the current `.pmk-job-id`. An interrupted submission with uncertain scheduler
|
|
570
|
+
acceptance leaves `.pmk-submit-lock` for manual reconciliation.
|
|
504
571
|
|
|
505
572
|
### GPUMD outputs
|
|
506
573
|
|
|
@@ -517,9 +584,8 @@ pmk gpumd-out -save-fs [-entry-path DIR] [-fs-name FILENAME] (-of DIR | -output-
|
|
|
517
584
|
`pressure.txt`, `lattice-parameters.txt`, `volume.txt`, `lattice-angles.txt`,
|
|
518
585
|
and the six-panel `thermo.png`. Abnormal-fluctuation diagnostics remain in
|
|
519
586
|
console warnings and `gpumd-out.log`; the plot has no abnormal-region shading
|
|
520
|
-
or legend. Thermo mode
|
|
521
|
-
|
|
522
|
-
plot. MSD mode defaults
|
|
587
|
+
or legend. Thermo mode preserves earlier `abnormal-time.txt` files and skips
|
|
588
|
+
jobs whose thermo export paths already exist. MSD mode defaults
|
|
523
589
|
to mobile ion `Li` with charge `1`, writes
|
|
524
590
|
`sigma-sdc-summary.txt` at the entry root, and preserves each job's
|
|
525
591
|
`msd/group_*_msd.txt`, `group_*_sdc.txt`, and `group_*_results.txt`.
|
|
@@ -620,7 +686,26 @@ E-hull mode preserves Materials Project/local-reference handling, cache files,
|
|
|
620
686
|
deterministic ordering, and writes `ehull.txt`. A supplied `-mp-api-key` is
|
|
621
687
|
redacted in `vasp-out.log`. NEP-training mode preserves converged VASP
|
|
622
688
|
structures and extxyz energy/force/stress metadata; its default output is
|
|
623
|
-
`train.xyz
|
|
689
|
+
`train.xyz`. When available, Born effective charge (BEC) tensors are automatically
|
|
690
|
+
included as the per-atom extxyz property `bec:R:9`, after forces. BEC extraction
|
|
691
|
+
independently follows `vaspout.h5 > vasprun.xml > OUTCAR`, so its source may differ
|
|
692
|
+
from the structure/energy source. PMK uses py4vasp's `charge_tensors` and the
|
|
693
|
+
existing quantity-reader fallback; pymatgen versions without Vasprun BEC support
|
|
694
|
+
continue to OUTCAR. OUTCAR extraction checks complete blocks and uses the final
|
|
695
|
+
complete block if several occur.
|
|
696
|
+
|
|
697
|
+
Each `(n_atoms, 3, 3)` tensor collection is validated for atom count, shape and
|
|
698
|
+
finite values, then flattened in printed OUTCAR row order (`xx xy xz yx yy yz zx
|
|
699
|
+
zy zz`), without transposition, atom reordering or unit conversion (units of
|
|
700
|
+
elementary charge, `|e|`). Available py4vasp structure metadata is checked against
|
|
701
|
+
the final structure. Output files in one calculation directory must describe the
|
|
702
|
+
same atomic ordering. Missing or invalid BEC leaves the configuration intact,
|
|
703
|
+
with a diagnostic and no placeholder values. Mixed datasets retain independent
|
|
704
|
+
per-frame property declarations, and the summary counts frames with/without BEC.
|
|
705
|
+
`-position-only` skips BEC extraction and omits BEC together with other calculation
|
|
706
|
+
results. No additional CLI option is needed.
|
|
707
|
+
|
|
708
|
+
Final-structure
|
|
624
709
|
mode defaults to `CONTCAR`, requires an output folder, and optionally applies
|
|
625
710
|
the strict `-max-ehull` filter using `ehull.txt` by default. All modes use
|
|
626
711
|
`vasp-out.log`, separate from scientific artifacts. The standalone `ehull` and
|
|
@@ -689,7 +774,7 @@ Its default is 120 seconds for the entire certification stage; it does not chang
|
|
|
689
774
|
the heuristic budget. Certification requires the automatic `-sn/-on/-ref` mode.
|
|
690
775
|
Small enumerated spaces reuse their proof without invoking a solver. Otherwise
|
|
691
776
|
SciPy's `optimize.milp` (SciPy >= 1.9, bundled HiGHS) tests sparse conflict graphs:
|
|
692
|
-
binary x_i selects a site, sum(x_i)
|
|
777
|
+
binary x_i selects a site, maximize sum(x_i), and x_i+x_j<=1 when d_ij<t. Candidate sites
|
|
693
778
|
too close to fixed dopants are disabled; conflicting fixed pairs make t infeasible.
|
|
694
779
|
Binary search over discrete periodic distance levels finds the largest feasible
|
|
695
780
|
threshold. A validated configuration plus proof that the next level is infeasible
|
|
@@ -700,7 +785,21 @@ Conflicts use strict d<t; returned configurations must satisfy d>=t with no dist
|
|
|
700
785
|
relaxation. Binary variables are checked within 1e-6 of 0 or 1. This conservative
|
|
701
786
|
policy may require extra solves for nearly identical distances. Proofs refer to
|
|
702
787
|
the computed geometry subject to HiGHS numerical tolerances, not exact arithmetic.
|
|
703
|
-
The
|
|
788
|
+
The validated heuristic score excludes already feasible levels. The packing upper
|
|
789
|
+
bound prunes larger levels only when the shortest self-image distance exceeds the
|
|
790
|
+
bound (with conservative numerical slack); thin cells retain the unpruned search.
|
|
791
|
+
Isolated vertices are forced into a maximum independent set. Closed-neighborhood
|
|
792
|
+
domination removes a vertex only when it can be replaced without reducing the
|
|
793
|
+
maximum cardinality. Deterministic clique inequalities strengthen sparse models;
|
|
794
|
+
a verified partition into fewer than K cliques, accounting for reductions, proves
|
|
795
|
+
infeasibility. LP dual multipliers are corrected for constraint residuals before
|
|
796
|
+
using their upper bound. Otherwise SciPy MILP maximizes independent-set cardinality.
|
|
797
|
+
Validated incumbents of at least K yield exactly K witness sites; a conservative
|
|
798
|
+
dual bound below K proves infeasibility even at a time limit. An insufficient bound
|
|
799
|
+
at timeout is never a proof. Preprocessing, LP and MILP share one monotonic budget.
|
|
800
|
+
Connected component counts are reported; no crystallographic symmetry is assumed.
|
|
801
|
+
Large graphs can still exhaust the budget. No optional solver is auto-installed,
|
|
802
|
+
and `--n-jobs` controls heuristic restarts, not MILP threads or MIP starts.
|
|
704
803
|
|
|
705
804
|
`optimality-certificate.json` records input, species, site indices, seed, solver
|
|
706
805
|
and SciPy version, distance policy, per-threshold outcomes, runtime, bounds and
|
|
@@ -912,6 +1011,65 @@ Every command module still works directly, which is handy for debugging:
|
|
|
912
1011
|
```bash
|
|
913
1012
|
python src/pymdkit/commands/supercell.py -i in.cif -close-abc 20 -o sc.vasp
|
|
914
1013
|
```
|
|
1014
|
+
## Trajectory compression and decompression
|
|
1015
|
+
|
|
1016
|
+
`pmk zip-traj` archives GPUMD extended XYZ and other files as a standard
|
|
1017
|
+
Zstandard frame. It preserves every byte, including decimal precision,
|
|
1018
|
+
`Lattice`, `Properties`, `unwrapped_position`, groups, IDs, timestamps,
|
|
1019
|
+
custom fields, and line endings. It uses the Python `zstandard` package.
|
|
1020
|
+
|
|
1021
|
+
```powershell
|
|
1022
|
+
pmk zip-traj -it dump.xyz
|
|
1023
|
+
pmk zip-traj -it ./dump.xyz
|
|
1024
|
+
pmk zip-traj -it "350/dump.xyz" -level 3 -threads 4
|
|
1025
|
+
pmk zip-traj -it "350/dump.xyz.zst" -d
|
|
1026
|
+
pmk zip-traj -it "350/dump.xyz.zst" -d -o restored.xyz
|
|
1027
|
+
```
|
|
1028
|
+
|
|
1029
|
+
| Option | Meaning |
|
|
1030
|
+
|---|---|
|
|
1031
|
+
| `-it`, `-input-trajectory` | Bare filename for a recursive search, or an explicit path for one file. Defaults to `dump.xyz`. |
|
|
1032
|
+
| `-d`, `-decompress` | Restore a checksummed Zstandard frame. The default output removes the `.zst` suffix. |
|
|
1033
|
+
| `-o`, `-output` | Output path with an explicit input path. |
|
|
1034
|
+
| `-level` | Compression level from 1 through 22, default 3. |
|
|
1035
|
+
| `-threads` | Number of compression workers. The default 0 compresses synchronously. |
|
|
1036
|
+
|
|
1037
|
+
A bare filename such as `dump.xyz` searches the current directory and its
|
|
1038
|
+
subdirectories, even when the current directory contains a match. The search
|
|
1039
|
+
matches the exact, case-sensitive filename and processes matches in path
|
|
1040
|
+
order. It skips directory links and Windows junctions, linked file aliases
|
|
1041
|
+
and duplicate file identities, and directories such as `.git`, virtual
|
|
1042
|
+
environments, caches, `build` and `dist`. An explicit path such as `./dump.xyz`,
|
|
1043
|
+
`.\dump.xyz` or an absolute path selects one file.
|
|
1044
|
+
|
|
1045
|
+
Compression creates `<input>.zst` beside each input by default. An existing
|
|
1046
|
+
output is preserved and reported as `SKIPPED_EXISTING` with the message
|
|
1047
|
+
`not verified by this run`. The summary counts `Verified`, `Skipped existing`
|
|
1048
|
+
and `Failed` separately. File failures, including publication races, produce
|
|
1049
|
+
a nonzero exit status while independent inputs continue. A run with only
|
|
1050
|
+
verified and skipped-existing files exits with status 0 if the scan completed
|
|
1051
|
+
without errors. Ctrl+C stops the batch and removes the current staged output.
|
|
1052
|
+
The command records details in `zip-traj.log` or uses a numbered log when
|
|
1053
|
+
that path is shared by an input or output.
|
|
1054
|
+
|
|
1055
|
+
Compression streams raw bytes and computes the byte count and SHA-256. Before
|
|
1056
|
+
publishing the output, it streams the staged archive through decompression,
|
|
1057
|
+
checks the frame checksum, and compares both the count and SHA-256. Successful
|
|
1058
|
+
compression reports `VERIFIED`. Decompression checks the frame checksum and
|
|
1059
|
+
reports the restored SHA-256 for comparison with the compression log. It
|
|
1060
|
+
accepts one complete standard frame with a content checksum and rejects
|
|
1061
|
+
truncation, corruption and trailing data. Both operations stage output beside
|
|
1062
|
+
its destination, publish atomically when checks pass, and preserve the input.
|
|
1063
|
+
Linux filesystems must support hard links in the output directory. Use a
|
|
1064
|
+
completed trajectory and allow disk space for the staged output.
|
|
1065
|
+
|
|
1066
|
+
On Windows, the 300 K, 40 ns Li₄YI₇ trajectory compressed from 18.71 GB to
|
|
1067
|
+
8.50 GB at level 3 (54.59% saved). Compression and output synchronization took
|
|
1068
|
+
111.08 s. Streamed decompression and verification took 34.12 s. Peak process
|
|
1069
|
+
working set was 43.02 MiB. An independent stream confirmed the same byte count
|
|
1070
|
+
and SHA-256. These measurements apply to this file and machine. See the
|
|
1071
|
+
[benchmark and reproducibility details](reports/1.7.9/PYMDKIT_1.7.9_PROJECT_AUDIT_ZIP_TRAJ_REPORT.md).
|
|
1072
|
+
|
|
915
1073
|
## Atomic trajectory MSD
|
|
916
1074
|
|
|
917
1075
|
```bash
|
|
@@ -929,7 +1087,8 @@ subdirectories are searched deterministically, excluding generated `msd`, hidden
|
|
|
929
1087
|
environment and build directories. Each calculation needs `model.xyz`, `run.in`
|
|
930
1088
|
and the native full-system trajectory named by `dump_xyz`, or `dump.xyz` from
|
|
931
1089
|
legacy `dump_exyz interval velocity_flag force_flag`. Group selection uses the
|
|
932
|
-
first grouping method in `model.xyz`.
|
|
1090
|
+
first grouping method in `model.xyz`. `-group` is optional; omission selects all atoms.
|
|
1091
|
+
Missing group labels are an error only when a group is requested.
|
|
933
1092
|
|
|
934
1093
|
Both `dump_xyz interval filename properties...` and GPUMD 4.2's
|
|
935
1094
|
`dump_xyz grouping_method group_id interval filename properties...` are supported.
|
|
@@ -946,13 +1105,31 @@ This is the mean of individual atomic squared displacements, **not group-COM
|
|
|
946
1105
|
MSD**. Every frame is streamed through a native GPUMD numeric parser (other
|
|
947
1106
|
extxyz schemas retain the ASE fallback), then selected coordinates are stored
|
|
948
1107
|
in a temporary float64 memmap. All system atoms contribute to mass-weighted COM
|
|
949
|
-
displacement removal using ASE tabulated atomic masses.
|
|
1108
|
+
displacement removal using ASE tabulated atomic masses. For every frame, the
|
|
1109
|
+
correction is the sum of each atom's mass times its unwrapped displacement
|
|
1110
|
+
from the first analyzed frame, divided by the total system mass. The correction
|
|
1111
|
+
is applied once, before selecting the group or element. A trajectory segment
|
|
1112
|
+
uses its own first frame, and multi-element analysis shares the corrected
|
|
1113
|
+
coordinates. Species order, atom count,
|
|
950
1114
|
PBC flags, and group/ID columns (when present) are checked against the model.
|
|
951
1115
|
Native GPUMD full-system row ordering is required: externally sorted same-element
|
|
952
1116
|
atoms without stable IDs cannot be identified and must not be supplied.
|
|
953
1117
|
|
|
954
1118
|
For fixed triclinic cells, consistent `unwrapped_position` is preferred; otherwise
|
|
955
1119
|
ASE's general lattice minimum-image algorithm accumulates successive displacements.
|
|
1120
|
+
For example, `dump_xyz 1000 dump.xyz` followed by `pmk msd -group 0 -ne`
|
|
1121
|
+
needs no additional coordinate option. Properties are identified by declaration,
|
|
1122
|
+
including files with extra group or other fields. All atoms are reconstructed
|
|
1123
|
+
before whole-system COM correction and group selection. Reconstruction state
|
|
1124
|
+
persists across the 256-frame storage chunks; partial PBC is respected. Cells
|
|
1125
|
+
must remain constant within rtol=1e-10 and atol=1e-8 Angstrom.
|
|
1126
|
+
The maximum reconstructed step is recorded; a step exceeding 40% of the smallest
|
|
1127
|
+
periodic face spacing emits a heuristic sampling warning. It cannot detect all
|
|
1128
|
+
missed crossings, including motion by an entire cell between samples.
|
|
1129
|
+
Provenance records `unwrapped_position` or `reconstructed_from_wrapped_pos`, the
|
|
1130
|
+
`ase-mic-v1` reconstruction version, cell, and PBC. Fingerprint checks remain.
|
|
1131
|
+
Legacy explicit-unwrapped results remain reusable; legacy wrapped results lacking
|
|
1132
|
+
coordinate provenance must be moved aside and recomputed with schema validation.
|
|
956
1133
|
Wrapped output must be frequent enough to resolve each displacement uniquely;
|
|
957
1134
|
multiple unseen boundary crossings cannot be recovered from saved frames.
|
|
958
1135
|
**MSD analysis supports fixed-cell NVT production.** NPT and changing-cell
|
|
@@ -1009,13 +1186,60 @@ pmk msd -group 0 -ne --fit-window auto
|
|
|
1009
1186
|
pmk msd -group 0 -ne -fit-range 500 1200
|
|
1010
1187
|
```
|
|
1011
1188
|
|
|
1012
|
-
Optional `-fit-method wls` and `-fit-method gls`
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1189
|
+
Optional `-fit-method wls` and `-fit-method gls` use consecutive non-overlapping
|
|
1190
|
+
blocks at dyadic lags `tau_i=2**i*dt`. Errors use ddof=1 across particle-averaged
|
|
1191
|
+
block diffusivities MSD/(2*d*tau). Both fit
|
|
1192
|
+
`D_inf*(1-b*(tau/tau_ref)**(-c))`. Automatic selection uses the existing Moustafa
|
|
1193
|
+
criterion with at least four tail points, independently of the OLS window.
|
|
1194
|
+
Manual `-fit-range` maps to valid binary levels and needs at least four points.
|
|
1195
|
+
No overlapping blocks are invented. `--binary-discard-longest 3` is a configurable
|
|
1196
|
+
application default; neighboring settings are recorded as sensitivity, not a CI.
|
|
1197
|
+
Constant/no-tail data or an unidentifiable power law can legitimately fail.
|
|
1198
|
+
|
|
1199
|
+
WLS ignores off-diagonal covariance; GLS uses `R_ij=2**(-abs(i-j)/2)` with original
|
|
1200
|
+
binary indices. Cholesky whitening and condition checks use standardized
|
|
1201
|
+
correlation, without jitter, regularization or estimator fallback. Diagnostics
|
|
1202
|
+
include levels, blocks, errors, interval, residuals, reduced chi-square and
|
|
1203
|
+
tail/plateau counts. Weighted total D fits the pooled 3D curve; separately fitted
|
|
1204
|
+
axes on the same domain may be unavailable (NaN) and need not average to total D.
|
|
1205
|
+
|
|
1206
|
+
The [2024 binary covariance](https://doi.org/10.1063/5.0188081) assumes Wiener-like
|
|
1207
|
+
dynamics and the stated sampling scheme, and is not validated here for interacting
|
|
1208
|
+
ionic solids. It is separate from [Bullerjahn's 2020 all-origin/static-noise
|
|
1209
|
+
model](https://doi.org/10.1063/5.0008312). No unconditional chi-square or KS hard
|
|
1210
|
+
threshold is introduced. [MDTransport](https://doi.org/10.1021/acs.jcim.6c00558)
|
|
1211
|
+
provides additional species/beta context, without copying empirical thresholds.
|
|
1212
|
+
OLS retains its free intercept, positive-intercept model-consistency diagnostic,
|
|
1213
|
+
three-segment slopes and window sensitivity. Raw beta alone is not physical proof
|
|
1214
|
+
of anomalous diffusion. `--uncertainty covariance` remains OLS-only; binary errors
|
|
1215
|
+
are conditional local-Jacobian approximations, not validation of the regime.
|
|
1216
|
+
|
|
1217
|
+
```bash
|
|
1218
|
+
pmk msd -element Li -ne Li
|
|
1219
|
+
pmk msd -element all -ne Li
|
|
1220
|
+
pmk msd -group 0 -element all -ne Li
|
|
1221
|
+
pmk msd -element Li -ne Li -fit-method gls --binary-discard-longest 3
|
|
1222
|
+
```
|
|
1223
|
+
|
|
1224
|
+
`-element all` (default) analyzes each chemical element independently; symbols
|
|
1225
|
+
are case-normalized. Invalid/absent elements and `-element Li -ne Na` fail.
|
|
1226
|
+
Whole-system ASE-mass COM correction happens once before species selection.
|
|
1227
|
+
Single-element results keep the flat `msd/` layout. Multiple elements use
|
|
1228
|
+
`msd/elements/<Element>/`, each with raw MSD, diagnostics and its own fit interval.
|
|
1229
|
+
Rejected non-NE species retain raw data with unavailable D without blocking valid
|
|
1230
|
+
NE output. Only the requested species contributes its D and count to conductivity.
|
|
1231
|
+
Root `sigma.txt` and `sigma-total.txt` describe that species. Element summaries
|
|
1232
|
+
are `self-diff-by-element.txt`, `self-diff-by-element-total.txt`, and
|
|
1233
|
+
`msd-quality-by-element-total.txt`. Single-species numeric columns are unchanged.
|
|
1234
|
+
Aggregate publication and Arrhenius output share one rollback transaction.
|
|
1235
|
+
Completed compatible runs can be reused, including rejected non-NE diagnostics.
|
|
1236
|
+
Changed inputs/settings require moving existing results aside before recalculation.
|
|
1237
|
+
|
|
1238
|
+
Every saved `msd.txt` is read back for a 300 dpi `msd.tif` using Matplotlib Agg. Positive
|
|
1239
|
+
time/MSD values appear on log-log axes with x/y/z/total curves and the actual
|
|
1240
|
+
method's fitting interval, element, method, D, beta and quality. Rejected candidates
|
|
1241
|
+
are labeled. Plot failures emit a separate warning and retain raw MSD. Figures
|
|
1242
|
+
are closed after saving.
|
|
1019
1243
|
|
|
1020
1244
|
`-trajectory-range START END` selects a separate saved-trajectory subset in ns,
|
|
1021
1245
|
using the half-open interval `[START, END)` relative to the first original
|
|
@@ -1074,10 +1298,14 @@ request. Temporary coordinate storage is removed when the calculation ends.
|
|
|
1074
1298
|
|
|
1075
1299
|
When the result directory is absent, `pmk msd` calculates it. When a compatible
|
|
1076
1300
|
result already exists, the command reuses its full-precision coefficients and
|
|
1077
|
-
quality without reading trajectory coordinates
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1301
|
+
quality without reading trajectory coordinates. It checks version-1 provenance,
|
|
1302
|
+
input and output sizes and modification times, grouping method 0, atom counts,
|
|
1303
|
+
run cadence, fit settings, selected window, and diagnostic and coefficient
|
|
1304
|
+
totals. New single and multi-element results record `whole-system mass-weighted COM`
|
|
1305
|
+
with algorithm version `1`. Explicitly different methods or versions invalidate
|
|
1306
|
+
reuse. Earlier results using the same COM retain the existing legacy checks.
|
|
1307
|
+
A missing `msd.tif` is regenerated from validated `msd.txt` and its
|
|
1308
|
+
plot fingerprint is recorded in provenance. With `-ne` it also checks the
|
|
1081
1309
|
charge and thermodynamic inputs and recomputes the stored conductivity from
|
|
1082
1310
|
full-precision D, temperature, volume, and ion count. Primary 1.7.4 results
|
|
1083
1311
|
can be reused when diagnostics establish compatibility, including the effective
|
|
@@ -1157,8 +1385,8 @@ original inputs/results before and after, regenerates missing diagnostics,
|
|
|
1157
1385
|
reads the original trajectory and removes temporary coordinates. Normal tests
|
|
1158
1386
|
do not require this external dataset.
|
|
1159
1387
|
|
|
1160
|
-
After every directory is calculated or validated for reuse,
|
|
1161
|
-
with `-ne`, `sigma-total.txt` summarize directory, temperature (K), and the
|
|
1388
|
+
After every directory is calculated or validated for reuse, single-element
|
|
1389
|
+
`self-diff-total.txt` and, with `-ne`, `sigma-total.txt` summarize directory, temperature (K), and the
|
|
1162
1390
|
isotropic total D (cm²/s, `%.2e`) or conductivity (mS/cm, `%.2f`). Rows use
|
|
1163
1391
|
relative paths and sort by numeric temperature, then path. Summaries use internal
|
|
1164
1392
|
unrounded totals. NE uses measured mean production temperature; without NE a
|
|
@@ -1166,19 +1394,50 @@ single stationary production NVT target is required (ramps, multiple targets and
|
|
|
1166
1394
|
missing NVT targets produce an explicit error). Calculation or validation
|
|
1167
1395
|
failures return nonzero and preserve previous summaries. Unresolved templates
|
|
1168
1396
|
are skipped. A successful run without `-ne` can reuse diffusion from a
|
|
1169
|
-
compatible previous NE result and
|
|
1397
|
+
compatible previous NE result and retains any existing conductivity summary and fit.
|
|
1170
1398
|
Range runs reuse only the matching segment result and publish totals under
|
|
1171
1399
|
`root/msd/segments/START-ENDns/`, separately from full-trajectory root summaries.
|
|
1172
1400
|
The companion `msd-quality-total.txt` retains each directory's PASS/WARNING
|
|
1173
1401
|
status. In NE mode, a directory whose valid coefficients were retained despite
|
|
1174
1402
|
fit-quality rejection appears as WARNING and contributes to both numeric
|
|
1175
|
-
summaries.
|
|
1176
|
-
|
|
1403
|
+
summaries. A single-element rejection without `-ne` prevents publication of new
|
|
1404
|
+
aggregates. Multi-element aggregates identify rejected non-NE elements individually.
|
|
1405
|
+
|
|
1406
|
+
### Multi-temperature Arrhenius analysis
|
|
1407
|
+
|
|
1408
|
+
MSD writes `arrhenius-diff.txt` in the analysis root. With `-ne` it also writes
|
|
1409
|
+
`arrhenius-sigma.txt` for the selected mobile element. Multi-element diffusion
|
|
1410
|
+
fits are written under `arrhenius/<Element>/arrhenius-diff.txt`. Trajectory-range
|
|
1411
|
+
fits are stored alongside the corresponding range summaries.
|
|
1412
|
+
|
|
1413
|
+
The free-intercept OLS model uses `x = 1000/T` and `y = b + m*x`. It fits
|
|
1414
|
+
`ln(D)` for diffusion and `ln(sigma*T)` for conductivity. The prefactors are
|
|
1415
|
+
`D0 = exp(b)` in cm²/s and `A_sigma = exp(b)` in mS·K/cm, respectively. Each fit
|
|
1416
|
+
uses `Ea = -1000*m*k_B` in eV with `k_B = 8.617333262145e-5 eV/K`.
|
|
1417
|
+
`R² = 1 - sum((y - y_fit)^2) / sum((y - mean(y))^2)` is reported as `N/A`
|
|
1418
|
+
for a constant response.
|
|
1419
|
+
|
|
1420
|
+
Each eligible directory contributes one independent observation, including
|
|
1421
|
+
`500/`, `500-2/` and `500-3/` at the same temperature. Output rows sort by
|
|
1422
|
+
increasing `1000/T` and then by directory. The fit requires three distinct
|
|
1423
|
+
finite positive production temperatures with finite positive coefficients.
|
|
1424
|
+
The file lists included and excluded observations, the number of WARNING
|
|
1425
|
+
observations, the temperature range, total observations `N`, and distinct
|
|
1426
|
+
temperatures `N_T`. Insufficient data produces `N/A` parameters and
|
|
1427
|
+
`FIT_STATUS=INSUFFICIENT_DATA` while preserving any earlier valid fit.
|
|
1428
|
+
Material and analysis compatibility uses fingerprints of the starting model
|
|
1429
|
+
and available `nep.txt` along with group, element, charge and fitting settings.
|
|
1430
|
+
Historical rows without verified compatibility stay in the public summaries
|
|
1431
|
+
and are reported as excluded from the fit. The exact starting-model fingerprint
|
|
1432
|
+
can exclude simulations initialized with separately generated models.
|
|
1433
|
+
In a multi-element run, `sigma-total.txt` adds an `Element` column after the
|
|
1434
|
+
existing numeric columns so the conductivity species is explicit.
|
|
1177
1435
|
See [the automatic-fit report](devtools/MSD_AUTO_FIT_REPORT.md) for validation,
|
|
1178
1436
|
and [the intercept/stability update](devtools/MSD_AUTO_FIT_PHASE4A1_REPORT.md)
|
|
1179
1437
|
for the current policy, 500 K MSD comparison and limitations.
|
|
1180
1438
|
|
|
1181
|
-
`-ne` requires
|
|
1439
|
+
`-ne ELEMENT` requires that element in the selection and `thermo.out`.
|
|
1440
|
+
Bare `-ne` infers the element only for a single-element selection. The default
|
|
1182
1441
|
`-charge 1.0` is an explicit +1 formal-charge assumption, not inferred oxidation
|
|
1183
1442
|
state; negative charges are accepted and the sign cancels. The log records charge,
|
|
1184
1443
|
measured and target temperature, volume and fit diagnostics. Thermodynamic rows
|
|
@@ -1216,9 +1475,11 @@ directories, rejects duplicate integer temperatures, and processes complete
|
|
|
1216
1475
|
directories in numeric order. Use a plain prefix such as `LiYI7` to write
|
|
1217
1476
|
`LiYI7_300K_sites.csv`, `LiYI7_300K_jumps.csv`, and
|
|
1218
1477
|
`LiYI7_300K_summary.json` inside `300/`. After every trajectory succeeds it
|
|
1219
|
-
atomically
|
|
1220
|
-
and one temperature and frequency per row. Existing
|
|
1221
|
-
|
|
1478
|
+
atomically merges root `hop_freq.txt`, with header `Temp(K) Hop_freq(s-1)`
|
|
1479
|
+
and one temperature and frequency per row. Existing per-temperature files are
|
|
1480
|
+
skipped by default while new temperatures are processed. The existing
|
|
1481
|
+
`-overwrite` option explicitly replaces per-temperature outputs. A failed
|
|
1482
|
+
batch retains the prior table and any independently published results.
|
|
1222
1483
|
|
|
1223
1484
|
| Option | Default | Meaning |
|
|
1224
1485
|
|---|---|---|
|