diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index db3bbc88f..3f2457c37 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -38,6 +38,50 @@ jobs:
echo "PLUMED_KERNEL=${{ steps.plumed.outputs.plumed_prefix }}/lib/libplumedKernel.so" >> $GITHUB_ENV
fi
+ - name: Install TDEP build dependencies
+ id: tdep-deps
+ continue-on-error: true
+ timeout-minutes: 10
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y \
+ gfortran \
+ libblas-dev \
+ liblapack-dev \
+ libhdf5-dev \
+ libhdf5-serial-dev \
+ libhdf5-openmpi-dev \
+ openmpi-bin \
+ libopenmpi-dev \
+ libfftw3-dev \
+ libscalapack-openmpi-dev
+
+ - name: Build TDEP
+ id: tdep
+ if: steps.tdep-deps.outcome == 'success'
+ continue-on-error: true
+ timeout-minutes: 15
+ env:
+ # Pinned, as tests/test_tdep.py checks reference values from this commit
+ TDEP_COMMIT: 6ccdf13ced49aa067a92f9c9b03a2a202bc361b5
+ working-directory: ${{ runner.temp }}
+ run: |
+ # Clone outside the workspace, so pytest does not collect TDEP's own tests
+ git clone --revision="$TDEP_COMMIT" --depth=1 https://github.com/tdep-developers/tdep.git
+ cd tdep
+ # Production (-O3) settings from TDEP's own CI
+ cp .github/important_settings.x86_64 important_settings
+ bash build_things.sh --nthreads_make 4
+ test -x bin/extract_forceconstants && test -x bin/phonon_dispersion_relations
+
+ - name: Add TDEP to PATH based on build success
+ run: |
+ if [ "${{ steps.tdep.outcome }}" = "success" ]; then
+ echo "$RUNNER_TEMP/tdep/bin" >> $GITHUB_PATH
+ else
+ echo "::warning title=TDEP not installed::TDEP tests will be skipped"
+ fi
+
- name: Download extra models
run: |
python3 tests/models/extra_models.py tests/models/extra
diff --git a/.github/workflows/publish-on-pypi.yml b/.github/workflows/publish-on-pypi.yml
index a6a912354..9c6b3c47e 100644
--- a/.github/workflows/publish-on-pypi.yml
+++ b/.github/workflows/publish-on-pypi.yml
@@ -35,6 +35,49 @@ jobs:
- name: Install dependencies
run: uv sync --extra mace --extra orb --extra chgnet
+ - name: Install TDEP build dependencies
+ id: tdep-deps
+ continue-on-error: true
+ timeout-minutes: 10
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y \
+ gfortran \
+ libblas-dev \
+ liblapack-dev \
+ libhdf5-dev \
+ libhdf5-serial-dev \
+ libhdf5-openmpi-dev \
+ openmpi-bin \
+ libopenmpi-dev \
+ libfftw3-dev \
+ libscalapack-openmpi-dev
+
+ - name: Build TDEP
+ id: tdep
+ if: steps.tdep-deps.outcome == 'success'
+ continue-on-error: true
+ timeout-minutes: 15
+ env:
+ # The same commit as in ci.yml
+ TDEP_COMMIT: 6ccdf13ced49aa067a92f9c9b03a2a202bc361b5
+ working-directory: ${{ runner.temp }}
+ run: |
+ git clone --revision="$TDEP_COMMIT" --depth=1 https://github.com/tdep-developers/tdep.git
+ cd tdep
+ # Production (-O3) settings from TDEP's own CI
+ cp .github/important_settings.x86_64 important_settings
+ bash build_things.sh --nthreads_make 4
+ test -x bin/extract_forceconstants && test -x bin/phonon_dispersion_relations
+
+ - name: Add TDEP to PATH based on build success
+ run: |
+ if [ "${{ steps.tdep.outcome }}" = "success" ]; then
+ echo "$RUNNER_TEMP/tdep/bin" >> $GITHUB_PATH
+ else
+ echo "::warning title=TDEP not installed::TDEP steps in the tutorials will be skipped"
+ fi
+
- name: Build docs with tutorials
run: cd docs && uv run make all
diff --git a/README.md b/README.md
index 0293a608c..a4bdc922f 100644
--- a/README.md
+++ b/README.md
@@ -96,6 +96,7 @@ Current and planned features include:
- [x] Nudged Elastic Band
- [x] Phonons
- Phonopy
+ - Temperature Dependent Effective Potentials (TDEP) input generation
- [x] Equation of State
- [x] Training ML potentials
- MACE
diff --git a/docs/source/apidoc/janus_core.rst b/docs/source/apidoc/janus_core.rst
index 506f31fb3..afc43375a 100644
--- a/docs/source/apidoc/janus_core.rst
+++ b/docs/source/apidoc/janus_core.rst
@@ -332,6 +332,16 @@ janus\_core.processing.post\_process module
:undoc-members:
:show-inheritance:
+janus\_core.processing.tdep module
+----------------------------------
+
+.. automodule:: janus_core.processing.tdep
+ :members:
+ :special-members:
+ :private-members:
+ :undoc-members:
+ :show-inheritance:
+
janus\_core.processing.symmetry module
--------------------------------------
diff --git a/docs/source/developer_guide/get_started.rst b/docs/source/developer_guide/get_started.rst
index c098e04a4..264d0b632 100644
--- a/docs/source/developer_guide/get_started.rst
+++ b/docs/source/developer_guide/get_started.rst
@@ -164,6 +164,13 @@ These are tested before ``janus-core`` is published to PyPI, but can be tested l
cd docs
make clean; make tutorials
+The anharmonic phonons tutorials also run `TDEP `_,
+which is not a Python package and must be built separately, as described in
+:doc:`Installation `.
+If TDEP's programs are not found on ``PATH``, the TDEP steps in these notebooks are skipped,
+so the other cells still run but TDEP's results are not shown.
+The PyPI release workflow builds TDEP before running the tutorials.
+
Continuous integration
++++++++++++++++++++++
diff --git a/docs/source/examples/full/nvt-csvr.yml b/docs/source/examples/full/nvt-csvr.yml
index d5e6e0ffe..58277e0b2 100644
--- a/docs/source/examples/full/nvt-csvr.yml
+++ b/docs/source/examples/full/nvt-csvr.yml
@@ -13,6 +13,7 @@ equil_steps: 100
minimize: True
minimize_every: 50
minimize_kwargs:
+ filter_class: null # keep the cell fixed, as required by tdep_compute
opt_kwargs:
maxstep: 0.1
rescale_velocities: True
@@ -21,6 +22,11 @@ rescale_every: 50
post_process_kwargs:
rdf_compute: True
+ tdep_compute: True
+ tdep_unit_cell_file: "tests/data/NaCl-primitive.extxyz"
+ tdep_supercell_file: "tests/data/NaCl.cif"
+ tdep_output_dir: "nvt-csvr-tdep-inputs"
+
correlation_kwargs:
vaf:
a: Velocity
@@ -51,7 +57,7 @@ stats_file: nvt-csvr-stats.dat
stats_every: 100
traj_file: nvt-csvr-traj.extxyz
traj_append: False
-traj_start: 10
+traj_start: 100 # save frames only after the 90-step heating ramp
traj_every: 100
file_prefix: NaCl
diff --git a/docs/source/examples/full/nvt-nh.yml b/docs/source/examples/full/nvt-nh.yml
index 6c82d6f19..73f594113 100644
--- a/docs/source/examples/full/nvt-nh.yml
+++ b/docs/source/examples/full/nvt-nh.yml
@@ -20,6 +20,11 @@ rescale_every: 50
post_process_kwargs:
rdf_compute: True
+ tdep_compute: True
+ tdep_unit_cell_file: "tests/data/NaCl-primitive.extxyz"
+ tdep_supercell_file: "tests/data/NaCl.cif"
+ tdep_output_dir: "nvt-nh-tdep-inputs"
+
correlation_kwargs:
vaf:
a: Velocity
@@ -52,7 +57,7 @@ stats_file: nvt-nh-stats.dat
stats_every: 100
traj_file: nvt-nh-traj.extxyz
traj_append: False
-traj_start: 10
+traj_start: 100 # save frames only after the 90-step heating ramp
traj_every: 100
file_prefix: NaCl
diff --git a/docs/source/examples/full/nvt.yml b/docs/source/examples/full/nvt.yml
index 114ef9149..76e718cca 100644
--- a/docs/source/examples/full/nvt.yml
+++ b/docs/source/examples/full/nvt.yml
@@ -13,6 +13,7 @@ equil_steps: 100
minimize: True
minimize_every: 50
minimize_kwargs:
+ filter_class: null # keep the cell fixed, as required by tdep_compute
opt_kwargs:
maxstep: 0.1
rescale_velocities: True
@@ -21,6 +22,11 @@ rescale_every: 50
post_process_kwargs:
rdf_compute: True
+ tdep_compute: True
+ tdep_unit_cell_file: "tests/data/NaCl-primitive.extxyz"
+ tdep_supercell_file: "tests/data/NaCl.cif"
+ tdep_output_dir: "nvt-tdep-inputs"
+
correlation_kwargs:
vaf:
a: Velocity
@@ -53,7 +59,7 @@ stats_file: nvt-stats.dat
stats_every: 100
traj_file: nvt-traj.extxyz
traj_append: False
-traj_start: 10
+traj_start: 100 # save frames only after the 90-step heating ramp
traj_every: 100
file_prefix: NaCl
diff --git a/docs/source/tutorials/cli/anharmonic_phonons.ipynb b/docs/source/tutorials/cli/anharmonic_phonons.ipynb
new file mode 100644
index 000000000..ff44bb80b
--- /dev/null
+++ b/docs/source/tutorials/cli/anharmonic_phonons.ipynb
@@ -0,0 +1,226 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "id": "tdep-cli-00",
+ "metadata": {},
+ "source": [
+ "[](https://colab.research.google.com/github/stfc/janus-core/blob/main/docs/source/tutorials/cli/anharmonic_phonons.ipynb)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "tdep-cli-01",
+ "metadata": {},
+ "source": [
+ "# Anharmonic Phonons with TDEP"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "tdep-cli-02",
+ "metadata": {},
+ "source": [
+ "`janus md` can write input files for [TDEP](https://tdep-developers.github.io/tdep/) after NVT molecular dynamics. TDEP then fits force constants to the sampled structures, including the effects of anharmonicity at the simulated temperature.\n",
+ "\n",
+ "**Note:** `janus-core` only writes the input files for TDEP. To run TDEP, it must be [installed separately](https://stfc.github.io/janus-core/user_guide/installation.html#tdep), with its programs on `PATH`. Otherwise, the TDEP steps below are skipped."
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "tdep-cli-03",
+ "metadata": {},
+ "source": [
+ "## Set up environment (optional)\n",
+ "\n",
+ "These steps are required to run this tutorial with Google Colab. To do so, uncomment and run the cell below.\n",
+ "\n",
+ "These instructions but may work for other systems too, but it is typically preferable to prepare a virtual environment separately before running this notebook if possible."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "tdep-cli-04",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "# ! uv pip install janus-core[mace] --system # Install janus-core with MACE"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "tdep-cli-05",
+ "metadata": {},
+ "source": [
+ "To ensure you have the latest version of `janus-core` installed, compare the output of the following cell to the latest version available at https://pypi.org/project/janus-core/"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "tdep-cli-06",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "from janus_core import __version__\n",
+ "\n",
+ "print(__version__)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "tdep-cli-07",
+ "metadata": {},
+ "source": [
+ "## Prepare structures\n",
+ "\n",
+ "We write the two-atom primitive cell of NaCl, used as TDEP's unit cell, and the 64-atom cubic cell, used as the MD structure and TDEP's supercell. extxyz files keep the orientation of the cell, unlike CIF."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "tdep-cli-08",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "from ase.build import bulk\n",
+ "from ase.io import write\n",
+ "\n",
+ "unit_cell = bulk(\"NaCl\", \"rocksalt\", a=5.64)\n",
+ "supercell = bulk(\"NaCl\", \"rocksalt\", a=5.64, cubic=True) * (2, 2, 2)\n",
+ "\n",
+ "write(\"NaCl-primitive.extxyz\", unit_cell)\n",
+ "write(\"NaCl-supercell.extxyz\", supercell)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "tdep-cli-09",
+ "metadata": {},
+ "source": [
+ "## Run MD and write the TDEP inputs\n",
+ "\n",
+ "TDEP inputs are requested through `post_process_kwargs`. Frames are saved from step 500, after equilibration, and every saved frame must have statistics from the same step, so `traj_every` must be a multiple of `stats_every`:"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "tdep-cli-10",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "%%writefile config-nvt-tdep.yml\n",
+ "\n",
+ "ensemble: nvt\n",
+ "struct: NaCl-supercell.extxyz\n",
+ "arch: mace_mp\n",
+ "model: small\n",
+ "\n",
+ "temp: 300\n",
+ "steps: 1000\n",
+ "\n",
+ "traj_start: 500\n",
+ "traj_every: 50\n",
+ "stats_every: 50\n",
+ "\n",
+ "post_process_kwargs:\n",
+ " tdep_compute: True\n",
+ " tdep_unit_cell_file: NaCl-primitive.extxyz\n",
+ " tdep_supercell_file: NaCl-supercell.extxyz\n",
+ " tdep_output_dir: janus_results/tdep-inputs\n",
+ "\n",
+ "tracker: False"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "tdep-cli-11",
+ "metadata": {},
+ "source": [
+ "These settings, and others required by TDEP, such as using an NVT ensemble, are checked before the MD starts:"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "tdep-cli-12",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "! janus md --config config-nvt-tdep.yml"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "tdep-cli-13",
+ "metadata": {},
+ "source": [
+ "After the MD, the TDEP input files are in `janus_results/tdep-inputs`:"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "tdep-cli-14",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "! ls janus_results/tdep-inputs"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "tdep-cli-15",
+ "metadata": {},
+ "source": [
+ "## Run TDEP\n",
+ "\n",
+ "If TDEP is installed, we can fit the second-order force constants and compute the phonon dispersion, which is written to `outfile.dispersion_relations`. See the [Python tutorial](../python/anharmonic_phonons.ipynb) for how to plot it."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "tdep-cli-16",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "%%bash\n",
+ "if ! command -v extract_forceconstants > /dev/null; then\n",
+ " echo \"TDEP was not found on PATH, so it was not run\"\n",
+ " exit 0\n",
+ "fi\n",
+ "\n",
+ "cd janus_results/tdep-inputs\n",
+ "extract_forceconstants -rc2 5 > extract_forceconstants.log\n",
+ "cp outfile.forceconstant infile.forceconstant\n",
+ "phonon_dispersion_relations > phonon_dispersion_relations.log\n",
+ "ls outfile.dispersion_relations*"
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "janus-core",
+ "language": "python",
+ "name": "python3"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 3
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython3",
+ "version": "3.12.13"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 5
+}
diff --git a/docs/source/tutorials/cli/index.rst b/docs/source/tutorials/cli/index.rst
index 7d37c3a50..26afea3b9 100644
--- a/docs/source/tutorials/cli/index.rst
+++ b/docs/source/tutorials/cli/index.rst
@@ -12,3 +12,4 @@ Command-line Tutorials
phonons
neb
elasticity
+ anharmonic_phonons
diff --git a/docs/source/tutorials/python/anharmonic_phonons.ipynb b/docs/source/tutorials/python/anharmonic_phonons.ipynb
new file mode 100644
index 000000000..e8547fad8
--- /dev/null
+++ b/docs/source/tutorials/python/anharmonic_phonons.ipynb
@@ -0,0 +1,301 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "id": "tdep-python-00",
+ "metadata": {},
+ "source": [
+ "[](https://colab.research.google.com/github/stfc/janus-core/blob/main/docs/source/tutorials/python/anharmonic_phonons.ipynb)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "tdep-python-01",
+ "metadata": {},
+ "source": [
+ "# Anharmonic Phonons with TDEP"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "tdep-python-02",
+ "metadata": {},
+ "source": [
+ "## Set up environment (optional)\n",
+ "\n",
+ "These steps are required to run this tutorial with Google Colab. To do so, uncomment and run the cell below.\n",
+ "\n",
+ "These instructions but may work for other systems too, but it is typically preferable to prepare a virtual environment separately before running this notebook if possible."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "tdep-python-03",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "# ! uv pip install janus-core[mace] --system # Install janus-core with MACE"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "tdep-python-04",
+ "metadata": {},
+ "source": [
+ "To ensure you have the latest version of `janus-core` installed, compare the output of the following cell to the latest version available at https://pypi.org/project/janus-core/"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "tdep-python-05",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "from janus_core import __version__\n",
+ "\n",
+ "print(__version__)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "tdep-python-06",
+ "metadata": {},
+ "source": [
+ "## Introduction\n",
+ "\n",
+ "This tutorial runs NVT molecular dynamics with `janus-core`, which writes input files for [TDEP](https://tdep-developers.github.io/tdep/) after the MD. TDEP then fits force constants to the sampled structures, including the effects of anharmonicity at the simulated temperature, and computes the phonon dispersion.\n",
+ "\n",
+ "**Note:** `janus-core` only writes the input files for TDEP. To run TDEP, it must be [installed separately](https://stfc.github.io/janus-core/user_guide/installation.html#tdep), with its programs on `PATH`. Otherwise, the TDEP steps below are skipped."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "tdep-python-07",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "from pathlib import Path\n",
+ "import shutil\n",
+ "import subprocess\n",
+ "\n",
+ "from ase.build import bulk\n",
+ "from ase.io import write\n",
+ "import h5py\n",
+ "import matplotlib.pyplot as plt\n",
+ "\n",
+ "from janus_core.calculations.md import NVT"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "tdep-python-08",
+ "metadata": {},
+ "source": [
+ "## Build the unit cell and supercell\n",
+ "\n",
+ "The unit cell is written to TDEP's `infile.ucposcar`, and the supercell to `infile.ssposcar`. The MD is run on the supercell, which must be a supercell of the unit cell.\n",
+ "\n",
+ "Here we use the two-atom primitive cell of rocksalt NaCl as the unit cell, and the 64-atom cubic cell as the supercell. The files are written as extxyz, which keeps the orientation of the cell, unlike CIF.\n",
+ "\n",
+ "For production calculations, the lattice parameter should correspond to the temperature of interest for the chosen MLIP, for example from NPT MD."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "tdep-python-09",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "unit_cell = bulk(\"NaCl\", \"rocksalt\", a=5.64)\n",
+ "supercell = bulk(\"NaCl\", \"rocksalt\", a=5.64, cubic=True) * (2, 2, 2)\n",
+ "\n",
+ "write(\"NaCl-primitive.extxyz\", unit_cell)\n",
+ "write(\"NaCl-supercell.extxyz\", supercell)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "tdep-python-10",
+ "metadata": {},
+ "source": [
+ "## Run NVT MD and write the TDEP inputs\n",
+ "\n",
+ "TDEP input files are written after the MD when `tdep_compute` is set in `post_process_kwargs`, along with the unit cell and supercell files.\n",
+ "\n",
+ "The first 500 steps equilibrate the system, so frames are only saved from `traj_start=500`. Each saved frame is paired with the statistics from the same step, so `traj_every` must be a multiple of `stats_every`.\n",
+ "\n",
+ "These settings, and others required by TDEP, such as using an NVT ensemble, are checked before the MD starts. After the MD, these files are written to `janus_results/tdep-inputs`:\n",
+ "\n",
+ "- `infile.ucposcar`\n",
+ "- `infile.ssposcar`\n",
+ "- `infile.positions`\n",
+ "- `infile.forces`\n",
+ "- `infile.stat`\n",
+ "- `infile.meta`"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "tdep-python-11",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "nvt = NVT(\n",
+ " struct=\"NaCl-supercell.extxyz\",\n",
+ " arch=\"mace_mp\",\n",
+ " model=\"small\",\n",
+ " temp=300.0,\n",
+ " steps=1000,\n",
+ " traj_start=500,\n",
+ " traj_every=50,\n",
+ " stats_every=50,\n",
+ " post_process_kwargs={\n",
+ " \"tdep_compute\": True,\n",
+ " \"tdep_unit_cell_file\": \"NaCl-primitive.extxyz\",\n",
+ " \"tdep_supercell_file\": \"NaCl-supercell.extxyz\",\n",
+ " \"tdep_output_dir\": \"janus_results/tdep-inputs\",\n",
+ " },\n",
+ ")\n",
+ "nvt.run()"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "tdep-python-12",
+ "metadata": {},
+ "source": [
+ "`infile.meta` records the number of atoms and saved frames, the time between frames, and the temperature:"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "tdep-python-13",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "tdep_dir = Path(\"janus_results/tdep-inputs\")\n",
+ "print(sorted(path.name for path in tdep_dir.iterdir()))\n",
+ "print((tdep_dir / \"infile.meta\").read_text())"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "tdep-python-14",
+ "metadata": {},
+ "source": [
+ "## Run TDEP\n",
+ "\n",
+ "`extract_forceconstants` fits the second-order force constants, here with a cutoff of 5 Å, which must fit within the supercell. `phonon_dispersion_relations` then computes the phonon dispersion along a standard path through the Brillouin zone."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "tdep-python-15",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "if shutil.which(\"extract_forceconstants\") and shutil.which(\n",
+ " \"phonon_dispersion_relations\"\n",
+ "):\n",
+ " subprocess.run(\n",
+ " [\"extract_forceconstants\", \"-rc2\", \"5\"],\n",
+ " cwd=tdep_dir,\n",
+ " check=True,\n",
+ " capture_output=True,\n",
+ " )\n",
+ " shutil.copy(tdep_dir / \"outfile.forceconstant\", tdep_dir / \"infile.forceconstant\")\n",
+ " subprocess.run(\n",
+ " [\"phonon_dispersion_relations\"], cwd=tdep_dir, check=True, capture_output=True\n",
+ " )\n",
+ "else:\n",
+ " print(\"TDEP was not found on PATH, so it was not run\")"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "tdep-python-16",
+ "metadata": {},
+ "source": [
+ "## Plot the phonon dispersion\n",
+ "\n",
+ "TDEP writes the dispersion to `outfile.dispersion_relations.hdf5`, which we plot with `matplotlib`:"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "id": "tdep-python-17",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "dispersion_file = tdep_dir / \"outfile.dispersion_relations.hdf5\"\n",
+ "if dispersion_file.exists():\n",
+ " with h5py.File(dispersion_file) as file:\n",
+ " q_values = file[\"q_values\"][()]\n",
+ " frequencies = file[\"frequencies\"][()]\n",
+ " q_ticks = file[\"q_ticks\"][()]\n",
+ " labels = file.attrs[\"q_tick_labels\"].decode().split()\n",
+ "\n",
+ " fig, ax = plt.subplots()\n",
+ " ax.plot(q_values, frequencies, color=\"tab:blue\")\n",
+ " for q_tick in q_ticks:\n",
+ " ax.axvline(q_tick, color=\"grey\", linewidth=0.5)\n",
+ " tick_labels = [{\"G\": \"Γ\", \"UK\": \"U|K\"}.get(label, label) for label in labels]\n",
+ " ax.set_xticks(q_ticks, tick_labels)\n",
+ " ax.set_xlim(q_values[0], q_values[-1])\n",
+ " ax.set_ylabel(\"Frequency / THz\")\n",
+ " plt.show()\n",
+ "else:\n",
+ " print(f\"{dispersion_file} was not found, so there is nothing to plot\")"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "tdep-python-18",
+ "metadata": {},
+ "source": [
+ "## Further TDEP calculations\n",
+ "\n",
+ "The same input files can be used for other TDEP calculations, described in the [TDEP tutorials](https://github.com/tdep-developers/tdep-tutorials), such as:\n",
+ "\n",
+ "- third- and fourth-order force constants (`extract_forceconstants` with `-rc3` and `-rc4`)\n",
+ "- the phonon density of states and mode Grüneisen parameters (`phonon_dispersion_relations --dos --gruneisen`)\n",
+ "- the free energy, including anharmonic corrections (`anharmonic_free_energy`)\n",
+ "- the lattice thermal conductivity (`thermal_conductivity`)\n",
+ "- phonon spectral functions (`lineshape`)\n",
+ "\n",
+ "Some calculations need data that MLIPs do not usually provide. For example, the correction for long-range dipole-dipole interactions in polar materials (`--polar`), and infrared and Raman spectra, need Born effective charges or dielectric tensors, typically from DFT.\n",
+ "\n",
+ "Classical MD also does not include nuclear quantum effects, which TDEP's stochastic sampling can. Finally, properties that depend on higher-order force constants, such as the thermal conductivity, are more sensitive to errors in the MLIP than the phonon frequencies, so the MLIP should be validated against DFT for the material of interest, and fine-tuned if needed."
+ ]
+ }
+ ],
+ "metadata": {
+ "kernelspec": {
+ "display_name": "janus-core",
+ "language": "python",
+ "name": "python3"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 3
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython3",
+ "version": "3.12.13"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 5
+}
diff --git a/docs/source/tutorials/python/index.rst b/docs/source/tutorials/python/index.rst
index a27ed4f80..875b427c8 100644
--- a/docs/source/tutorials/python/index.rst
+++ b/docs/source/tutorials/python/index.rst
@@ -12,3 +12,4 @@ Python Tutorials
phonons
neb
elasticity
+ anharmonic_phonons
diff --git a/docs/source/user_guide/command_line.rst b/docs/source/user_guide/command_line.rst
index f784c17ab..de21c1467 100644
--- a/docs/source/user_guide/command_line.rst
+++ b/docs/source/user_guide/command_line.rst
@@ -370,6 +370,31 @@ will compute the RDFs for ``Na`` and ``Cl`` atoms. Seperately for each paring, u
The RDF is also computed from the trajectory file and the options ``rdf_start``, ``rdf_stop``, and ``rdf_step`` may be used to control which trajectory frames are utilised.
+`TDEP `_ input files may also be written after NVT MD, so that TDEP can fit (anharmonic) force constants to the sampled structures. For example:
+
+.. code-block:: bash
+
+ janus md --ensemble nvt --struct tests/data/NaCl.cif --arch mace_mp --steps 2000 --traj-start 1000 --traj-every 100 --stats-every 100 --post-process-kwargs "{'tdep_compute': True, 'tdep_unit_cell_file': 'tests/data/NaCl-primitive.extxyz', 'tdep_supercell_file': 'tests/data/NaCl.cif'}"
+
+will save frames from step 1000, after equilibration, and write ``infile.ucposcar``, ``infile.ssposcar``, ``infile.positions``, ``infile.forces``, ``infile.stat``, and ``infile.meta`` to ``janus_results/NaCl-nvt-T300.0-tdep-inputs``, or to ``'tdep_output_dir'`` if it is set. TDEP must be installed separately to use these files, as described in the :doc:`installation documentation `.
+
+These files can be used for any TDEP calculation based on the sampled structures, such as higher-order force constants, free energies, and the lattice thermal conductivity, as described in the `TDEP tutorials `_. Data that MLIPs do not usually provide, such as the Born effective charges required by TDEP's ``--polar`` option, must be obtained separately.
+
+``'tdep_supercell_file'`` must match the MD structure, with the same atoms in the same order, at the same positions, and with the same cell, and must be a supercell of ``'tdep_unit_cell_file'``, which may be a primitive cell. The simplest way to ensure this is to use the same file for both, as in the tutorials.
+
+TDEP requires the two cells to agree to machine precision, but formats such as extxyz store positions with only 8 decimals. When the files are written, each supercell atom is therefore moved onto the nearest image of a unit-cell atom of the same element, which must be within 1e-3 Å, and unit-cell fractional coordinates within 1e-8 of a cell boundary are moved onto it.
+
+The following are also checked before the MD starts:
+
+- TDEP requires canonical sampling of a fixed cell, so only the ``nvt``, ``nvt-nh``, and ``nvt-csvr`` ensembles are supported, without PLUMED. If ``--minimize`` is used, ``'filter_class': None`` must be set in ``--minimize-kwargs``, so that the cell is not relaxed.
+- ``--traj-every`` must be a multiple of ``--stats-every``, so that each saved frame has statistics from the same step.
+- At least one frame must be saved after any temperature ramp, as frames saved during the ramp, including at its last step, are not used.
+
+.. note::
+ The structure files must keep the cell orientation, which CIF files do not for cells such as primitive cells, and ASE must recognise their format from the file name. For example, TDEP's ``outfile.ssposcar`` could be renamed ``supercell.vasp``.
+
+ The saved frames must also contain forces, so these should not be removed from the columns saved using ``--write-kwargs``.
+
On-the-fly Processing
+++++++++++++++++++++
diff --git a/docs/source/user_guide/installation.rst b/docs/source/user_guide/installation.rst
index b225d68ca..0d6431095 100644
--- a/docs/source/user_guide/installation.rst
+++ b/docs/source/user_guide/installation.rst
@@ -69,6 +69,15 @@ Further installation options are described in the `documentation `_ after MD without any additional packages.
+
+To run TDEP on these files, it must be built separately, following its `installation instructions `_, with its ``bin`` directory added to ``PATH``.
+Tests and tutorials that run TDEP skip these steps if it is not found on ``PATH``.
+
+
Updating Dependencies
=====================
diff --git a/janus_core/calculations/md.py b/janus_core/calculations/md.py
index e83d061b5..754c9c120 100644
--- a/janus_core/calculations/md.py
+++ b/janus_core/calculations/md.py
@@ -14,6 +14,7 @@
from warnings import warn
from ase import Atoms
+from ase.geometry import find_mic
from ase.io import read
from ase.md.bussi import Bussi
from ase.md.langevin import Langevin
@@ -53,6 +54,7 @@
)
from janus_core.processing.correlator import Correlation
from janus_core.processing.post_process import compute_rdf, compute_vaf
+from janus_core.processing.tdep import build_tdep_inputs_from_nvt
units = create_units("2014")
DENS_FACT = (units.m / 1.0e2) ** 3 / units.mol
@@ -493,6 +495,10 @@ def __init__(
if not self.struct.calc:
raise ValueError("Please attach a calculator to `struct`.")
+ # Check TDEP settings first, as _config_plumed creates the PLUMED log directory
+ if self.post_process_kwargs.get("tdep_compute"):
+ self._config_tdep()
+
self._config_plumed()
# Set output file names
@@ -588,6 +594,11 @@ def output_files(self) -> None:
if self.post_process_kwargs.get("vaf_compute", False)
else None
),
+ "tdep_inputs": (
+ self._tdep_output_dir
+ if self.post_process_kwargs.get("tdep_compute", False)
+ else None
+ ),
"plumed_log": self.plumed_log if self.plumed_input else None,
}
@@ -717,6 +728,157 @@ def _config_plumed(self):
if self.logger:
self.logger.info("Plumed calculator configured")
+ def _config_tdep(self) -> None:
+ """Check TDEP post-processing settings and resolve the output directory."""
+ # Unit cell and supercell files, written to infile.ucposcar and infile.ssposcar
+ for key in ("tdep_unit_cell_file", "tdep_supercell_file"):
+ filename = self.post_process_kwargs.get(key)
+ if not filename:
+ raise ValueError(f"`{key}` is required when `tdep_compute` is True")
+ if not isinstance(filename, PathLike):
+ raise TypeError(
+ f"`{key}` must be a path to a structure file, not "
+ f"{type(filename).__name__}"
+ )
+ if not Path(filename).is_file():
+ raise FileNotFoundError(
+ f"`{key}` not found or is not a file: {filename}"
+ )
+
+ # TDEP needs unbiased canonical sampling of a fixed cell
+ if not isinstance(self, NVT | NVT_NH):
+ raise ValueError(
+ "TDEP inputs can only be generated from NVT simulations (nvt, nvt-nh "
+ f"or nvt-csvr), not {self.ensemble}"
+ )
+ if self.plumed_input:
+ raise ValueError("TDEP inputs cannot be generated from biased (PLUMED) MD")
+
+ # Minimization must not relax the cell, as GeomOpt does by default
+ filter_class = self.minimize_kwargs.get("filter_class", "FrechetCellFilter")
+ if self.minimize and filter_class is not None:
+ raise ValueError(
+ "`minimize_kwargs['filter_class']` must be None (null in YAML) to "
+ "generate TDEP inputs with `minimize`, so that the cell is not relaxed"
+ )
+
+ # Every saved frame needs the stats row written at the same step
+ if (
+ self.traj_every <= 0
+ or self.stats_every <= 0
+ or self.traj_every % self.stats_every
+ ):
+ raise ValueError(
+ "`traj_every` must be a positive multiple of `stats_every` to "
+ "generate TDEP inputs"
+ )
+
+ # Frames saved during a temperature ramp, including at its last step, are not
+ # used. Frame steps count from the start of the first run, so this also holds
+ # on restart
+ ramp_steps = 0
+ if self.ramp_temp:
+ ramp_sign = 1 if (self.temp_end - self.temp_start) > 0 else -1
+ temps = (
+ self.temp_start + ramp_sign * i * self.temp_step
+ for i in range(self.heating_n_temps)
+ )
+ # No MD is run at 0 K (see _run_dynamics)
+ ramp_steps = self.heating_steps_per_temp * sum(
+ not isclose(temp, 0.0) for temp in temps
+ )
+ self._tdep_start_step = ramp_steps + 1 if ramp_steps else 0
+
+ # At least one frame must be saved during the MD at `temp`. The last step is
+ # not checked on restart, as the frames of the previous run are kept
+ if self.steps <= 0:
+ raise ValueError("`steps` must be greater than 0 to generate TDEP inputs")
+ # _write_traj saves frames at multiples of traj_every, from traj_start, and
+ # only those from _tdep_start_step are used
+ first_step = max(self.traj_start, self._tdep_start_step)
+ first_frame = first_step + (-first_step) % self.traj_every
+ last_step = ramp_steps + self.steps
+ if not self.restart and first_frame > last_step:
+ raise ValueError(
+ "No trajectory frames would be saved to generate TDEP inputs: the "
+ f"first would be at step {first_frame}, after the last step "
+ f"({last_step})"
+ )
+
+ # Positions and forces are written in the atom order and Cartesian frame of
+ # the MD structure, so the supercell must match it
+ supercell = read(self.post_process_kwargs["tdep_supercell_file"])
+ if len(supercell) != len(self.struct):
+ raise ValueError(
+ f"`tdep_supercell_file` has {len(supercell)} atoms, but the MD "
+ f"structure has {len(self.struct)}"
+ )
+ if supercell.get_chemical_symbols() != self.struct.get_chemical_symbols():
+ raise ValueError(
+ "`tdep_supercell_file` must have the same chemical symbols as the MD "
+ "structure, in the same order"
+ )
+ if not np.allclose(supercell.cell, self.struct.cell, rtol=0, atol=1e-3):
+ raise ValueError(
+ "`tdep_supercell_file` must have the same cell as the MD structure, "
+ "within 1e-3 Å. Note that CIF files do not keep the cell orientation."
+ )
+ # TDEP pairs each atom with the supercell atom of the same index, so they must
+ # be at the same positions, allowing for atoms wrapped into the cell
+ displacements, _ = find_mic(
+ self.struct.positions - supercell.positions, supercell.cell
+ )
+ if not np.allclose(displacements, 0, atol=1e-3):
+ raise ValueError(
+ "`tdep_supercell_file` must have the same positions as the MD "
+ "structure, within 1e-3 Å. The atoms may be in a different order."
+ )
+
+ # TDEP checks, with a tolerance of 1e-5, that the volume ratio is an integer
+ # that matches the numbers of atoms, and then the supercell matrix
+ unit_cell = read(self.post_process_kwargs["tdep_unit_cell_file"])
+ if unit_cell.cell.rank < 3 or supercell.cell.rank < 3:
+ raise ValueError(
+ "`tdep_unit_cell_file` and `tdep_supercell_file` must both have three "
+ "cell vectors"
+ )
+ matrix = supercell.cell @ np.linalg.inv(unit_cell.cell)
+ n_cells = abs(np.linalg.det(matrix))
+ if not isclose(n_cells, round(n_cells), rel_tol=0, abs_tol=1e-5):
+ raise ValueError(
+ "The volume ratio of `tdep_supercell_file` to `tdep_unit_cell_file` "
+ f"({n_cells:.7f}) must be an integer to generate TDEP inputs"
+ )
+ if len(supercell) != round(n_cells) * len(unit_cell):
+ raise ValueError(
+ "The ratio of the numbers of atoms in `tdep_supercell_file` "
+ f"({len(supercell)}) and `tdep_unit_cell_file` ({len(unit_cell)}) "
+ f"must equal their volume ratio ({round(n_cells)})"
+ )
+
+ # The supercell matrix must be an integer matrix
+ if not np.allclose(matrix, np.rint(matrix), rtol=0, atol=1e-5):
+ deviation = np.abs(matrix - np.rint(matrix)).max()
+ raise ValueError(
+ "`tdep_supercell_file` must be a supercell of `tdep_unit_cell_file`, "
+ "but supercell.cell @ inv(unit_cell.cell) is not an integer matrix "
+ f"(largest deviation {deviation:.2g}). CIF files only store cell "
+ "lengths and angles, so non-conventional cells, such as primitive "
+ "cells, may be rotated when read. Please use a format that keeps the "
+ "cell orientation, such as extxyz or POSCAR."
+ )
+
+ # Only resolved here, as the directory is created when the inputs are written
+ self._tdep_output_dir = self._build_filename(
+ "tdep-inputs",
+ self.param_prefix,
+ filename=self.post_process_kwargs.get("tdep_output_dir"),
+ )
+ if self._tdep_output_dir.exists() and not self._tdep_output_dir.is_dir():
+ raise FileExistsError(
+ f"TDEP output directory is an existing file: {self._tdep_output_dir}"
+ )
+
def _init_progress_bar(self) -> Progress:
"""
Initialise MD progress bar.
@@ -1282,11 +1444,11 @@ def _post_process(self) -> None:
# Nothing to do
if not any(
self.post_process_kwargs.get(kwarg, None)
- for kwarg in ("rdf_compute", "vaf_compute")
+ for kwarg in ("rdf_compute", "vaf_compute", "tdep_compute")
):
warn(
"Post-processing arguments present, but no computation requested. "
- "Please set either 'rdf_compute' or 'vaf_compute' "
+ "Please set 'rdf_compute' or 'vaf_compute' or 'tdep_compute' "
"to do post-processing.",
stacklevel=2,
)
@@ -1331,6 +1493,23 @@ def _post_process(self) -> None:
atoms_filter=self.post_process_kwargs.get("vaf_atoms", None),
)
+ if self.post_process_kwargs.get("tdep_compute", False):
+ build_tdep_inputs_from_nvt(
+ unit_cell_file=self.post_process_kwargs["tdep_unit_cell_file"],
+ supercell=self.post_process_kwargs["tdep_supercell_file"],
+ traj_file=self.traj_file,
+ stats_file=self.stats_file,
+ temperature=self.temp,
+ output_dir=self._tdep_output_dir,
+ # Time between saved frames in fs (rounded to drop float noise)
+ timestep=round(self.timestep / units.fs * self.traj_every, 6),
+ start_step=self._tdep_start_step,
+ )
+ if self.logger:
+ self.logger.info(
+ "TDEP input files written to %s", self._tdep_output_dir.as_posix()
+ )
+
def _write_restart(self) -> None:
"""Write restart file and (optionally) rotate files saved."""
step = self.offset + self.dyn.nsteps
diff --git a/janus_core/helpers/janus_types.py b/janus_core/helpers/janus_types.py
index a58049f0f..b06558090 100644
--- a/janus_core/helpers/janus_types.py
+++ b/janus_core/helpers/janus_types.py
@@ -78,6 +78,11 @@ class PostProcessKwargs(TypedDict, total=False):
vaf_stop: int | None
vaf_step: int
vaf_output_files: Sequence[PathLike] | None
+ # TDEP
+ tdep_compute: bool
+ tdep_output_dir: PathLike | None
+ tdep_unit_cell_file: PathLike
+ tdep_supercell_file: PathLike
class Correlation(TypedDict, total=True):
diff --git a/janus_core/processing/tdep.py b/janus_core/processing/tdep.py
new file mode 100644
index 000000000..5dad80be8
--- /dev/null
+++ b/janus_core/processing/tdep.py
@@ -0,0 +1,293 @@
+"""Utilities for generating TDEP input files."""
+
+from __future__ import annotations
+
+from pathlib import Path
+
+from ase import Atoms
+from ase.io import read, write
+import numpy as np
+from numpy import float64
+from numpy.typing import NDArray
+
+from janus_core.helpers.janus_types import PathLike
+from janus_core.helpers.stats import Stats
+
+
+def _frame_forces(atoms: Atoms) -> NDArray[float64]:
+ """
+ Get the forces stored in a trajectory frame.
+
+ Parameters
+ ----------
+ atoms
+ Frame read from the MD trajectory file.
+
+ Returns
+ -------
+ NDArray[float64]
+ Forces on each atom. Taken from the ``_forces`` array written by
+ janus-core if present, otherwise from the results stored in the frame's
+ calculator, so they are never recalculated.
+ """
+ arch = atoms.info.get("arch")
+ if arch is not None and f"{arch}_forces" in atoms.arrays:
+ return atoms.arrays[f"{arch}_forces"]
+ if atoms.calc is not None and "forces" in atoms.calc.results:
+ return atoms.calc.results["forces"]
+ raise ValueError("Frames in traj_file must contain 'forces' or '_forces'.")
+
+
+def _validate_inputs(
+ trajectory: list[Atoms],
+ supercell: Atoms,
+ stats_steps: list[int],
+ start_step: int,
+) -> None:
+ """
+ Check that MD outputs can be converted to TDEP input files.
+
+ Parameters
+ ----------
+ trajectory
+ Frames read from the MD trajectory file.
+ supercell
+ Supercell written to ``infile.ssposcar``.
+ stats_steps
+ MD step of each row in the MD statistics file.
+ start_step
+ First MD step whose frame is used.
+
+ Raises
+ ------
+ ValueError
+ If the frames to use cannot be paired with the supercell and with the rows
+ of the MD statistics file.
+ """
+ if any("step" not in atoms.info for atoms in trajectory):
+ raise ValueError("Frames in traj_file must contain 'step' in their info.")
+ frame_steps = [
+ atoms.info["step"] for atoms in trajectory if atoms.info["step"] >= start_step
+ ]
+ if not frame_steps:
+ raise ValueError(f"traj_file has no frames from step {start_step}.")
+ if len(set(frame_steps)) != len(frame_steps):
+ raise ValueError("Frames in traj_file must have unique steps.")
+
+ if len(supercell) != len(trajectory[0]):
+ raise ValueError(
+ "The number of atoms in supercell must match the number of atoms "
+ "in traj_file."
+ )
+
+ if len(set(stats_steps)) != len(stats_steps):
+ raise ValueError("Rows in stats_file must have unique steps.")
+ if missing := sorted(set(frame_steps).difference(stats_steps)):
+ raise ValueError(
+ f"stats_file has no row for {len(missing)} trajectory step(s), "
+ f"e.g. step {missing[0]}. traj_every must be a multiple of stats_every."
+ )
+
+
+def _snap_to_unit_cell(unit_cell: Atoms, supercell: Atoms) -> tuple[Atoms, Atoms]:
+ """
+ Place the supercell atoms exactly on images of the unit-cell atoms.
+
+ TDEP requires the two cells to agree to machine precision, but positions read from
+ extxyz files, for example, are rounded to 8 decimals.
+
+ Parameters
+ ----------
+ unit_cell
+ Unit cell written to ``infile.ucposcar``.
+ supercell
+ Supercell of ``unit_cell`` written to ``infile.ssposcar``.
+
+ Returns
+ -------
+ tuple[Atoms, Atoms]
+ Copy of ``unit_cell``, with fractional coordinates within 1e-8 of a cell
+ boundary moved onto it, and copy of ``supercell``, with each atom moved onto
+ the nearest image of a unit-cell atom of the same element.
+ """
+ unit_cell = unit_cell.copy()
+ supercell = supercell.copy()
+
+ # Coordinates this close to a cell boundary are meant to be on it
+ sites = unit_cell.get_scaled_positions(wrap=False)
+ on_boundary = np.abs(sites - np.rint(sites)) < 1e-8
+ sites[on_boundary] = np.rint(sites[on_boundary])
+ unit_cell.set_scaled_positions(sites)
+
+ # Offsets of each supercell atom from each unit-cell atom, in fractional
+ # coordinates of the unit cell, using the integer supercell matrix as TDEP does
+ matrix = np.rint(supercell.cell @ np.linalg.inv(unit_cell.cell))
+ offsets = (supercell.get_scaled_positions(wrap=False) @ matrix)[:, None] - sites
+ translations = np.rint(offsets)
+ distances = np.linalg.norm((offsets - translations) @ unit_cell.cell, axis=2)
+ distances[supercell.numbers[:, None] != unit_cell.numbers] = np.inf
+ if distances.min(axis=1).max() > 1e-3:
+ raise ValueError(
+ "Each supercell atom must be within 1e-3 Å of an image of a unit-cell atom "
+ "of the same element"
+ )
+
+ nearest = distances.argmin(axis=1)
+ images = sites[nearest] + translations[np.arange(len(supercell)), nearest]
+ supercell.set_scaled_positions(images @ np.linalg.inv(matrix))
+ return unit_cell, supercell
+
+
+def build_tdep_inputs_from_nvt(
+ *,
+ unit_cell_file: PathLike,
+ supercell: Atoms | PathLike,
+ traj_file: PathLike,
+ stats_file: PathLike,
+ temperature: float,
+ output_dir: PathLike,
+ timestep: float = 0.0,
+ start_step: int = 0,
+) -> dict[str, Path]:
+ """
+ Build TDEP input files from NVT molecular dynamics outputs.
+
+ Parameters
+ ----------
+ unit_cell_file
+ Path to the unit-cell structure file used to generate ``infile.ucposcar``.
+ Fractional coordinates within 1e-8 of a cell boundary are moved onto it.
+ supercell
+ Supercell structure or path used to generate ``infile.ssposcar``. Each atom
+ is moved onto the nearest image of a unit-cell atom of the same element,
+ which must be within 1e-3 Å.
+ traj_file
+ Path to the MD trajectory file.
+ stats_file
+ Path to the MD statistics file. Each frame in ``traj_file`` is paired with
+ the row written at the same MD step.
+ temperature
+ MD temperature in K, written to ``infile.meta``.
+ output_dir
+ Directory where the TDEP input files will be written.
+ timestep
+ Time interval between exported configurations in fs. Default is ``0.0``.
+ start_step
+ First MD step whose frame is used, so that earlier frames, such as those
+ saved during a temperature ramp, are skipped. Default is ``0``.
+
+ Returns
+ -------
+ dict[str, Path]
+ Mapping from TDEP standard filenames to their output paths.
+ """
+ unit_cell_file = Path(unit_cell_file)
+ traj_file = Path(traj_file)
+ stats_file = Path(stats_file)
+ output_dir = Path(output_dir)
+
+ if isinstance(supercell, Atoms):
+ supercell_atoms = supercell
+ else:
+ supercell = Path(supercell)
+ supercell_atoms = read(supercell)
+
+ ucposcar_path = output_dir / "infile.ucposcar"
+ ssposcar_path = output_dir / "infile.ssposcar"
+ positions_path = output_dir / "infile.positions"
+ forces_path = output_dir / "infile.forces"
+ stat_path = output_dir / "infile.stat"
+ meta_path = output_dir / "infile.meta"
+ out_fmt = "{:.12f}".format
+ trajectory = read(traj_file, index=":")
+ unit_cell = read(unit_cell_file)
+ stats = Stats(stats_file)
+ stats_steps = [int(step) for step in stats["Step"]]
+ _validate_inputs(trajectory, supercell_atoms, stats_steps, start_step)
+ unit_cell, supercell_atoms = _snap_to_unit_cell(unit_cell, supercell_atoms)
+
+ # Pair each frame from start_step with the stats row written at the same MD step
+ trajectory = [atoms for atoms in trajectory if atoms.info["step"] >= start_step]
+ stats_rows = {step: row for row, step in enumerate(stats_steps)}
+ rows = [stats_rows[atoms.info["step"]] for atoms in trajectory]
+ forces = [_frame_forces(atoms) for atoms in trajectory]
+ n_atoms = len(trajectory[0])
+ n_steps = len(trajectory)
+
+ # Only create the output directory once all checks have passed
+ output_dir.mkdir(parents=True, exist_ok=True)
+
+ meta_path.write_text(
+ f"""\
+{n_atoms} # N atoms
+{n_steps} # N timesteps
+{timestep} # timestep in fs
+{temperature} # temperature in K
+""",
+ encoding="utf-8",
+ )
+
+ write(ucposcar_path, unit_cell, format="vasp")
+ write(ssposcar_path, supercell_atoms, format="vasp")
+
+ with open(positions_path, "w", encoding="utf-8") as file:
+ file.writelines(
+ " ".join(map(out_fmt, position)) + "\n"
+ for atoms in trajectory
+ for position in atoms.get_scaled_positions()
+ )
+
+ with open(forces_path, "w", encoding="utf-8") as file:
+ file.writelines(
+ f"{force[0]:25.12f} {force[1]:25.12f} {force[2]:25.12f}\n"
+ for frame_forces in forces
+ for force in frame_forces
+ )
+
+ time_fs = stats["Time"][rows]
+ e_pot = stats["Epot/N"][rows] * n_atoms
+ e_kin = stats["EKin/N"][rows] * n_atoms
+ temperature_data = stats["T"][rows]
+ e_tot = stats["ETot/N"][rows] * n_atoms
+ pressure = stats["P"][rows]
+ stress_xx = stats["Pxx"][rows]
+ stress_yy = stats["Pyy"][rows]
+ stress_zz = stats["Pzz"][rows]
+ stress_yz = stats["Pyz"][rows]
+ stress_xz = stats["Pxz"][rows]
+ stress_xy = stats["Pxy"][rows]
+
+ with open(stat_path, "w", encoding="utf-8") as file:
+ file.writelines(
+ f"{i:d} "
+ + " ".join(
+ out_fmt(dat[i])
+ for dat in (
+ time_fs,
+ e_tot,
+ e_pot,
+ e_kin,
+ temperature_data,
+ pressure,
+ stress_xx,
+ stress_yy,
+ stress_zz,
+ # Off-diagonal order follows TDEP's reader (xy, yz, xz),
+ # not its docs/files.md (xz, yz, xy)
+ stress_xy,
+ stress_yz,
+ stress_xz,
+ )
+ )
+ + "\n"
+ for i in range(len(time_fs))
+ )
+
+ return {
+ "infile.ucposcar": ucposcar_path,
+ "infile.ssposcar": ssposcar_path,
+ "infile.positions": positions_path,
+ "infile.forces": forces_path,
+ "infile.stat": stat_path,
+ "infile.meta": meta_path,
+ }
diff --git a/tests/data/NaCl-primitive.extxyz b/tests/data/NaCl-primitive.extxyz
new file mode 100644
index 000000000..ac47392bc
--- /dev/null
+++ b/tests/data/NaCl-primitive.extxyz
@@ -0,0 +1,4 @@
+2
+Lattice="0.0 2.82 2.82 2.82 0.0 2.82 2.82 2.82 0.0" Properties=species:S:1:pos:R:3 pbc="T T T"
+Na 0.00000000 0.00000000 0.00000000
+Cl 2.82000000 0.00000000 0.00000000
diff --git a/tests/data/NaCl-tdep-stats.dat b/tests/data/NaCl-tdep-stats.dat
new file mode 100644
index 000000000..a89770ed2
--- /dev/null
+++ b/tests/data/NaCl-tdep-stats.dat
@@ -0,0 +1,22 @@
+# Step | Real_Time [s] | Time [fs] | Epot/N [eV] | EKin/N [eV] | T [K] | ETot/N [eV] | Density [g/cm^3] | Volume [Ang^3] | P [GPa] | Pxx [GPa] | Pyy [GPa] | Pzz [GPa] | Pyz [GPa] | Pxz [GPa] | Pxy [GPa] | Target_T [K]
+ 0 0.141 0.00 -3.37939097e+00 3.79423142e-02 293.535 -3.34144866e+00 2.164 1.43524915e+03 9.47080888e-01 9.39647529e-01 9.33769876e-01 9.67825260e-01 -1.94465154e-02 -1.63781162e-02 1.58953929e-02 300.00000
+ 100 5.440 100.00 -3.35606573e+00 2.48080449e-02 191.924 -3.33125769e+00 2.164 1.43524915e+03 1.25155516e+00 1.31474070e+00 1.25506271e+00 1.18486206e+00 -1.31324718e-02 -2.13985879e-02 1.63631890e-02 300.00000
+ 200 5.323 200.00 -3.34773640e+00 2.72039906e-02 210.460 -3.32053241e+00 2.164 1.43524915e+03 1.39503424e+00 1.47251960e+00 1.43425138e+00 1.27833173e+00 1.65147760e-02 1.72904614e-02 5.38676510e-02 300.00000
+ 300 5.350 300.00 -3.35082264e+00 3.96222769e-02 306.532 -3.31120037e+00 2.164 1.43524915e+03 1.41786107e+00 1.17874700e+00 1.52083359e+00 1.55400263e+00 -1.76947818e-02 -1.59539737e-02 5.14273081e-02 300.00000
+ 400 5.414 400.00 -3.34584130e+00 3.53924062e-02 273.808 -3.31044889e+00 2.164 1.43524915e+03 1.47135883e+00 1.46510133e+00 1.55886583e+00 1.39010932e+00 -1.06368452e-02 5.36210848e-02 -4.28949343e-02 300.00000
+ 500 5.674 500.00 -3.33971039e+00 3.33125947e-02 257.718 -3.30639779e+00 2.164 1.43524915e+03 1.50918852e+00 1.45778083e+00 1.69940406e+00 1.37038068e+00 6.22455290e-02 -1.64308825e-02 1.65957044e-02 300.00000
+ 600 5.633 600.00 -3.34362485e+00 4.02939423e-02 311.728 -3.30333091e+00 2.164 1.43524915e+03 1.52845727e+00 1.47163185e+00 1.69567691e+00 1.41806306e+00 4.79693326e-02 -1.10559991e-02 2.95975702e-02 300.00000
+ 700 5.582 700.00 -3.34363308e+00 4.51156164e-02 349.030 -3.29851746e+00 2.164 1.43524915e+03 1.56738252e+00 1.52380469e+00 1.73259873e+00 1.44574414e+00 4.39620191e-03 1.45081737e-02 -1.35632657e-02 300.00000
+ 800 5.387 800.00 -3.33788363e+00 3.26031134e-02 252.229 -3.30528052e+00 2.164 1.43524915e+03 1.58149910e+00 1.49827256e+00 1.51121715e+00 1.73500758e+00 1.30038090e-03 4.97732928e-02 1.33685691e-02 300.00000
+ 900 5.500 900.00 -3.34499921e+00 3.82867519e-02 296.200 -3.30671246e+00 2.164 1.43524915e+03 1.53092653e+00 1.37988369e+00 1.52012306e+00 1.69277284e+00 -2.13347653e-02 1.99439023e-02 2.16387980e-02 300.00000
+ 1000 5.480 1000.00 -3.34311774e+00 3.85668866e-02 298.367 -3.30455085e+00 2.164 1.43524915e+03 1.54155428e+00 1.60312303e+00 1.54596933e+00 1.47557049e+00 1.15471374e-02 2.33701094e-02 -4.74205151e-02 300.00000
+ 1100 5.402 1100.00 -3.34286869e+00 3.65027883e-02 282.398 -3.30636590e+00 2.164 1.43524915e+03 1.62720729e+00 1.59602808e+00 1.78118374e+00 1.50441004e+00 4.23345363e-02 1.52508185e-02 5.10586294e-02 300.00000
+ 1200 5.601 1200.00 -3.34049970e+00 4.07909625e-02 315.573 -3.29970874e+00 2.164 1.43524915e+03 1.56102102e+00 1.76416650e+00 1.34584347e+00 1.57305310e+00 3.85966394e-02 6.12205347e-02 2.71146559e-02 300.00000
+ 1300 5.995 1300.00 -3.33280831e+00 4.42794698e-02 342.561 -3.28852884e+00 2.164 1.43524915e+03 1.81464381e+00 2.03509067e+00 1.66670962e+00 1.74213115e+00 6.81874336e-02 1.26649114e-02 9.50863205e-03 300.00000
+ 1400 5.641 1400.00 -3.34378131e+00 4.24907373e-02 328.723 -3.30129057e+00 2.164 1.43524915e+03 1.64495511e+00 1.72525598e+00 1.69100761e+00 1.51860173e+00 7.89142960e-03 -4.75721435e-02 1.90400268e-02 300.00000
+ 1500 5.620 1500.00 -3.33851058e+00 3.96930942e-02 307.080 -3.29881748e+00 2.164 1.43524915e+03 1.76217221e+00 1.95021939e+00 1.65144369e+00 1.68485354e+00 -5.59700920e-03 -1.01494737e-02 2.78022039e-02 300.00000
+ 1600 5.524 1600.00 -3.33624506e+00 3.43712287e-02 265.908 -3.30187383e+00 2.164 1.43524915e+03 1.68241892e+00 1.65235157e+00 1.51532971e+00 1.87957548e+00 -1.75222809e-02 7.14212510e-03 5.22322821e-02 300.00000
+ 1700 5.598 1700.00 -3.34288443e+00 3.32367329e-02 257.131 -3.30964770e+00 2.164 1.43524915e+03 1.67390821e+00 1.59660117e+00 1.68161702e+00 1.74350643e+00 -3.33481805e-02 3.33447277e-02 1.93372627e-02 300.00000
+ 1800 5.788 1800.00 -3.33918602e+00 3.83603957e-02 296.769 -3.30082562e+00 2.164 1.43524915e+03 1.59520609e+00 1.57517542e+00 1.66113231e+00 1.54931054e+00 -2.81654124e-02 3.25025325e-03 -4.16423934e-02 300.00000
+ 1900 5.638 1900.00 -3.34048874e+00 3.81866190e-02 295.425 -3.30230212e+00 2.164 1.43524915e+03 1.66060600e+00 1.41073364e+00 1.80465809e+00 1.76642628e+00 -3.23565653e-02 -3.86622991e-02 3.43447021e-02 300.00000
+ 2000 5.472 2000.00 -3.34317246e+00 3.56341482e-02 275.678 -3.30753831e+00 2.164 1.43524915e+03 1.59406044e+00 1.50879939e+00 1.54958183e+00 1.72380010e+00 4.53596152e-02 -3.14063869e-03 1.86401421e-02 300.00000
diff --git a/tests/data/NaCl-tdep-supercell.extxyz b/tests/data/NaCl-tdep-supercell.extxyz
new file mode 100644
index 000000000..43f0f527c
--- /dev/null
+++ b/tests/data/NaCl-tdep-supercell.extxyz
@@ -0,0 +1,66 @@
+64
+Lattice="11.28 0.0 0.0 0.0 11.28 0.0 0.0 0.0 11.28" Properties=species:S:1:pos:R:3 pbc="T T T"
+Na 0.00000000 0.00000000 0.00000000
+Cl 2.82000000 0.00000000 0.00000000
+Na 0.00000000 2.82000000 2.82000000
+Cl 2.82000000 2.82000000 2.82000000
+Na 2.82000000 0.00000000 2.82000000
+Cl 0.00000000 0.00000000 2.82000000
+Na 2.82000000 2.82000000 0.00000000
+Cl 0.00000000 2.82000000 0.00000000
+Na 0.00000000 0.00000000 5.64000000
+Cl 2.82000000 0.00000000 5.64000000
+Na 0.00000000 2.82000000 8.46000000
+Cl 2.82000000 2.82000000 8.46000000
+Na 2.82000000 0.00000000 8.46000000
+Cl 0.00000000 0.00000000 8.46000000
+Na 2.82000000 2.82000000 5.64000000
+Cl 0.00000000 2.82000000 5.64000000
+Na 0.00000000 5.64000000 0.00000000
+Cl 2.82000000 5.64000000 0.00000000
+Na 0.00000000 8.46000000 2.82000000
+Cl 2.82000000 8.46000000 2.82000000
+Na 2.82000000 5.64000000 2.82000000
+Cl 0.00000000 5.64000000 2.82000000
+Na 2.82000000 8.46000000 0.00000000
+Cl 0.00000000 8.46000000 0.00000000
+Na 0.00000000 5.64000000 5.64000000
+Cl 2.82000000 5.64000000 5.64000000
+Na 0.00000000 8.46000000 8.46000000
+Cl 2.82000000 8.46000000 8.46000000
+Na 2.82000000 5.64000000 8.46000000
+Cl 0.00000000 5.64000000 8.46000000
+Na 2.82000000 8.46000000 5.64000000
+Cl 0.00000000 8.46000000 5.64000000
+Na 5.64000000 0.00000000 0.00000000
+Cl 8.46000000 0.00000000 0.00000000
+Na 5.64000000 2.82000000 2.82000000
+Cl 8.46000000 2.82000000 2.82000000
+Na 8.46000000 0.00000000 2.82000000
+Cl 5.64000000 0.00000000 2.82000000
+Na 8.46000000 2.82000000 0.00000000
+Cl 5.64000000 2.82000000 0.00000000
+Na 5.64000000 0.00000000 5.64000000
+Cl 8.46000000 0.00000000 5.64000000
+Na 5.64000000 2.82000000 8.46000000
+Cl 8.46000000 2.82000000 8.46000000
+Na 8.46000000 0.00000000 8.46000000
+Cl 5.64000000 0.00000000 8.46000000
+Na 8.46000000 2.82000000 5.64000000
+Cl 5.64000000 2.82000000 5.64000000
+Na 5.64000000 5.64000000 0.00000000
+Cl 8.46000000 5.64000000 0.00000000
+Na 5.64000000 8.46000000 2.82000000
+Cl 8.46000000 8.46000000 2.82000000
+Na 8.46000000 5.64000000 2.82000000
+Cl 5.64000000 5.64000000 2.82000000
+Na 8.46000000 8.46000000 0.00000000
+Cl 5.64000000 8.46000000 0.00000000
+Na 5.64000000 5.64000000 5.64000000
+Cl 8.46000000 5.64000000 5.64000000
+Na 5.64000000 8.46000000 8.46000000
+Cl 8.46000000 8.46000000 8.46000000
+Na 8.46000000 5.64000000 8.46000000
+Cl 5.64000000 5.64000000 8.46000000
+Na 8.46000000 8.46000000 5.64000000
+Cl 5.64000000 8.46000000 5.64000000
diff --git a/tests/data/NaCl-tdep-traj.extxyz b/tests/data/NaCl-tdep-traj.extxyz
new file mode 100644
index 000000000..3cb630419
--- /dev/null
+++ b/tests/data/NaCl-tdep-traj.extxyz
@@ -0,0 +1,660 @@
+64
+Lattice="11.28 0.0 0.0 0.0 11.28 0.0 0.0 0.0 11.28" Properties=species:S:1:pos:R:3:momenta:R:3:masses:R:1:mace_forces:R:3 units="_JSON {\"energy\": \"eV\", \"forces\": \"ev/Ang\", \"stress\": \"ev/Ang^3\", \"time\": \"fs\", \"real_time\": \"s\", \"temperature\": \"K\", \"pressure\": \"GPa\", \"density\": \"g/cm^3\", \"momenta\": \"(eV*u)^0.5\", \"target_temperature\": \"K\"}" time=1100.0 step=1100 density=2.1636163899268923 temperature=282.3982747968279 target_temperature=300.0 model=tests/models/mace_mp_small.model arch=mace mace_stress="-0.009185715927076094 -0.009908446917174981 -0.008119091983678724 0.00020823881535969504 -6.943189530276937e-05 -0.00021321854540311893" mace_energy=-213.94359636102732 system_name=NaCl-tdep-supercell config_type=md pbc="T T T"
+Na 0.01555244 -0.05645912 -0.03971306 -1.35085059 -0.79080160 -0.46421581 22.98976928 0.00943484 0.38047784 -0.07723933
+Cl 2.95428913 -0.05081931 0.02831794 0.44769307 -0.24580142 -0.12844243 35.45000000 -0.10641591 -0.10421681 -0.07874446
+Na -0.25679941 2.92201575 2.86233136 -1.08611852 -0.09674573 -0.55183620 22.98976928 0.49626946 -0.25558079 -0.04810578
+Cl 2.90259637 2.49517378 2.83454850 -0.86535481 -0.83776185 -1.06806510 35.45000000 -0.13789674 0.78248883 -0.07417447
+Na 2.61057601 -0.07092208 2.75323944 -0.51239619 0.53213064 0.91455389 22.98976928 0.17397000 -0.06159814 0.08432165
+Cl -0.13577652 -0.00189466 2.65680690 -0.93473959 -0.64484289 2.60182121 35.45000000 -0.18818965 -0.00200649 0.23957573
+Na 2.86520055 2.68692470 0.00542218 0.08572047 1.12900196 -0.16677955 22.98976928 -0.05035467 -0.00049431 0.08998032
+Cl 0.01034684 3.03159824 0.03860527 0.35221483 -1.14463031 -1.29843581 35.45000000 0.00824228 -0.42862223 -0.00399478
+Na -0.23083698 -0.01577326 5.61475128 0.72781090 0.54123563 0.20833238 22.98976928 0.44672279 0.06342349 -0.14335028
+Cl 2.58744197 -0.02331104 5.47295048 -0.99672026 -0.07016712 -1.78294746 35.45000000 0.21248847 -0.21078871 0.29009810
+Na 0.31393118 2.89772344 8.50794945 -0.63921972 -0.24600903 0.72760686 22.98976928 -0.76017043 0.00477137 0.05500319
+Cl 2.78126952 2.68896495 8.35659285 0.16598147 -0.54316947 0.03265551 35.45000000 0.57837650 0.25706747 0.11453220
+Na 2.82685592 0.00854898 8.53192245 0.70384891 -0.11588474 1.11337680 22.98976928 0.21899448 -0.19504157 -0.20609552
+Cl 0.20025954 -0.04494295 8.36071814 0.05404203 0.43722525 1.18227432 35.45000000 -0.33793247 0.49970729 0.26894021
+Na 2.84255506 2.81860911 5.55326789 -1.45265196 -0.05404522 -0.08253112 22.98976928 -0.19513440 -0.31948823 0.02679353
+Cl -0.04707334 2.78821217 5.67929138 0.16670623 -0.73391964 0.58022636 35.45000000 -0.16226157 0.28598473 -0.03231726
+Na -0.01981423 5.63295507 0.08701625 0.02615613 -1.37111528 -0.86736752 22.98976928 0.04584068 0.20929989 -0.02631199
+Cl 2.90845691 5.39847627 -0.03345153 -0.51057992 0.23747651 -0.43754823 35.45000000 -0.15301729 0.36353276 0.32336371
+Na -0.06046632 8.36497145 2.70697083 0.83976418 1.86707203 0.61736563 22.98976928 -0.14956642 0.24703824 0.20810834
+Cl 2.59864406 8.50036375 2.79208984 -0.36293114 1.87592149 0.48456769 35.45000000 0.21660931 -0.31267876 0.10427877
+Na 2.68016233 5.47731573 2.96130147 1.41895687 -0.29113530 -1.01465658 22.98976928 0.32351522 -0.01575302 -0.21592878
+Cl 0.03655605 5.64414593 2.89726383 0.03076940 -0.17208315 0.33126362 35.45000000 -0.16757626 0.05056696 0.06843142
+Na 2.92923560 8.32325303 0.13031999 -0.51925503 0.63064452 0.13811572 22.98976928 -0.06655932 0.07043003 -0.19808245
+Cl -0.06440808 8.59772464 -0.01928484 1.13347148 -0.36263963 -0.93698742 35.45000000 0.19689473 -0.43586332 -0.02329385
+Na -0.00598670 5.65719722 5.81028493 -0.41209879 -0.61483478 -0.39888940 22.98976928 0.02060760 0.00013020 -0.02741331
+Cl 2.88948447 5.56550397 5.72620967 -0.75162288 1.10778607 1.16527263 35.45000000 -0.35408326 0.07599756 0.01470098
+Na 0.14859340 8.73277709 8.53373246 -0.02352484 -1.13036880 -0.29412973 22.98976928 0.03916454 -0.63214290 0.11760851
+Cl 3.02367626 8.44818449 8.66806656 -0.22313064 -1.22271829 -0.83866266 35.45000000 0.03263502 -0.00842706 -0.22668558
+Na 3.03263771 5.64702624 8.60913113 0.04564152 -0.42296626 -0.48443123 22.98976928 -0.22247344 -0.05416722 -0.22479193
+Cl 0.22108933 5.84551036 8.64766245 -0.19563907 -0.92050914 0.57889793 35.45000000 -0.33306140 -0.13282037 -0.23781695
+Na 2.87401509 8.31170651 5.68345752 -0.42259761 -0.09143686 -0.91620421 22.98976928 -0.16629313 0.34737162 0.04811590
+Cl -0.06886062 8.49456222 5.92863591 -0.21684844 -0.16480348 -0.49788568 35.45000000 0.21382060 -0.20776710 -0.56374598
+Na 5.83478579 -0.19406598 -0.02031897 0.14694478 -1.04166683 0.26956598 22.98976928 -0.35688694 0.19460732 -0.07292090
+Cl 8.44470216 0.01559384 -0.07744877 0.49757614 1.22229333 1.34870263 35.45000000 0.17789243 -0.16439748 0.01901065
+Na 5.82180932 2.84079752 2.85346359 -0.84156245 0.51180337 1.07471074 22.98976928 -0.47964030 -0.05318305 -0.24524606
+Cl 8.44706141 2.98927532 2.58594328 1.09162792 1.38771808 1.07786806 35.45000000 -0.09374268 -0.14431607 0.72677818
+Na 8.41444690 -0.00939897 2.73368877 -0.51449739 -1.31323115 -1.65270222 22.98976928 -0.01979590 0.04015807 -0.07895932
+Cl 5.66103840 -0.05372955 2.71087397 -1.02189711 1.52412742 0.60239439 35.45000000 0.11901256 0.09148762 0.07029441
+Na 8.23857493 2.99934307 0.08278824 0.03168113 0.38779405 0.02817935 22.98976928 0.38889946 -0.15677000 -0.52605433
+Cl 5.62900172 2.96552607 0.10419850 -0.43605315 1.12876981 0.64831699 35.45000000 -0.10954942 -0.29282810 -0.16134844
+Na 5.72925255 0.00207273 5.65171698 0.69705686 0.45537757 0.24597489 22.98976928 -0.44546704 -0.28948413 -0.10791638
+Cl 8.36404030 0.18494456 5.55016292 1.41764650 0.77443838 -1.04429218 35.45000000 0.20602472 -0.11276244 -0.10475912
+Na 5.60065597 2.66841582 8.44205670 1.47438118 0.18977590 -0.40947582 22.98976928 0.09837240 0.29292935 0.06917217
+Cl 8.65502719 2.64554411 8.68188930 -0.91954123 -1.34068024 -0.59277116 35.45000000 -0.12655924 0.39442072 -0.40267855
+Na 8.64034740 -0.03306686 8.22537691 0.06591113 -0.22712438 -1.13247145 22.98976928 -0.13875423 0.22462381 0.38807023
+Cl 5.58400921 0.12662538 8.45370874 1.16621995 0.39374350 1.19266573 35.45000000 0.19491649 -0.45818694 0.01269550
+Na 8.34100243 2.93599176 5.80796998 -0.28966790 0.27164322 -1.55467991 22.98976928 0.13478971 -0.04591509 -0.02844163
+Cl 5.54509965 2.58582847 5.45614974 0.16274184 0.03949737 1.07658880 35.45000000 0.33868041 0.54180378 0.37637873
+Na 5.60876333 5.60357442 -0.18653262 -0.18535411 -0.17820997 1.05073516 22.98976928 -0.03191963 -0.01397923 0.28117576
+Cl 8.28512689 5.85494700 0.11753263 0.96533049 0.45032074 -0.71087652 35.45000000 0.37817744 -0.45565181 -0.25304502
+Na 5.47792889 8.62098906 2.83468664 0.25980086 -0.80451826 -0.91812368 22.98976928 0.09254082 -0.28806350 -0.04376453
+Cl 8.39492388 8.42623972 2.80858753 -0.20719891 -2.77096700 -2.01470814 35.45000000 0.16316211 0.11609452 0.13550003
+Na 8.25564037 5.68232725 2.91817303 0.28504932 -0.31403544 0.75877549 22.98976928 0.09348169 0.12427053 -0.16428341
+Cl 5.47824729 5.86921431 2.94149032 -0.21868160 -0.04506942 -1.60315742 35.45000000 -0.08694781 -0.27793075 -0.13478452
+Na 8.55054121 8.39735098 0.04934471 1.04464682 -0.34608414 -0.03479452 22.98976928 -0.19388102 0.48826890 -0.08596730
+Cl 5.74485601 8.26132181 -0.11648710 -0.01045455 0.16697737 0.94846550 35.45000000 -0.08880924 0.30696574 0.16508816
+Na 5.52105243 5.56813246 5.59092104 -0.26415144 1.57518608 -0.05687181 22.98976928 0.27853278 0.06735705 0.05627363
+Cl 8.41877597 5.70502191 5.61221198 -0.41277723 -0.86180248 1.19131635 35.45000000 0.04866762 -0.23278347 0.27786542
+Na 5.87732388 8.40505612 8.48184866 0.40329063 0.49359686 0.22105354 22.98976928 -0.52801761 0.09907128 -0.18168321
+Cl 8.43939941 8.60563178 8.24160388 0.07934790 0.59546804 -0.16089591 35.45000000 0.21373965 -0.17292946 0.29978861
+Na 8.56155362 5.90844717 8.55555311 0.04913625 -0.60048216 0.44787087 22.98976928 0.05218804 -0.31181257 -0.05481531
+Cl 5.72285009 5.38900669 8.31967986 0.18330981 0.99756031 1.32695717 35.45000000 0.19853719 0.18707763 -0.01971389
+Na 8.54628686 8.49724878 5.54393487 1.11125246 -0.55648373 0.28784185 22.98976928 -0.26212831 0.03000210 -0.05601012
+Cl 5.60101012 8.49747184 5.60589675 -0.53361240 1.76415970 -0.35847718 35.45000000 0.10188372 0.01102447 0.19854069
+64
+Lattice="11.28 0.0 0.0 0.0 11.28 0.0 0.0 0.0 11.28" Properties=species:S:1:pos:R:3:momenta:R:3:masses:R:1:mace_forces:R:3 units="_JSON {\"energy\": \"eV\", \"forces\": \"ev/Ang\", \"stress\": \"ev/Ang^3\", \"time\": \"fs\", \"real_time\": \"s\", \"temperature\": \"K\", \"pressure\": \"GPa\", \"density\": \"g/cm^3\", \"momenta\": \"(eV*u)^0.5\", \"target_temperature\": \"K\"}" time=1200.0 step=1200 density=2.1636163899268923 temperature=315.5730827394306 target_temperature=300.0 model=tests/models/mace_mp_small.model arch=mace mace_stress="-0.010090746455672064 -0.007015584408925767 -0.008485184669923623 -0.0001746644118184437 -0.00013984111475048104 -0.00023170824417425814" mace_energy=-213.7919810427499 system_name=NaCl-tdep-supercell config_type=md pbc="T T T"
+Na -0.05296920 -0.05484480 0.07113476 1.18405424 -1.64806683 1.41156753 22.98976928 0.03526026 -0.39607460 -0.00752791
+Cl 2.89311834 0.07353455 0.03289965 -1.29044793 1.10138237 -0.47282715 35.45000000 -0.34496749 -0.11614921 -0.06033970
+Na 0.08757768 2.73156603 2.85146613 0.63916323 -1.11091943 0.88867326 22.98976928 -0.54396501 0.15573869 -0.04253127
+Cl 2.63653829 2.89274473 2.83241503 -0.50133722 0.48224097 0.64106435 35.45000000 0.46164059 -0.22422948 0.10045881
+Na 2.64563649 0.06470671 2.77859576 -0.11694109 -1.00285062 0.02654705 22.98976928 0.13483852 -0.13745656 0.12189613
+Cl -0.19897027 -0.00787252 2.93272355 1.64128988 0.70317583 -0.23238792 35.45000000 0.56304313 0.01741780 -0.15277402
+Na 2.97612546 2.89081780 -0.19438631 0.06584392 0.14813726 -0.89155834 22.98976928 -0.29277706 -0.00943518 0.22141913
+Cl 0.10200453 2.50560431 -0.04898688 0.12887640 0.55739958 0.14443878 35.45000000 0.00532413 0.68158330 0.18614842
+Na 0.06366607 0.08345772 5.85238871 -0.17106326 -0.59519760 0.64358576 22.98976928 0.00094629 -0.12962528 -0.13427289
+Cl 2.85172629 -0.14741824 5.76971518 1.51254998 0.64856993 2.44199502 35.45000000 -0.07295593 0.45042049 -0.15646240
+Na -0.30045277 2.81592731 8.51939401 -0.68378124 -0.06578823 0.02885376 22.98976928 0.47164166 -0.06964481 0.06185055
+Cl 3.07458742 2.71838059 8.36977825 0.99983334 1.34420987 0.85303374 35.45000000 -0.26348877 0.04936290 0.22326582
+Na 3.20843609 -0.16477204 8.57101881 -0.28002066 -0.29166883 -1.42616974 22.98976928 -0.23963352 0.11812177 -0.15391960
+Cl 0.06661892 0.06576849 8.60806139 0.21883276 -1.09345451 -0.57546624 35.45000000 0.06370514 -0.24139683 -0.33655647
+Na 2.62119970 2.76773847 5.76801139 0.43741451 1.38031371 1.43545795 22.98976928 0.22272732 0.15884588 -0.20546798
+Cl -0.18226480 2.90288840 5.79306047 0.40887113 0.31269589 -1.00152706 35.45000000 0.53042375 -0.19453153 -0.28314738
+Na 0.02287209 5.42063758 -0.09136333 0.86602797 0.20519312 0.15503425 22.98976928 -0.20086450 0.06093647 0.11985832
+Cl 2.58898791 5.78014176 0.00106777 -0.42326917 -0.09071438 -0.07701280 35.45000000 0.60973510 -0.51076335 -0.14452575
+Na -0.01780943 8.47775421 3.05470844 0.12661766 -0.97857637 -1.56102138 22.98976928 0.00035943 -0.10413681 -0.98751580
+Cl 2.84164438 8.50120460 2.73705596 0.37598137 -0.00538550 -1.00314759 35.45000000 -0.25089996 0.21537841 0.17604538
+Na 2.67033217 5.70031174 2.72575685 -1.26148708 1.42076985 0.74851016 22.98976928 0.04937217 0.05081037 0.19072154
+Cl -0.13692806 5.63418632 2.87327718 -0.77022245 -0.16566254 -1.29674939 35.45000000 0.33205537 -0.25799817 0.01591377
+Na 2.75329726 8.50434311 -0.06110036 0.68067055 -0.61817763 -0.46403006 22.98976928 0.21275908 -0.01640828 0.02737983
+Cl 0.14925262 8.18828924 0.04115714 -0.57127582 -0.63136836 0.63143054 35.45000000 -0.49017367 0.54757952 -0.07798747
+Na -0.08898460 5.62515513 5.63011576 0.90612657 0.99744440 0.17570635 22.98976928 -0.01463776 0.00127248 0.00388495
+Cl 2.85917002 5.71494571 5.62647006 0.45408214 -1.04134680 -1.12865225 35.45000000 -0.14658227 -0.17079158 0.05434614
+Na 0.12972145 8.20455395 8.31514626 -0.26314474 -0.35567617 -1.04109959 22.98976928 -0.16971835 0.27506024 0.21697026
+Cl 2.86575790 8.25238910 8.34447028 -2.24161913 -0.39811056 -0.76154521 35.45000000 -0.03309510 0.33047571 0.23237743
+Na 2.93268680 5.51225712 8.54884382 -0.69087497 -0.17407557 -0.56048231 22.98976928 -0.07045249 0.06930980 -0.20465133
+Cl -0.07477916 5.54898853 8.37034773 -0.79038731 -1.28784191 -1.43311202 35.45000000 0.27475825 -0.08873997 0.08760449
+Na 2.62140827 8.48013185 5.62092203 0.14814576 0.01425124 0.00603136 22.98976928 0.35105462 -0.17636435 -0.12257060
+Cl -0.05882624 8.35700226 5.48510095 -1.12712222 0.46137603 1.36307961 35.45000000 -0.08565894 0.20384139 0.81741849
+Na 5.44523306 0.03710541 0.11839227 0.01850749 1.61835968 -0.07667696 22.98976928 0.66010610 0.00388201 -0.18571729
+Cl 8.48358190 -0.01921633 -0.07606889 -0.71479836 -0.14887994 0.18259430 35.45000000 0.02250070 -0.10541359 0.24132907
+Na 5.44917690 2.90079102 2.92187069 1.22449859 0.36708544 0.28304891 22.98976928 0.10940903 0.08157974 -0.02280412
+Cl 8.19286455 2.85533498 2.78892549 -1.77196291 -1.14992317 -1.13300029 35.45000000 0.23083181 -0.08493306 -0.07854012
+Na 8.41283480 -0.23368703 2.82368905 -0.22416700 0.66650749 0.85637021 22.98976928 -0.04116296 0.17643128 -0.56502759
+Cl 5.72586851 -0.02448055 2.72822789 -0.63690221 0.56367475 0.12616993 35.45000000 -0.33224999 0.28760466 0.34847349
+Na 8.44412087 2.67654793 0.09073956 0.14047442 -1.66445959 0.98378660 22.98976928 0.04706057 0.11513529 -0.19484870
+Cl 5.65492557 2.94860429 -0.00460184 0.68185512 -0.53576003 -1.07361052 35.45000000 -0.12837019 -0.02628107 0.09507647
+Na 5.75698697 0.21813022 5.57988370 1.17161006 0.45890659 -0.50381787 22.98976928 -0.01356877 -0.10968850 0.11511613
+Cl 8.67694293 0.11451920 5.31356289 -0.48068670 -2.23416700 1.05595877 35.45000000 -0.40120513 -0.14364707 0.81535911
+Na 5.75479613 2.96012854 8.49776220 -0.10680490 0.16806937 0.97802854 22.98976928 0.07894735 -0.06810275 0.07974146
+Cl 8.44183461 2.94756078 8.38259142 -0.19648947 0.73526686 -1.22805979 35.45000000 -0.23741584 -0.51575910 0.09748880
+Na 8.56560184 0.06319125 8.23080976 0.19188811 0.33920675 0.45181364 22.98976928 0.31121530 -0.05092125 0.14857778
+Cl 6.06131508 -0.06737503 8.70268798 0.43654231 -0.80410442 0.42367322 35.45000000 -0.79464480 0.09351903 -0.33194225
+Na 8.50305791 2.88398513 5.41156474 -0.48529036 0.99243785 0.51601642 22.98976928 -0.34231964 0.04259108 0.32153128
+Cl 5.64326626 2.95420791 5.83794337 -0.00129630 1.68775868 -1.33162823 35.45000000 -0.15062191 -0.22414966 -0.47270862
+Na 5.70617717 5.74075011 0.07688194 0.77950683 0.30929906 -1.40695276 22.98976928 -0.00627912 -0.05527484 0.07209882
+Cl 8.63154557 5.47112449 -0.01454512 0.86518809 -2.48072023 1.06009056 35.45000000 -0.23950318 0.12782569 0.02237915
+Na 5.52213637 8.58869787 2.83950928 0.83255839 0.29164407 1.72195922 22.98976928 0.17119811 -0.25791371 -0.02150925
+Cl 8.44039378 8.25502486 2.79463467 -0.03300328 0.96819383 1.34245319 35.45000000 -0.10649969 0.17581099 -0.27809492
+Na 8.52591155 5.53441220 2.76789697 0.23030250 -0.32136523 -1.06417946 22.98976928 -0.34271029 0.07697158 0.07759719
+Cl 5.45874051 5.75280335 2.82869308 0.31820853 -0.57029995 1.45494763 35.45000000 0.15242807 -0.09471476 -0.04660864
+Na 8.49853493 8.50684745 -0.25433069 -0.76618887 -1.15406879 -0.01339675 22.98976928 0.09490188 -0.12917048 0.22176870
+Cl 5.66374067 8.47089119 0.01549887 -0.57114495 2.30044221 -0.84267033 35.45000000 -0.08272541 0.03468738 0.03880223
+Na 5.59495801 6.01360710 5.65813497 0.80186850 -0.00298104 0.06760269 22.98976928 -0.01091777 -0.33154600 0.04500962
+Cl 8.28018659 5.58997609 5.77206508 -0.88628249 0.22124671 -0.67881336 35.45000000 0.15927153 0.25971350 -0.36125815
+Na 5.65272291 8.48753607 8.56595400 0.20670433 -0.28027030 0.29538849 22.98976928 0.20929176 0.08952227 -0.17781126
+Cl 8.64052208 8.49869372 8.31843122 0.88618407 -0.66233450 0.22662644 35.45000000 -0.05667702 -0.02174427 -0.09208591
+Na 8.42951171 5.54889919 8.51857638 -0.29932130 -0.18178504 -0.94522040 22.98976928 0.17074521 0.33330512 -0.07980270
+Cl 5.79799245 5.83491874 8.63799543 -0.57654890 2.11300564 0.95049170 35.45000000 -0.39309863 -0.17737536 -0.09612839
+Na 8.35946336 8.49187508 5.37341796 -1.21725873 0.35957636 -0.23783971 22.98976928 0.06952527 -0.08009568 0.50905817
+Cl 5.59152818 8.72139981 5.68590607 0.57086229 -0.19184033 -0.10937446 35.45000000 0.09276365 0.03574229 -0.03182844
+64
+Lattice="11.28 0.0 0.0 0.0 11.28 0.0 0.0 0.0 11.28" Properties=species:S:1:pos:R:3:momenta:R:3:masses:R:1:mace_forces:R:3 units="_JSON {\"energy\": \"eV\", \"forces\": \"ev/Ang\", \"stress\": \"ev/Ang^3\", \"time\": \"fs\", \"real_time\": \"s\", \"temperature\": \"K\", \"pressure\": \"GPa\", \"density\": \"g/cm^3\", \"momenta\": \"(eV*u)^0.5\", \"target_temperature\": \"K\"}" time=1300.0 step=1300 density=2.1636163899268923 temperature=342.56138917926745 target_temperature=300.0 model=tests/models/mace_mp_small.model arch=mace mace_stress="-0.011621874419685648 -0.00896272232043822 -0.009444769613827711 -0.0002779269176297677 -8.41613176145819e-05 -0.00028977055663660027" mace_energy=-213.29973177611654 system_name=NaCl-tdep-supercell config_type=md pbc="T T T"
+Na 0.13953302 -0.41747141 0.01389799 -1.32349446 1.93172942 -0.51814341 22.98976928 -0.26622057 0.32837901 0.10917154
+Cl 2.75237137 -0.00956845 -0.12804255 1.04265774 -0.76950034 -0.32971016 35.45000000 0.33679972 0.00665150 0.32115804
+Na -0.31985172 2.70541459 2.89813627 -0.02663879 0.38930967 -1.21442402 22.98976928 0.34953165 0.00235876 0.09386608
+Cl 2.94736301 2.79594715 2.88625229 0.08495350 0.51064830 0.61131620 35.45000000 -0.63605599 0.38961575 -0.08779888
+Na 2.90997000 0.15372458 2.91790797 -0.15977808 0.82405215 -0.32893972 22.98976928 -0.35004828 -0.32285617 -0.08480706
+Cl 0.22338215 -0.21271163 2.81817282 0.87844682 -0.67776338 -0.94421125 35.45000000 -0.34040548 0.35222212 -0.04263409
+Na 2.68427528 2.87345283 0.28805635 0.51969460 -0.99077037 1.27714619 22.98976928 0.29435055 -0.20448907 -0.56384001
+Cl 0.03231181 2.81842034 0.18754579 -1.39248499 -0.38555375 1.01255917 35.45000000 -0.00347222 -0.33222632 -0.12726037
+Na 0.24827529 -0.02053053 5.62208450 0.67927369 1.53460426 -1.24706842 22.98976928 -0.13686088 0.04667679 0.10488671
+Cl 3.07070034 0.22043622 5.72396789 -1.38582107 0.09298639 -1.32550554 35.45000000 -0.38588212 -0.24174930 0.21696458
+Na -0.07683142 2.60996831 8.42220764 1.71000358 -1.13869745 -0.20739194 22.98976928 0.24055287 0.18995052 0.09723759
+Cl 2.98757054 3.03308792 8.66931979 -1.48031329 0.20018546 0.84087750 35.45000000 -0.17002806 -0.51532220 -0.24097866
+Na 3.04945419 -0.13492343 8.59276242 -1.23266500 0.42630190 0.11867970 22.98976928 -0.13829895 0.21577655 -0.47659794
+Cl 0.10315742 -0.11452984 8.61034901 0.31975406 0.91179296 0.52837133 35.45000000 0.03306130 0.16938373 -0.24627553
+Na 2.84547944 2.98664487 5.52210082 -0.56514999 -0.82426914 -1.94243372 22.98976928 -0.15233691 -0.06841376 0.41095287
+Cl -0.00705004 2.78554816 5.67857288 -0.12424693 -1.35704591 -0.14348055 35.45000000 -0.04528834 -0.07730722 -0.22981753
+Na 0.04241170 5.45450905 0.17146779 0.16632725 1.24224459 0.54778649 22.98976928 -0.00394512 0.19156214 -0.39765696
+Cl 3.01205284 5.57228668 0.10493043 1.85521472 0.69379782 1.63349680 35.45000000 -0.37269075 0.29516367 0.14175523
+Na 0.02361845 8.35868338 2.64659714 0.14432653 -0.15109641 1.36092225 22.98976928 -0.17627057 0.01281201 0.20030017
+Cl 2.77074740 8.57269501 2.61626740 0.32557455 0.09865749 -0.14832700 35.45000000 0.14235571 -0.23194099 0.04981720
+Na 2.82972996 5.60969165 2.73423868 0.77976046 -1.97388476 -0.87877545 22.98976928 -0.04335545 0.15152639 0.08820923
+Cl -0.14032370 5.55089503 2.81083393 -0.16726870 0.41546692 1.26352125 35.45000000 0.10360924 0.11696584 0.07587757
+Na 2.87116631 8.51198472 -0.21077482 -0.82509347 -0.12684886 -0.25130824 22.98976928 0.01634967 -0.15527424 0.22622081
+Cl -0.30357213 8.22448197 -0.20202983 -0.40445286 -1.04224908 -1.92788075 35.45000000 0.56464895 -0.21282146 0.40003185
+Na 0.10973957 5.77357530 5.53721324 -0.29641463 -0.05303762 -0.45765738 22.98976928 -0.30720397 -0.10293957 0.17619904
+Cl 2.75809351 5.79726166 5.36217534 -0.59982047 0.99247900 0.14495345 35.45000000 0.18792617 -0.21279483 0.22992213
+Na -0.20142719 8.35754200 8.43909751 -0.65178846 0.71641485 0.94749782 22.98976928 0.35226795 -0.08867245 -0.23254731
+Cl 2.58883482 8.30785901 8.41137602 -0.06916374 0.00888038 1.97086963 35.45000000 0.19753451 0.19811604 0.00094527
+Na 2.70016274 5.59177173 8.70672846 -0.18754209 0.88824363 0.54271740 22.98976928 0.05597039 0.18660920 -0.29055363
+Cl -0.04035273 5.37863672 8.34073869 1.01342707 1.33181804 0.30770505 35.45000000 -0.10179699 0.20180024 0.13737168
+Na 3.02268929 8.43764754 5.51214004 -0.63214462 0.52587067 0.20943232 22.98976928 -0.61314301 0.25769454 0.07898761
+Cl -0.17515936 8.58824606 5.65957929 0.67099387 -2.19950255 -0.52371594 35.45000000 0.40772331 -0.17512431 -0.11826476
+Na 5.70837359 0.12807255 0.03266726 -0.76951825 -0.77179669 0.64197738 22.98976928 -0.04824460 -0.07590931 0.00949593
+Cl 8.48302114 -0.22719772 0.06102278 0.57533027 -0.97134267 -0.54466587 35.45000000 0.14981784 0.40541860 -0.23134284
+Na 5.48590626 2.94100704 2.69713514 0.59315280 -0.06349949 -0.82613323 22.98976928 0.46091551 0.03392210 0.05065921
+Cl 8.29683746 2.69849996 2.79987885 1.23034194 -0.54133251 0.75534019 35.45000000 0.02867013 0.11608690 0.17977929
+Na 8.44196274 0.03852982 2.74312726 0.50417797 -0.34245355 1.39892114 22.98976928 -0.03357782 -0.11596447 0.24703693
+Cl 5.41615427 0.29686975 2.97553664 0.50230111 0.81737029 1.50724188 35.45000000 0.75364775 -0.47999289 -0.24330050
+Na 8.66976957 2.59150953 0.01332719 -0.00693644 0.53622013 -1.03674090 22.98976928 -0.37494185 -0.14078732 -0.08946047
+Cl 5.68708159 2.80407377 -0.11189838 0.13229206 -1.21951619 1.10502509 35.45000000 0.03757854 -0.03884045 0.20691128
+Na 5.81360787 0.16581092 5.75052263 -0.28233683 -0.81546180 -0.25986565 22.98976928 -0.24022468 -0.03518491 -0.56174041
+Cl 8.45050843 -0.06859776 5.77243881 -0.84290861 2.82014086 0.68446950 35.45000000 0.28259125 0.19657144 -0.30894777
+Na 5.79945815 2.89273731 8.41356294 -0.36635182 -0.72968522 -1.52371548 22.98976928 -0.50147786 0.10255019 0.09437550
+Cl 8.40666601 2.78940005 8.39253647 0.94369368 -0.61539472 0.79953225 35.45000000 0.23903143 0.02813778 0.04623610
+Na 8.66600020 -0.12504559 8.48843498 -1.17724355 -1.93041104 0.03339059 22.98976928 -0.18216404 0.13139211 0.06235369
+Cl 5.82561353 0.09111045 8.25132995 -0.22301406 1.41712445 -1.31712784 35.45000000 -0.13743463 -0.08799933 0.81305186
+Na 8.14235713 2.92339311 5.69659385 0.80496007 -0.80465452 0.07583154 22.98976928 0.57523901 -0.09327531 -0.18918303
+Cl 5.56477068 3.09308915 5.54885733 1.53455581 -0.32754336 0.04557931 35.45000000 0.02299802 -0.34961636 0.19944952
+Na 5.68209304 5.57228195 0.23636591 -0.13308141 0.74268186 1.04546614 22.98976928 0.10116413 0.05427417 -0.59031725
+Cl 8.54632507 5.22577597 -0.01406294 -1.76955372 0.96004002 -0.44888455 35.45000000 -0.24698920 0.55295087 0.08854717
+Na 5.61064255 8.56448209 2.76363545 -0.47065238 0.88966809 -0.79670755 22.98976928 -0.07745060 0.16631982 0.17704041
+Cl 8.34653599 8.67518958 2.66844954 0.86114429 -0.18238315 -0.66661557 35.45000000 0.15050573 -0.37215481 0.51562516
+Na 8.25561956 5.62130003 2.73729025 0.24522372 0.45079089 0.69352265 22.98976928 0.64783042 -0.00608134 0.04168419
+Cl 5.75328740 5.75810797 2.82429075 0.82484804 0.98372315 -1.63634906 35.45000000 -0.57170604 -0.02630473 0.15872282
+Na 8.40353222 8.09813407 0.17611963 -1.01117812 0.17616940 0.98590355 22.98976928 -0.15236217 0.19674019 -0.44284578
+Cl 5.72414818 8.67582344 0.05672979 0.83582530 0.15134532 1.29164163 35.45000000 -0.20935608 -0.24257795 -0.22560309
+Na 5.60673491 5.60442008 5.71869675 -0.67209464 -1.03956017 0.22977700 22.98976928 -0.03116579 0.68158267 0.01439814
+Cl 8.44522368 5.88897324 5.41238099 1.20872385 0.43460423 -1.18378798 35.45000000 -0.06416829 -0.60491417 0.35720025
+Na 5.91105270 8.65729312 8.39392571 0.20900453 -0.02313237 -1.04103088 22.98976928 -0.50609008 -0.16951792 0.12830872
+Cl 8.45318814 8.40631174 8.49864807 -1.83528709 0.75931058 0.71276942 35.45000000 0.03883752 -0.18534804 0.16372037
+Na 8.39376438 5.62306872 8.50993240 -0.60114588 -0.65147571 -0.26029422 22.98976928 0.06821240 -0.05481358 -0.08932028
+Cl 5.51194795 5.89065284 8.57997609 -0.18730566 -1.11526584 -1.63824162 35.45000000 0.35591467 -0.15491611 -0.10365608
+Na 8.44332303 8.41878082 5.80585089 1.01316071 -0.37182138 -0.56089549 22.98976928 -0.15727092 0.39201390 -0.33739132
+Cl 5.50898103 8.56818696 5.68984983 -0.33625448 -0.66772315 0.80578755 35.45000000 0.58229198 -0.19509464 -0.16233018
+64
+Lattice="11.28 0.0 0.0 0.0 11.28 0.0 0.0 0.0 11.28" Properties=species:S:1:pos:R:3:momenta:R:3:masses:R:1:mace_forces:R:3 units="_JSON {\"energy\": \"eV\", \"forces\": \"ev/Ang\", \"stress\": \"ev/Ang^3\", \"time\": \"fs\", \"real_time\": \"s\", \"temperature\": \"K\", \"pressure\": \"GPa\", \"density\": \"g/cm^3\", \"momenta\": \"(eV*u)^0.5\", \"target_temperature\": \"K\"}" time=1400.0000000000002 step=1400 density=2.1636163899268923 temperature=328.7231325802916 target_temperature=300.0 model=tests/models/mace_mp_small.model arch=mace mace_stress="-0.009339360020828023 -0.009590569204196799 -0.00808162109946126 -1.0943195942796809e-05 0.00011351088699158 -8.505961471090391e-05" mace_energy=-214.00200364025378 system_name=NaCl-tdep-supercell config_type=md pbc="T T T"
+Na -0.10266924 0.11062308 0.07734316 0.99991339 -0.36899911 -0.05764813 22.98976928 0.23941099 -0.29797995 -0.11071807
+Cl 3.08675872 -0.05765503 0.05485065 0.56264342 0.27171731 0.32382074 35.45000000 -0.31630686 -0.26412163 -0.27351896
+Na 0.13335775 2.75775338 2.97156520 1.25284822 -0.43136526 0.20305225 22.98976928 -0.17325813 0.10519479 -0.36449339
+Cl 2.70604947 2.95598311 2.81677621 -0.37751640 -0.41153826 -0.26069631 35.45000000 0.49716179 -0.18189134 0.04546591
+Na 2.79338452 -0.09148050 2.59242405 -0.39667544 0.05304517 1.04021568 22.98976928 0.00755095 0.39329988 0.48807114
+Cl -0.05227529 -0.00280817 2.77456910 -2.55823080 0.48460356 0.72104219 35.45000000 0.02864218 -0.22060806 0.13828293
+Na 3.03300725 2.52199040 -0.07772776 -0.03647348 0.49637625 -1.18398585 22.98976928 -0.21037763 0.45198030 0.30654984
+Cl 0.02614882 2.75387756 0.02897561 0.32917353 0.53456004 -2.12574129 35.45000000 0.02443990 0.12402362 0.01445148
+Na -0.10322047 -0.02639807 5.54455749 -1.68998462 -0.58709652 0.12518315 22.98976928 0.09241298 0.05694559 0.21019789
+Cl 2.67721076 -0.08168147 5.62967836 0.02508309 -0.49029268 -0.76982595 35.45000000 0.20411937 0.43276637 -0.24919099
+Na 0.14489664 2.91326287 8.55505805 -2.73777705 0.26343849 0.85399379 22.98976928 -0.02330413 -0.43040990 -0.04962852
+Cl 2.91773124 2.76053804 8.49765501 0.11917022 -0.55382124 -2.14901222 35.45000000 -0.14877543 0.45484318 -0.13131374
+Na 2.83210942 0.19458872 8.35565897 -0.07496818 -0.19697906 -0.31691620 22.98976928 -0.19989747 -0.40834112 0.20050328
+Cl 0.05240026 -0.02765091 8.60041741 -1.96101751 0.79769593 -0.11896009 35.45000000 -0.16707915 0.05044064 -0.19666579
+Na 2.79037079 2.95930961 5.70748789 0.84681361 -0.01372614 1.32853579 22.98976928 0.16080533 -0.17225079 -0.25979738
+Cl 0.07665914 2.71884507 5.62693802 0.63045319 0.72946114 0.93919866 35.45000000 -0.04934153 0.18398183 0.29545465
+Na 0.05984899 5.48123056 -0.00054028 0.12480969 -0.48371849 -0.81145197 22.98976928 -0.07043278 0.12331942 0.03609300
+Cl 2.89122551 5.66961145 0.04318511 -1.41587889 -1.19215209 -2.38182324 35.45000000 0.05346386 -0.26205958 -0.21489796
+Na -0.15584783 8.31253029 2.87346869 -0.37792484 0.69404235 0.19895261 22.98976928 0.27352534 0.23419220 -0.16471812
+Cl 2.74593009 8.55840655 2.71302587 -1.44884247 0.06889108 2.06462435 35.45000000 -0.05033295 -0.19642665 0.38535097
+Na 3.00675498 5.78849024 2.90910727 -0.04621336 1.10769605 0.34056607 22.98976928 -0.21511242 -0.19157393 -0.20078566
+Cl 0.07666250 5.62805502 2.71642280 1.31811138 -0.12374527 -0.87875261 35.45000000 -0.10560300 0.01575367 0.33931152
+Na 2.76073061 8.29564174 0.06232849 -0.03227416 -0.56802642 0.33417601 22.98976928 -0.11320557 0.35110569 -0.21529912
+Cl -0.12478865 8.29745340 0.02991101 1.74742044 1.63298907 1.48912483 35.45000000 0.11129909 0.12926302 -0.13990171
+Na -0.08360580 5.55226955 5.69403722 -0.15551838 -1.08295712 0.16182630 22.98976928 0.13775578 0.06408325 -0.11152554
+Cl 2.74532077 5.72614697 5.65505537 -1.18360107 -0.68640925 1.83007405 35.45000000 0.02871918 0.10728235 0.15628035
+Na -0.25822251 8.50328394 8.36551620 1.51291439 -0.77979266 0.17689218 22.98976928 0.13505277 -0.09576570 0.39994023
+Cl 2.72722835 8.71509589 8.40374482 -0.07247723 2.31518245 -1.01732669 35.45000000 -0.44326120 -0.44677288 0.26099452
+Na 2.84894981 5.67586070 8.51865235 0.89102191 -0.67717963 -0.32989341 22.98976928 -0.09457990 0.00421066 -0.03397000
+Cl 0.05571341 5.52339803 8.51067679 -0.18571384 1.22297598 0.45665962 35.45000000 0.04269685 0.39151809 -0.10388571
+Na 2.50260182 8.63974919 5.76655423 -0.07710230 -0.90152391 0.00956609 22.98976928 0.54780647 -0.37975672 -0.28641762
+Cl -0.00700930 8.46448093 5.72767694 0.00737119 0.76667493 0.52528557 35.45000000 -0.58333666 -0.07181708 -0.25134211
+Na 5.81452424 -0.23216232 0.09754911 1.51772048 0.08827157 -0.32883537 22.98976928 -0.12494062 0.29983469 -0.05623776
+Cl 8.53424740 -0.14544167 -0.06269489 -1.14677067 1.31511214 -0.59752624 35.45000000 -0.24822471 0.13444934 0.02300431
+Na 6.07382768 3.08226013 2.90200830 0.27873803 -0.00035041 0.14077468 22.98976928 -0.47225776 -0.16587604 -0.30860509
+Cl 8.66163433 2.77051776 2.85274239 2.01037864 0.31870673 -0.94924641 35.45000000 0.02864913 0.11225259 -0.14923610
+Na 8.44075157 -0.06036152 3.15781868 0.26171234 -0.62746881 -0.00516416 22.98976928 0.16683311 0.25686397 -0.50881142
+Cl 5.79828572 0.06295112 2.93099011 0.70561292 -0.89982263 -0.59801714 35.45000000 -0.29022796 0.02716621 -0.05478732
+Na 8.28984224 2.67453747 -0.05796898 -0.92614241 0.33880993 0.44164470 22.98976928 0.53266708 0.11183472 0.09934142
+Cl 5.73563595 2.58983626 0.13492381 0.91584678 0.58493882 0.51565894 35.45000000 -0.10962492 0.27862906 -0.11579689
+Na 5.52390295 -0.10881844 5.65783919 0.72666120 -0.09208074 0.89355272 22.98976928 0.02902974 0.26085975 0.01628277
+Cl 8.36558475 0.16636781 5.75348498 -0.35166017 -1.37715287 0.28962793 35.45000000 0.11751983 -0.22294805 0.21233148
+Na 5.62198483 2.81125625 8.28973669 0.36241110 -0.08107292 0.90613700 22.98976928 0.21285188 -0.19242081 0.11447536
+Cl 8.73290817 2.77224506 8.47142531 0.56677693 0.30027085 -0.06109156 35.45000000 -0.44948823 -0.08093230 -0.04683464
+Na 8.44186225 -0.03675706 8.47448479 0.29475985 1.48211849 0.42733713 22.98976928 0.00865546 -0.01874825 0.03196283
+Cl 5.50612142 0.09371149 8.48058197 -0.99693836 -0.59393919 0.60909320 35.45000000 0.37014163 -0.08277566 -0.17715145
+Na 8.59842979 2.92650181 5.55791156 0.06897318 0.83863694 -0.33428790 22.98976928 -0.14679072 -0.04059358 0.20418076
+Cl 5.70574748 2.89073969 5.47167402 0.62766491 -0.75176926 0.69666551 35.45000000 -0.14450124 0.02929592 0.32876407
+Na 5.63787515 5.72866034 -0.23579544 -1.55972626 -0.09540283 0.07955411 22.98976928 -0.04271648 -0.21623507 0.31632654
+Cl 8.31290702 5.72006314 0.02325059 1.47349427 0.99764490 -0.06051861 35.45000000 0.21078957 -0.24744226 -0.12457865
+Na 5.51562154 8.68206092 2.88839099 0.79646497 -1.47007275 0.23448820 22.98976928 0.13384487 -0.28685405 -0.24184418
+Cl 8.45474388 8.57209831 2.96520644 -0.14969878 -0.28418388 -0.78811293 35.45000000 -0.06446956 -0.17012872 -0.35532572
+Na 8.59336000 5.77914626 2.73532251 -0.05483842 -0.34925750 -0.48438717 22.98976928 -0.10772157 -0.12170788 0.11750522
+Cl 5.74995963 5.84024739 2.71603837 0.11584935 -0.29340670 -0.82503013 35.45000000 0.00210385 -0.08314930 0.12121447
+Na 8.41556810 8.48260828 -0.15073571 0.35596851 0.98207664 -1.82251483 22.98976928 -0.03611158 -0.22445352 0.13405413
+Cl 5.54669706 8.40197024 -0.06480500 -1.07012642 -1.91834406 -1.01823572 35.45000000 0.09925343 0.08906725 -0.00503064
+Na 5.60260203 5.80194491 5.54712992 0.61828880 -0.39415287 -1.59640185 22.98976928 0.08950276 -0.30124310 0.02400426
+Cl 8.46968059 5.68927849 5.67885846 -0.30784749 -0.98907343 2.72250240 35.45000000 0.06396305 -0.08359737 -0.15798876
+Na 5.20210144 8.58192123 8.38288110 0.10169811 0.08692838 0.91000066 22.98976928 0.86078683 -0.11743653 0.04119937
+Cl 8.20024893 8.25415175 8.36626814 -0.00038934 -0.56618934 -1.58258898 35.45000000 0.13716795 0.28687102 -0.03677405
+Na 8.47827787 5.41401285 8.51587392 0.24796236 0.65189397 0.10931334 22.98976928 -0.05567653 0.33983506 -0.05643249
+Cl 5.58553533 5.42178093 8.35933802 -0.48238514 -0.05714812 -0.04386336 35.45000000 -0.04101642 0.34501047 -0.02305949
+Na 8.43317761 8.58400073 5.54529822 -0.60448747 -0.22940084 1.39625427 22.98976928 -0.02022089 -0.17679530 0.44838790
+Cl 5.70571224 8.43851304 5.54746595 0.06447053 1.19485310 0.00246159 35.45000000 -0.33042903 0.20693853 0.26658246
+64
+Lattice="11.28 0.0 0.0 0.0 11.28 0.0 0.0 0.0 11.28" Properties=species:S:1:pos:R:3:momenta:R:3:masses:R:1:mace_forces:R:3 units="_JSON {\"energy\": \"eV\", \"forces\": \"ev/Ang\", \"stress\": \"ev/Ang^3\", \"time\": \"fs\", \"real_time\": \"s\", \"temperature\": \"K\", \"pressure\": \"GPa\", \"density\": \"g/cm^3\", \"momenta\": \"(eV*u)^0.5\", \"target_temperature\": \"K\"}" time=1500.0 step=1500 density=2.1636163899268923 temperature=307.0795914862531 target_temperature=300.0 model=tests/models/mace_mp_small.model arch=mace mace_stress="-0.01096045727637785 -0.009321950477235125 -0.009173479974204856 0.0001481788995815801 8.329817969232226e-05 -0.00020811070107143453" mace_energy=-213.6646768382606 system_name=NaCl-tdep-supercell config_type=md pbc="T T T"
+Na 0.27778147 0.05289137 0.08610355 -0.73166126 0.89884985 -0.22901989 22.98976928 -0.63717536 -0.02332493 -0.09673348
+Cl 2.85525153 -0.03693934 0.01989080 -1.89410927 -0.22306149 -0.19657117 35.45000000 0.23375980 0.22184648 0.20726048
+Na 0.15863287 2.72120957 2.67459867 -0.52453116 -0.25647332 -1.18965641 22.98976928 -0.17907773 0.22963239 0.27104118
+Cl 3.05057315 2.88730633 2.81840055 0.55090220 1.43421156 0.23860276 35.45000000 -0.44586879 -0.06905183 -0.10609679
+Na 2.69453494 0.18846790 2.92845215 -0.04096591 -0.94775445 -0.83527411 22.98976928 0.08734538 -0.35535888 -0.26947002
+Cl -0.15668334 0.01201427 2.80432812 1.38085921 1.13219957 -0.13006498 35.45000000 0.18182905 0.19120171 0.18548515
+Na 2.83317886 2.75156979 -0.01627979 0.28673378 -0.33942254 0.89313897 22.98976928 0.18574186 0.04415976 -0.10172135
+Cl 0.22753406 2.74673932 -0.03844683 -1.11480507 -0.86404575 2.21533237 35.45000000 -0.38475367 0.06346881 -0.13965450
+Na -0.09414384 -0.05342010 5.81596985 1.64002036 0.35431846 -0.30256513 22.98976928 -0.17263113 -0.07524752 -0.36094357
+Cl 2.68281049 0.13668120 5.54992677 0.46628279 0.49401924 1.21124184 35.45000000 -0.03126057 -0.50762226 0.18629591
+Na -0.06725737 2.77596633 8.27095579 0.60642979 -0.22711220 -0.37999722 22.98976928 -0.09404941 0.21020273 0.96143058
+Cl 2.67945504 2.75197719 8.34918616 -0.49220408 -0.52192856 0.42079367 35.45000000 0.21748610 -0.10746503 0.09464416
+Na 2.44045339 0.09009372 8.47913701 0.56005601 -0.66270243 -0.24550658 22.98976928 0.45283200 -0.13829071 -0.07978020
+Cl -0.27738056 -0.02745380 8.46001965 0.23883043 -0.80551691 -0.64776101 35.45000000 0.40772615 0.15761244 0.20739680
+Na 2.93767577 2.67305242 5.50912552 -0.16793754 -0.13160805 -0.73822266 22.98976928 -0.03935676 0.61035960 0.28018127
+Cl 0.01582788 2.74682368 5.85897682 -1.04493250 -0.76269590 -0.09751925 35.45000000 0.00240862 0.03251423 -0.95315239
+Na 0.04331599 5.75714223 -0.03805494 0.62470127 0.83468338 0.34296279 22.98976928 0.18571634 -0.03445469 -0.04342334
+Cl 2.66248921 5.47387040 -0.21607515 -1.37342180 0.84291534 1.05291182 35.45000000 0.22157346 0.23568946 0.29469280
+Na 0.10816871 8.59605554 2.99627807 0.60497639 0.18398128 0.01681073 22.98976928 -0.27757113 -0.20300420 -0.19525639
+Cl 2.77581481 8.42944598 3.00018578 0.49155440 -0.81099286 -1.27714394 35.45000000 0.25370361 0.12291484 -0.27012638
+Na 2.68020892 5.66413576 2.60006878 1.62768410 -0.51970219 -1.04766791 22.98976928 0.45732852 0.02334420 0.20957692
+Cl 0.10681854 5.55861242 2.83362189 -0.96880469 0.11430867 1.08022481 35.45000000 -0.09393297 0.01529694 -0.05204686
+Na 2.88060375 8.53300058 0.00848783 0.92455760 0.13608475 -0.32685789 22.98976928 -0.02914754 -0.22599059 -0.01618520
+Cl 0.19868149 8.67334221 0.05317692 0.52518557 -0.57777134 -0.70667380 35.45000000 -0.12519981 -0.31977427 0.23071341
+Na 0.09265045 5.63044354 5.66899919 0.36265351 1.39234580 0.27538092 22.98976928 -0.15346054 0.07080696 -0.02685598
+Cl 2.84576941 5.65742459 5.66153706 0.86800859 -0.16340228 -1.11533830 35.45000000 0.11459847 -0.25540627 -0.17884206
+Na 0.23680115 8.61601136 8.67308193 -0.65075219 1.56750548 -0.15899794 22.98976928 -0.47395507 -0.21496464 -0.35798366
+Cl 2.82799866 8.65237620 8.45352301 1.91097600 -2.00135846 0.33627660 35.45000000 0.13777040 -0.07170937 -0.08165021
+Na 2.85119665 5.42988597 8.37254848 -0.30394284 0.87858149 -1.57854094 22.98976928 -0.09669020 0.34425394 -0.05423138
+Cl 0.03799100 5.93702952 8.39629839 0.52733619 0.58734352 -0.80761707 35.45000000 0.02147145 -0.39899035 0.13514292
+Na 2.87673133 8.32108936 5.72271890 0.32171541 0.71400684 1.08656574 22.98976928 -0.16095061 0.20306310 0.03063419
+Cl -0.38137038 8.45259321 5.61259718 -0.36929323 -0.70813622 -0.84718200 35.45000000 0.63006386 0.13013452 0.13854100
+Na 5.58279905 0.00870020 0.00736974 -0.34896267 1.12816081 -0.40255060 22.98976928 0.21200584 -0.16432306 -0.06226287
+Cl 8.55426791 -0.07405962 -0.04973326 -0.30922746 0.09466782 0.22443049 35.45000000 -0.20927888 0.14990223 0.17980266
+Na 5.69051512 2.65566008 2.68028775 -0.60652709 -0.74585375 -0.27736665 22.98976928 0.30494047 0.55177791 0.23966043
+Cl 8.61796736 2.98583477 2.78679253 -1.83225808 0.75843886 0.64405398 35.45000000 -0.07162512 -0.40021356 0.01253853
+Na 8.28701027 0.08694911 2.66038834 -0.28302839 0.22408458 -1.02801561 22.98976928 0.56586180 -0.08985460 0.21938224
+Cl 5.73645506 0.06578440 2.91024629 -1.40447552 0.98050478 0.08311975 35.45000000 -0.42421220 -0.33291373 -0.46474455
+Na 8.66203056 2.94353836 0.08838356 0.29818583 -0.22662819 -0.04274222 22.98976928 -0.12505522 -0.22453119 -0.14986961
+Cl 5.57856478 2.84066231 -0.06136890 -0.41275901 0.86200535 -0.21216153 35.45000000 0.04227770 -0.36234668 0.34505341
+Na 5.46519753 0.11450422 5.52233074 -1.13259618 -0.91605649 -0.74258489 22.98976928 0.21970530 -0.19567523 0.48962171
+Cl 8.34174977 0.05178363 5.79616129 0.44909852 0.05320116 -0.57542673 35.45000000 0.04689032 -0.23652916 -0.31600384
+Na 5.55119539 2.67065749 8.64946988 -1.71414734 0.68518924 -0.04393593 22.98976928 -0.32099615 0.11523116 -0.55027768
+Cl 8.08101940 2.87407916 8.63655491 -1.32996595 -0.05441436 0.07942709 35.45000000 0.86382781 0.10321399 -0.02248499
+Na 8.37088669 0.12216308 8.51279768 -0.72385991 -0.97402956 -1.22915471 22.98976928 -0.32037684 -0.22009385 0.00464151
+Cl 5.54017491 -0.07186314 8.56707215 0.70686247 -0.56847516 -0.01266790 35.45000000 -0.05620367 0.07342260 -0.08118199
+Na 8.54387821 2.62930141 5.86743707 -0.62227849 -1.03260091 0.60672167 22.98976928 -0.17573879 0.45984526 -0.20738493
+Cl 5.73454364 2.78791665 5.69473706 0.82929396 0.80019579 0.59533743 35.45000000 -0.12946775 0.11687315 -0.08125898
+Na 5.43676064 5.41639932 -0.07378960 1.25837383 -0.24437633 0.32835374 22.98976928 0.22193162 0.47891044 0.01338212
+Cl 8.77205949 5.62674559 -0.11633281 0.64735254 0.09056131 -0.27766708 35.45000000 -0.39313595 0.07730230 0.31307672
+Na 5.75178849 8.45439098 2.73350454 -0.72292667 -0.14357217 -0.65211095 22.98976928 -0.13735559 -0.16348337 0.07638576
+Cl 8.49303078 8.32612585 2.74167458 0.28189694 -0.95735625 -0.17072715 35.45000000 -0.04243243 0.34130814 -0.08960758
+Na 8.66431783 5.68375489 2.80709196 0.54909494 -0.10121133 1.02528879 22.98976928 -0.18111425 -0.11405842 0.03441608
+Cl 5.83196104 5.49814265 2.63318214 -0.30737847 -0.94595420 0.78168988 35.45000000 -0.23505969 0.17964587 0.22614446
+Na 8.65171949 8.39331362 -0.16790272 0.45492017 -0.59905774 2.51246762 22.98976928 -0.14926603 0.10398733 0.26654388
+Cl 5.50030088 8.23612668 -0.03795976 0.91611765 0.31166618 1.40197981 35.45000000 0.26561622 0.23376949 0.25532402
+Na 5.84503024 5.62613829 5.59209617 0.07597581 -0.79742121 1.98949569 22.98976928 -0.23180179 -0.06026601 -0.01170238
+Cl 8.55583131 5.57628696 5.72917038 0.12209330 -0.03956810 -1.98294014 35.45000000 -0.09457506 -0.15389737 -0.02114721
+Na 5.76110353 8.45803452 8.47496305 0.37160757 -1.04072993 -0.53622114 22.98976928 -0.34756345 0.09767455 -0.03401713
+Cl 8.38089582 8.42681054 8.46364530 2.00500088 1.56179702 1.04973026 35.45000000 0.24351825 0.16069941 -0.00553292
+Na 8.40559023 5.75611177 8.59891402 -1.30587731 -0.19435754 -0.18695744 22.98976928 0.04993270 -0.17521991 -0.43186916
+Cl 5.59095672 5.74381240 8.46342602 -0.60991249 1.82373547 1.95140475 35.45000000 -0.01601961 -0.24122748 -0.08223195
+Na 8.26461260 8.32512399 5.60134264 0.12329898 0.15275995 -1.40796903 22.98976928 0.08311707 0.18915655 0.07515639
+Cl 5.55741149 8.59008354 5.62536356 -0.26509444 -0.98697540 0.19563394 35.45000000 0.14537959 -0.20393335 -0.18843515
+64
+Lattice="11.28 0.0 0.0 0.0 11.28 0.0 0.0 0.0 11.28" Properties=species:S:1:pos:R:3:momenta:R:3:masses:R:1:mace_forces:R:3 units="_JSON {\"energy\": \"eV\", \"forces\": \"ev/Ang\", \"stress\": \"ev/Ang^3\", \"time\": \"fs\", \"real_time\": \"s\", \"temperature\": \"K\", \"pressure\": \"GPa\", \"density\": \"g/cm^3\", \"momenta\": \"(eV*u)^0.5\", \"target_temperature\": \"K\"}" time=1600.0000000000002 step=1600 density=2.1636163899268923 temperature=265.90778797510325 target_temperature=300.0 model=tests/models/mace_mp_small.model arch=mace mace_stress="-0.009160281484155111 -0.008542973219047473 -0.010733910967384382 6.98133301556982e-05 4.822562132500147e-06 -0.0001826184276522938" mace_energy=-213.51968362562505 system_name=NaCl-tdep-supercell config_type=md pbc="T T T"
+Na -0.07744310 0.01523410 0.03961449 1.02100941 -0.47304818 -0.21587609 22.98976928 0.18575207 0.08527161 -0.19965910
+Cl 2.83554227 -0.00004982 -0.03459396 1.18132936 -1.10419448 -0.89974797 35.45000000 0.05633175 -0.10100786 -0.12665987
+Na -0.00019026 3.17934919 2.96554228 -0.91424960 0.31161458 0.84766674 22.98976928 0.01454173 -0.54075398 -0.74260931
+Cl 2.80342750 2.74163504 2.74024671 -0.98821965 -1.91769717 0.62790160 35.45000000 0.16206751 0.28937708 0.28960321
+Na 2.85743777 -0.18739598 2.64831645 0.50541690 0.42770191 0.74658748 22.98976928 -0.13150231 0.26668608 0.21370863
+Cl -0.00967635 0.23181737 2.79887225 -0.04768460 -0.25822385 -0.69440811 35.45000000 0.19918996 -0.33904694 -0.15356004
+Na 2.86583282 2.77968404 0.06334450 -0.65402353 0.69801334 -0.29543844 22.98976928 -0.16695868 0.07188855 -0.26980323
+Cl -0.08427590 2.83427072 -0.08109395 -0.01865317 0.32067070 -0.21031192 35.45000000 0.03090841 0.15653484 0.41891973
+Na -0.11976725 -0.00326199 5.47224489 -0.65637292 0.75396075 0.21544164 22.98976928 0.19837865 0.16285402 0.32607629
+Cl 2.81165970 -0.19992359 5.80112848 0.74792909 -0.12723054 -1.10609892 35.45000000 -0.01847512 0.43663139 -0.42333801
+Na -0.11314166 2.76311327 8.58834809 -0.65923080 -0.21294672 -0.34978094 22.98976928 -0.02586152 0.00809152 -0.29055112
+Cl 2.58588922 2.72121515 8.37306294 -0.71396149 0.26197731 -0.63640363 35.45000000 0.33327835 0.17979518 0.16309555
+Na 2.95108793 -0.09465006 8.46341268 -0.00319869 0.35957076 1.03090856 22.98976928 -0.61622206 0.19069688 0.10688838
+Cl -0.10810462 0.06168569 8.43374866 0.32046819 -0.21935935 -0.23593471 35.45000000 -0.11748330 -0.25920380 -0.01842351
+Na 2.72543795 3.13181497 5.75316047 -1.30750865 0.46813725 0.38735783 22.98976928 0.06963421 -0.38219179 -0.19691689
+Cl -0.00631415 2.78907164 5.40284773 -0.56539088 1.11830229 -0.62378008 35.45000000 -0.13693718 0.18322285 0.79390829
+Na -0.16090223 5.75010037 0.09846234 -0.82429035 -0.72944319 -0.05975961 22.98976928 0.48205551 -0.30203259 -0.10740935
+Cl 2.69115791 5.65722599 -0.16713517 1.07095189 0.62065367 0.35293666 35.45000000 0.09998350 -0.11474871 0.22447392
+Na -0.00351816 8.51053997 2.64594098 0.52337642 -0.12144095 0.83200338 22.98976928 0.09924066 0.12107922 0.42307005
+Cl 2.86821156 8.36833782 2.66682296 0.06433469 -0.83219013 0.43393564 35.45000000 -0.09830166 0.10368417 0.21954085
+Na 3.13284001 5.68855289 2.68784070 -0.57454996 0.86492034 0.43230290 22.98976928 -0.38508286 -0.17480495 -0.07427230
+Cl 0.11766106 5.76732559 2.93308704 0.32100365 1.86616467 -1.08194111 35.45000000 -0.15058523 0.10739331 -0.41009933
+Na 3.07014964 8.39202070 -0.03593677 -0.34842892 -0.03846793 -0.35929011 22.98976928 -0.04974446 0.08362431 0.12166056
+Cl 0.21266581 8.43880632 0.08126578 -0.69851861 -0.98933943 -1.82441426 35.45000000 -0.33729503 0.08633839 -0.44665263
+Na 0.08651992 5.72244762 5.46149487 -0.02732209 -0.49960287 0.31351523 22.98976928 0.03749017 -0.06678008 0.44541131
+Cl 3.07063144 5.81936651 5.48695721 0.40670499 0.54885125 0.63717205 35.45000000 -0.52370327 -0.07105298 0.13129744
+Na -0.21994192 8.25964071 8.54895950 0.12419219 -0.96701608 -0.38097419 22.98976928 0.44126983 0.44747432 -0.08179348
+Cl 2.96312400 8.44266804 8.57855496 -0.70324214 0.48091714 0.37743597 35.45000000 -0.10232480 0.41729078 -0.13459428
+Na 2.62316230 6.02673729 8.23831532 -0.52560644 -0.11809515 0.74624000 22.98976928 0.18363991 -0.85061784 0.21044596
+Cl -0.09435920 5.57634084 8.24857606 -0.75636402 -1.13870846 -1.20676843 35.45000000 0.01777177 0.11642726 0.07397615
+Na 2.56452047 8.56245755 5.64987560 -0.67107304 0.35471775 -1.77823416 22.98976928 0.69007116 -0.30511310 -0.07861740
+Cl 0.06381963 8.57471232 5.63243067 1.36247892 0.41872623 1.13068051 35.45000000 -0.59724366 -0.29911091 -0.01380587
+Na 5.81657580 0.00635273 -0.00861720 -0.32342464 -1.02822979 1.02399558 22.98976928 -0.40404289 -0.06104660 0.07108177
+Cl 8.42448163 -0.03800528 -0.07723544 -0.07225051 0.37324814 -0.50817264 35.45000000 0.25521040 0.07051499 0.02262174
+Na 5.61963806 2.87580849 2.89656862 -1.83710918 -0.63178886 0.24600382 22.98976928 -0.12006358 -0.33850511 -0.05156200
+Cl 8.36711886 2.69290052 2.85522954 0.70238247 -1.83602938 0.00257691 35.45000000 0.05559135 0.19562769 0.03678523
+Na 8.60800583 -0.06740729 2.82507987 -0.19859024 -0.46840801 1.12489449 22.98976928 -0.35459406 0.17769001 -0.13783424
+Cl 5.51266391 0.01662563 2.71458030 0.45449706 -0.92745233 1.26153693 35.45000000 0.24628326 0.05965397 0.37257621
+Na 8.43791980 2.70097099 -0.02632687 -1.22756979 0.30115267 0.61739976 22.98976928 0.03578071 0.09539671 0.13860419
+Cl 5.66616151 2.80934271 -0.03816797 0.85578788 0.03195865 -0.75314520 35.45000000 -0.04986038 0.08807961 0.25019901
+Na 5.52404550 -0.09840068 5.70163080 1.11857438 -0.00029111 0.33627882 22.98976928 0.06103478 0.00240121 -0.31520683
+Cl 8.37155048 -0.15057810 5.55665935 -1.06348253 -0.48762498 -0.51776662 35.45000000 -0.09768893 0.25329832 0.16591896
+Na 5.48323752 2.83415539 8.56275519 1.88823692 -0.06379939 1.35830513 22.98976928 -0.18530139 -0.01659227 -0.07546849
+Cl 8.20667200 2.89635092 8.55741947 1.81175446 0.61278520 -1.33530390 35.45000000 0.32019125 -0.01735280 -0.37028115
+Na 8.22198475 0.11036838 8.33104078 0.55784310 0.99298804 0.06520598 22.98976928 0.34175214 -0.04402771 0.11751419
+Cl 5.50558128 -0.09577506 8.37291000 -0.03653753 0.96958870 0.04743945 35.45000000 0.50707708 -0.00341383 0.28616941
+Na 8.36277612 2.93119561 5.65898331 0.82866481 0.99727112 -1.26517908 22.98976928 0.10885200 -0.32015541 0.02793852
+Cl 5.58147445 2.85640323 5.81936063 -1.09062231 -0.81085348 -0.66691064 35.45000000 0.00152421 -0.06283302 -0.21722010
+Na 5.96886437 5.65990026 0.16194379 0.22628259 -0.53242684 0.35759369 22.98976928 -0.55832900 -0.06753697 -0.20110211
+Cl 8.50836518 5.56172355 0.11759030 -0.78452004 -0.32852773 0.80684187 35.45000000 0.23951494 0.07736289 -0.18014574
+Na 5.65566180 8.32638025 3.03827813 0.14090573 0.30847728 -0.04406840 22.98976928 0.00538143 0.32864756 -0.36258164
+Cl 8.49732737 8.56032695 2.72270651 -0.42628817 1.32745031 1.20205787 35.45000000 0.26857990 -0.32616202 0.11820541
+Na 8.33452292 5.46807781 2.85260715 0.04055923 -0.51970423 -0.09756937 22.98976928 0.55016669 0.19910600 0.00940242
+Cl 5.80860248 5.60159328 2.93283444 0.05176573 0.17549083 1.67295407 35.45000000 -0.30532796 -0.20337288 -0.09555227
+Na 8.63979310 8.46283146 -0.07427239 -0.73988483 -0.11094451 -1.05804818 22.98976928 -0.02712111 0.00367676 0.51118485
+Cl 5.96312688 8.42054483 0.39587353 2.05788086 1.54016840 -0.44710203 35.45000000 -0.42508944 -0.05189368 -0.66998272
+Na 5.72462765 5.57855074 5.78381974 0.23610016 1.87409186 -0.32003550 22.98976928 0.02644656 -0.01365335 0.03454973
+Cl 8.56632258 5.64029786 5.66323201 0.18965807 0.17690476 -0.32509927 35.45000000 -0.10858567 0.10317762 -0.29438305
+Na 5.73280763 8.40249591 8.67065613 -0.22160607 -0.50751927 0.68910608 22.98976928 -0.09864519 0.00253077 -0.10241881
+Cl 8.48604328 8.60273421 8.66989384 -2.15012815 -0.09420102 -0.66914393 35.45000000 -0.26941227 -0.32785024 -0.60987660
+Na 8.43342405 5.70583380 8.25619015 0.54498493 0.16980157 -0.31117601 22.98976928 -0.16060810 -0.08496882 0.48834907
+Cl 5.49382022 5.63438317 8.64646740 0.13347311 -1.33524525 -0.92137885 35.45000000 0.28964638 0.19234864 -0.14213833
+Na 8.54112285 8.43508256 5.44598712 0.54524256 0.09514102 1.33273137 22.98976928 -0.09564732 -0.00353143 0.16708360
+Cl 5.72296668 8.22541853 5.55673395 1.79611380 -0.39136781 -0.05774571 35.45000000 0.10340017 0.38548720 0.61425922
+64
+Lattice="11.28 0.0 0.0 0.0 11.28 0.0 0.0 0.0 11.28" Properties=species:S:1:pos:R:3:momenta:R:3:masses:R:1:mace_forces:R:3 units="_JSON {\"energy\": \"eV\", \"forces\": \"ev/Ang\", \"stress\": \"ev/Ang^3\", \"time\": \"fs\", \"real_time\": \"s\", \"temperature\": \"K\", \"pressure\": \"GPa\", \"density\": \"g/cm^3\", \"momenta\": \"(eV*u)^0.5\", \"target_temperature\": \"K\"}" time=1700.0 step=1700 density=2.1636163899268923 temperature=257.1309332926978 target_temperature=300.0 model=tests/models/mace_mp_small.model arch=mace mace_stress="-0.009226345088692783 -0.009317304830037731 -0.009835334519602668 0.0001847851080789385 -0.000214391234738517 -4.091092803170335e-05" mace_energy=-213.94460360973227 system_name=NaCl-tdep-supercell config_type=md pbc="T T T"
+Na 0.04721258 -0.00404982 -0.15621825 -0.05531294 -0.39454896 0.05269898 22.98976928 0.11357524 -0.15026539 0.01714863
+Cl 2.80222389 0.06038840 0.04333244 -0.58360582 1.28677618 -0.16750007 35.45000000 -0.12711691 0.05191622 -0.25704759
+Na -0.17258828 2.73976978 2.59708439 0.14217757 -1.55487622 0.10459858 22.98976928 -0.05501085 0.10503899 0.39789928
+Cl 2.41190716 2.87125344 2.99801359 -1.96602100 1.52832572 0.44487067 35.45000000 0.40726796 -0.20755612 -0.32292078
+Na 2.67115989 -0.09191132 2.73721532 -0.37604217 -0.47501804 -1.02876552 22.98976928 0.28503120 0.12242875 -0.10553834
+Cl 0.04124195 -0.13432193 2.63974238 -0.84003698 0.26076943 -0.24089403 35.45000000 -0.32049322 0.53818728 0.19450056
+Na 2.72539933 2.89731162 -0.10754977 -0.16368190 -0.25619269 1.19159725 22.98976928 0.08101845 -0.23109540 0.26313897
+Cl -0.16269421 2.82764518 -0.01586509 1.54164095 -0.23094932 -1.50080890 35.45000000 0.30847200 0.03372741 -0.23203806
+Na 0.09193027 0.13841784 5.68683160 0.38726873 -0.65678859 -0.23631675 22.98976928 -0.21894935 -0.10278001 -0.29164754
+Cl 2.81215056 0.11275661 5.36864692 -0.13863801 -0.55147738 0.79741996 35.45000000 0.09593630 -0.46349628 0.47625321
+Na 0.00684358 2.76567316 8.34552983 0.14314069 0.76761125 0.47459090 22.98976928 0.01975055 0.05729956 0.27727051
+Cl 2.69675815 2.99701906 8.48217132 0.58235881 -1.54379097 -0.23327189 35.45000000 0.19165142 -0.75813786 -0.07079921
+Na 2.60670294 0.00409373 8.43173617 0.85046730 -0.60546807 -0.09030028 22.98976928 0.46121268 0.11280599 0.03681591
+Cl 0.01562065 -0.16614640 8.29345351 1.08697137 1.05354578 0.06603020 35.45000000 -0.04834818 0.31008172 0.32520613
+Na 2.78341521 2.71334155 5.71729147 1.11013172 -0.56210927 -0.65904062 22.98976928 -0.18344304 0.45608555 0.00093729
+Cl -0.04119558 2.92293084 5.76070439 -0.45631517 -1.10042599 0.06987260 35.45000000 0.14717165 -0.20866467 -0.54193397
+Na -0.01723645 5.60401727 -0.10173291 0.02635887 1.08479535 -0.49915812 22.98976928 -0.09353797 0.10622970 0.07384929
+Cl 3.00742563 5.55605353 -0.02829968 -0.85038303 -0.29657694 -0.13201943 35.45000000 -0.65687790 0.11965506 0.01307618
+Na 0.16481099 8.70019618 3.00960561 -0.65519920 -1.03378295 0.99764699 22.98976928 0.00068192 -0.80753834 -0.13673957
+Cl 3.12137206 8.42973348 2.61414789 0.94283713 0.16037283 -0.89026601 35.45000000 -0.31503073 -0.05478480 0.38499183
+Na 2.67361112 5.48430601 2.78290877 0.19313117 -0.02795170 -0.16918514 22.98976928 0.17340416 0.36432717 0.09795999
+Cl -0.01127654 5.89465443 2.68418342 -0.58048689 -1.04457110 -1.25085014 35.45000000 0.15357419 -0.16994959 0.07411817
+Na 3.05118404 8.40759769 -0.06847238 -0.70902871 0.44900965 0.17714925 22.98976928 -0.30782708 0.05712233 -0.03721083
+Cl -0.08750743 8.36029048 -0.24262362 -0.47786911 -0.73041620 0.92057307 35.45000000 0.47225722 0.10267050 0.18887003
+Na 0.09722499 5.68032204 5.59841517 -0.75846682 0.48463688 0.37970417 22.98976928 -0.33109222 -0.02314322 0.01077639
+Cl 2.73737918 5.79383142 5.68365852 -0.10742898 -0.44660837 1.04884326 35.45000000 0.29456040 -0.16104463 -0.01869938
+Na 0.13567048 8.35996375 8.32551307 0.14759263 -0.07508937 -0.54530919 22.98976928 -0.27726005 -0.10084617 0.37109019
+Cl 2.89218202 8.58270161 8.44180288 -0.10343410 -0.47018477 -0.75203742 35.45000000 0.07951176 -0.13591073 -0.01484867
+Na 2.73074698 5.52553601 8.54156391 0.39538817 1.85606535 -0.98557345 22.98976928 0.07372468 0.52422993 -0.23830379
+Cl -0.10264028 5.55512912 8.43514888 0.81515622 1.44789846 2.81978676 35.45000000 0.20427066 0.21860913 0.13839513
+Na 3.16829032 8.46229098 5.55720458 0.95399690 0.23841059 1.65593285 22.98976928 -0.49522331 0.04747609 -0.01671222
+Cl 0.06802797 8.46282773 5.79603257 0.72466235 -0.08304694 -1.39558855 35.45000000 0.20588957 0.16164851 -0.61988075
+Na 5.53649993 0.01205483 0.12118203 0.20937977 1.08189967 -0.98625447 22.98976928 0.20471222 -0.05961260 -0.30103515
+Cl 8.71424997 -0.00393307 -0.10730609 1.06226830 -0.50174336 0.58934938 35.45000000 -0.49114958 -0.12089988 0.24394165
+Na 5.30254985 2.67614980 3.08028034 0.00938646 0.70263063 -0.28831998 22.98976928 0.17688749 0.19868323 -0.44588719
+Cl 8.42962454 2.69496041 2.92367150 -0.14343605 1.82216354 0.76226919 35.45000000 -0.03553172 0.06280992 -0.25178574
+Na 8.39332722 -0.01002189 2.91346300 -0.14156475 0.54374171 -0.77382503 22.98976928 0.15162382 -0.08198717 -0.09407212
+Cl 5.57589586 -0.02194210 2.76902655 0.52556412 -0.34431308 -1.56022763 35.45000000 0.11660620 0.08113408 0.27554689
+Na 8.42496998 2.65543330 0.04568669 0.13443487 0.98168653 -0.58506467 22.98976928 -0.11616710 0.32132668 -0.03823841
+Cl 5.65693205 2.75558726 0.17128994 -0.67709378 -0.16358488 1.50885863 35.45000000 -0.09591916 0.00014994 -0.12283329
+Na 5.61855373 -0.03821992 5.63098135 0.01003195 -0.08527390 0.68496275 22.98976928 0.10376002 0.31423322 0.12955362
+Cl 8.49948003 0.14258250 5.75811751 1.63445984 1.90130665 0.78696822 35.45000000 -0.07027631 -0.46991734 -0.28526917
+Na 5.76216629 2.79646816 8.45751436 -0.14685014 -0.44871062 -0.45115502 22.98976928 -0.04292424 0.20168285 0.11202707
+Cl 8.69874855 2.91665879 8.30137858 -0.50009360 -1.15213924 -0.33475000 35.45000000 -0.67554480 -0.11079218 0.34167302
+Na 8.49501920 0.14700781 8.46949164 0.18813585 -1.28477286 0.35066668 22.98976928 -0.02303070 -0.25306063 -0.02633644
+Cl 5.69082320 0.18449978 8.58945770 -0.14265883 1.16999985 0.48960756 35.45000000 -0.22704358 -0.22121690 -0.12899439
+Na 8.36339019 2.70002374 5.55779201 -0.71971620 -0.33034994 0.78590833 22.98976928 0.13056869 0.53287738 0.23577763
+Cl 5.50750440 2.82180525 5.67611472 0.30985153 -0.11632038 -0.92357157 35.45000000 0.08472155 -0.26354872 0.17651498
+Na 5.50817296 5.55024362 0.20025779 -0.09054762 -0.26008383 0.67034182 22.98976928 0.66126038 0.08886768 -0.11813159
+Cl 8.37563029 5.65676407 0.21433158 -0.36581116 0.02248718 0.40199468 35.45000000 -0.05813414 -0.13252380 -0.23166089
+Na 5.86556802 8.57668450 2.94374882 -0.26785274 -0.93750153 0.28101275 22.98976928 -0.13140998 -0.33015595 -0.19028327
+Cl 8.62308924 8.43848173 2.95892459 0.94448323 -0.88860199 1.08468404 35.45000000 -0.22346884 0.31106801 -0.11389235
+Na 8.55877048 5.64536619 2.88033746 -0.16862346 1.40217633 -0.77195346 22.98976928 -0.19900626 -0.10734469 0.05761978
+Cl 5.49691110 5.44928043 2.94001866 -1.34956319 -0.84970118 -0.24381379 35.45000000 0.07182090 0.16787276 0.05131208
+Na 8.62639992 8.47280624 0.15440397 -0.03868590 -0.41012643 0.53784691 22.98976928 -0.30122124 -0.07228713 -0.23517653
+Cl 5.71125834 8.47825697 -0.01688974 -1.73758733 -1.15011204 -1.09659868 35.45000000 0.24376517 0.01860740 0.06324381
+Na 5.58338363 5.56899562 5.67289886 -0.80210659 -1.02820713 -0.45036552 22.98976928 0.11118077 0.13974741 -0.03022816
+Cl 8.46869477 5.66905276 5.58123252 -0.70890643 0.49638670 0.52397938 35.45000000 -0.06403785 -0.26872618 -0.00448049
+Na 5.58108769 8.54189972 8.44738502 0.39255986 0.93430721 -1.24107266 22.98976928 0.28490510 -0.09273692 0.16149185
+Cl 8.32132489 8.35581437 8.28465732 0.92836501 -0.67251590 0.22649234 35.45000000 0.11679665 0.19367330 0.42078165
+Na 8.37168935 5.66179785 8.61230738 1.10285306 0.08177411 0.72818374 22.98976928 0.09547851 0.00222799 -0.15471844
+Cl 5.63197416 5.50497595 8.37618933 0.27086537 -0.07657024 -0.42239684 35.45000000 -0.12113217 0.10395934 0.22820797
+Na 8.58766533 8.34195563 5.66176991 0.06347841 0.01964184 -0.41088014 22.98976928 -0.02004661 0.18194929 0.06731636
+Cl 5.76261503 8.63045981 5.73710217 -1.00634960 1.06208298 -0.29730688 35.45000000 0.00320562 -0.25038709 -0.22996172
+64
+Lattice="11.28 0.0 0.0 0.0 11.28 0.0 0.0 0.0 11.28" Properties=species:S:1:pos:R:3:momenta:R:3:masses:R:1:mace_forces:R:3 units="_JSON {\"energy\": \"eV\", \"forces\": \"ev/Ang\", \"stress\": \"ev/Ang^3\", \"time\": \"fs\", \"real_time\": \"s\", \"temperature\": \"K\", \"pressure\": \"GPa\", \"density\": \"g/cm^3\", \"momenta\": \"(eV*u)^0.5\", \"target_temperature\": \"K\"}" time=1800.0 step=1800 density=2.1636163899268923 temperature=296.7693717848826 target_temperature=300.0 model=tests/models/mace_mp_small.model arch=mace mace_stress="-0.008796592067687544 -0.009146410274504031 -0.008505377966551243 0.00014276924589102694 -2.7209993972574943e-06 4.2524144876359575e-05" mace_energy=-213.7079052729123 system_name=NaCl-tdep-supercell config_type=md pbc="T T T"
+Na 0.11866334 -0.11496947 -0.02441112 0.24997183 0.98823225 0.21607013 22.98976928 -0.13709776 0.46821857 0.06433231
+Cl 2.84365880 -0.04684405 -0.00480547 1.40439662 -2.34581975 0.23493120 35.45000000 0.09006889 -0.08337741 0.12971898
+Na -0.23312823 2.75049242 2.78001128 1.04845071 1.43060288 0.85716450 22.98976928 0.26177574 -0.23193067 -0.11314005
+Cl 2.66879850 2.73527997 2.90081009 2.92267818 -2.07837232 -1.11141192 35.45000000 0.05536634 0.07946736 0.01258612
+Na 2.83386503 -0.00972757 2.71141539 -0.01107457 -0.39336923 1.29585810 22.98976928 -0.03842593 -0.11214022 0.27184277
+Cl -0.17551402 -0.14569945 2.77069911 0.13947820 0.12592817 0.93852509 35.45000000 0.27889321 0.25883127 -0.23985432
+Na 2.79268887 2.71343396 0.24820182 1.44982217 -0.02155572 0.28310448 22.98976928 -0.01414402 0.09450158 -0.35339836
+Cl 0.02542248 2.83807228 -0.09108148 0.16010591 0.10959915 2.24373420 35.45000000 -0.08710967 -0.09995768 -0.02387535
+Na -0.07562730 0.09431338 5.41282322 -0.45434766 1.09700331 -1.15663318 22.98976928 0.26995820 -0.11627654 0.28062332
+Cl 2.87131083 -0.06017018 5.50959654 -0.15110698 0.22229340 -0.07555106 35.45000000 -0.10540515 0.25224917 0.00977932
+Na 0.08141263 2.90503089 8.29310875 0.90580551 -0.47311808 0.18639580 22.98976928 -0.00654339 -0.09832173 0.34725809
+Cl 2.86531043 2.58841229 8.46943786 -0.35924982 0.57232859 -0.38858382 35.45000000 -0.33925807 0.80930005 -0.07365514
+Na 3.07041079 0.05779412 8.41493840 0.29462314 -0.69690798 -0.16960785 22.98976928 -0.23286873 -0.42101442 -0.09827156
+Cl 0.30183924 0.04022365 8.47174766 -0.56255441 0.83956405 -0.15212986 35.45000000 -0.55201823 0.17334640 -0.05945187
+Na 2.59300883 3.00342689 5.64505509 -0.46480589 -0.02045326 0.29607042 22.98976928 0.44937413 -0.30938363 -0.00995053
+Cl -0.04034986 2.86764618 5.55795950 0.14438216 0.81792787 -0.19497156 35.45000000 -0.30446626 -0.01913088 0.23657417
+Na -0.06382616 5.67909174 0.05576335 -1.03707973 0.02818779 -0.72599247 22.98976928 -0.10282058 -0.12936239 -0.17313579
+Cl 2.60573773 5.61463725 -0.05811684 0.23781839 1.48648532 -1.55809047 35.45000000 0.32055105 0.01144627 0.04700974
+Na 0.18271130 8.24090484 2.54524986 0.40969868 0.45027820 -0.88465859 22.98976928 -0.15812301 0.12240656 1.11947363
+Cl 3.03251747 8.33612483 2.90474179 -1.39133577 0.33899538 0.41436886 35.45000000 -0.22073898 0.37157075 -0.43345521
+Na 2.76644353 5.74885047 2.71714905 0.05059594 0.04592202 1.00127090 22.98976928 -0.19070297 -0.44975607 0.20325585
+Cl -0.01142607 5.37070997 2.81025725 -0.22783143 -1.39174942 2.06860907 35.45000000 -0.13307081 0.60159488 -0.04617726
+Na 2.82983236 8.38845788 0.03925088 0.72670856 -0.31035612 -0.08139091 22.98976928 0.39078407 0.12307554 -0.08787655
+Cl 0.22714784 8.55384335 0.14424348 0.53201507 -0.50562058 1.09646988 35.45000000 -0.48310629 -0.31212999 -0.78647372
+Na -0.35645821 5.62037052 5.60327218 0.01179100 0.03705135 -0.20537532 22.98976928 0.51015856 0.27223720 -0.00600267
+Cl 2.65159678 5.69642624 5.62023800 -0.59911009 -0.16105220 -1.00859130 35.45000000 0.14578407 -0.02195331 0.21810536
+Na 0.14254184 8.74235618 8.63431324 0.40645414 1.34268171 0.70576960 22.98976928 0.18018292 -0.51901710 -0.30605169
+Cl 2.95169286 8.52243316 8.47038971 0.36972015 -0.35213735 0.42018252 35.45000000 -0.07142870 -0.06685207 -0.00018194
+Na 2.89187700 5.80651386 8.53592559 0.17190574 -1.31869293 0.48790787 22.98976928 -0.18357433 -0.15707544 -0.24394712
+Cl -0.01868040 5.79082636 8.43662372 -0.55395473 -0.52127710 -1.25897619 35.45000000 -0.08378644 -0.19927130 -0.00233494
+Na 2.69988857 8.47519895 5.53867288 -1.46229172 -0.06311270 -1.04309169 22.98976928 0.44420572 0.06864455 0.28143717
+Cl 0.13362426 8.60774308 5.47419583 -0.68797390 0.54711338 -0.52329993 35.45000000 -0.53559998 -0.25974989 0.11025514
+Na 5.67947799 -0.10976850 0.01869022 -0.55142391 -0.84860958 0.36120725 22.98976928 -0.20000289 0.20607584 -0.14940007
+Cl 8.36072684 -0.11695636 0.09674761 -1.14161712 -0.57539441 -0.60146445 35.45000000 0.38077551 0.06028532 -0.30722505
+Na 5.64123190 2.61634916 2.68723992 0.77037237 -0.92429833 0.63175079 22.98976928 -0.15607081 0.29334503 0.43644414
+Cl 8.34948327 3.03094996 2.76093763 0.12132021 -0.41486471 -0.76781004 35.45000000 0.10517677 -0.43012736 -0.00700197
+Na 8.41627239 -0.00491195 2.75105703 -0.11674235 -0.83996417 0.48832995 22.98976928 -0.13503197 0.07054478 0.28197066
+Cl 5.60921882 -0.03381525 2.72139126 -0.85699981 0.07641542 0.46039125 35.45000000 0.14203120 -0.18869265 0.10753963
+Na 8.56911993 2.93991992 -0.05924460 -0.07671030 -1.32037262 0.88216933 22.98976928 -0.21865190 -0.21593902 0.39557710
+Cl 5.55003085 2.80917337 0.11242049 0.13071050 0.83587394 -1.70298226 35.45000000 0.01577035 0.09449495 -0.29227488
+Na 5.79745977 0.14423933 5.80411628 0.40747067 -0.69300241 -0.84262922 22.98976928 -0.28990920 -0.13257846 -0.27317217
+Cl 8.46865765 0.10238466 5.67909504 -0.54803149 -1.37595951 0.06162557 35.45000000 0.32006814 0.12786941 0.08751285
+Na 5.43619147 2.92185417 8.48508310 -0.97017396 -0.59686594 0.35665760 22.98976928 0.35656676 -0.29987635 0.03449830
+Cl 8.21745508 2.65287705 8.71564993 -1.53348437 0.80492318 1.22302365 35.45000000 0.46515367 0.21939698 -0.55801997
+Na 8.67975064 -0.30287638 8.63110532 0.40170021 1.97367120 0.03780853 22.98976928 -0.21853113 0.62340051 -0.20450362
+Cl 5.66645797 0.07855717 8.46801588 2.22072648 -1.18408567 -0.61644900 35.45000000 0.39023667 -0.22344246 0.27114547
+Na 8.54062227 3.10288854 5.89144829 -0.34878373 -0.15855142 0.63706787 22.98976928 -0.32123947 -0.65556196 -0.13303507
+Cl 5.74545500 2.81899235 5.65066650 0.54167978 0.97602579 0.36626384 35.45000000 -0.14295689 0.15397689 -0.06383775
+Na 5.53230383 5.64357338 -0.03448635 -0.55719950 -0.12452129 -1.84066998 22.98976928 -0.09038183 -0.16548111 0.20369931
+Cl 8.32206256 5.68013238 -0.03120158 0.91463360 0.77893225 -0.73290125 35.45000000 0.26324393 0.15101226 0.35384903
+Na 5.81031729 8.35722310 2.82624005 -0.57170754 0.26075129 0.66313441 22.98976928 -0.19228621 0.16524255 0.09560412
+Cl 8.50427105 8.49654261 2.88455554 -1.01442768 -0.10744173 -0.63732402 35.45000000 0.09103973 -0.36473315 -0.26832544
+Na 8.32054535 5.62463400 2.77633780 -1.65076068 0.48812361 -0.64748879 22.98976928 -0.02337195 0.24975314 0.04297448
+Cl 5.36465455 5.62227885 2.83070442 0.45611361 1.49318498 -0.82942283 35.45000000 0.53566047 -0.08539895 -0.09854071
+Na 8.34212351 8.45963084 -0.03791477 0.19901893 0.54653806 -0.87105687 22.98976928 0.23881560 -0.04785793 0.26076100
+Cl 5.67852935 8.39155018 -0.17862249 -0.23951117 -0.34097638 0.80195150 35.45000000 -0.16698603 -0.04007062 0.34195782
+Na 5.61283165 5.53630996 5.64647653 -0.76356439 1.34142923 1.08571995 22.98976928 -0.31792190 0.20596395 -0.04784256
+Cl 8.25087879 5.62770787 5.57090509 -0.79407894 0.76140440 1.13471036 35.45000000 0.28130388 0.39314479 0.19009607
+Na 5.84690696 8.47360749 8.46726454 0.39414964 0.27547142 -0.22341287 22.98976928 -0.23508236 0.09105409 -0.34705550
+Cl 8.65745375 8.35333486 8.52339402 1.02273905 0.41800854 0.80196123 35.45000000 -0.01526586 0.07547022 -0.07482837
+Na 8.41201799 5.61048487 8.67135789 -0.10175023 -1.28763746 -1.50884225 22.98976928 0.06239636 -0.12614707 -0.42152292
+Cl 5.65422309 5.58622851 8.53996050 0.23369196 -0.00103075 -0.11485230 35.45000000 -0.06421724 0.22277226 -0.22579461
+Na 8.66903841 8.63806336 5.65911094 -0.40412839 0.80638299 0.22042846 22.98976928 -0.18728094 -0.11479049 -0.06057916
+Cl 5.87843309 8.69681361 5.64595790 0.75306315 -0.87016002 -0.48497189 35.45000000 -0.08986405 -0.41329479 0.15431192
+64
+Lattice="11.28 0.0 0.0 0.0 11.28 0.0 0.0 0.0 11.28" Properties=species:S:1:pos:R:3:momenta:R:3:masses:R:1:mace_forces:R:3 units="_JSON {\"energy\": \"eV\", \"forces\": \"ev/Ang\", \"stress\": \"ev/Ang^3\", \"time\": \"fs\", \"real_time\": \"s\", \"temperature\": \"K\", \"pressure\": \"GPa\", \"density\": \"g/cm^3\", \"momenta\": \"(eV*u)^0.5\", \"target_temperature\": \"K\"}" time=1900.0 step=1900 density=2.1636163899268923 temperature=295.42497481419986 target_temperature=300.0 model=tests/models/mace_mp_small.model arch=mace mace_stress="-0.00766702975097846 -0.010428686857238781 -0.009592744063598701 0.00018196354627649357 0.00012311900130098274 -0.00016753381162612255" mace_energy=-213.79127923623173 system_name=NaCl-tdep-supercell config_type=md pbc="T T T"
+Na 0.16383978 0.07191895 0.09602418 0.08497117 -0.51952280 -0.29458868 22.98976928 -0.28077061 -0.14410699 -0.15515894
+Cl 2.84012223 -0.18709295 -0.07221013 -0.79753690 1.28521985 -0.84972684 35.45000000 0.10535878 0.02008558 -0.02486275
+Na 0.20994919 2.82471278 2.91195734 1.32224944 0.29602151 -0.88794380 22.98976928 -0.33775707 0.20232187 0.04491453
+Cl 2.99709952 2.67835197 2.85315858 -0.90150046 0.42393537 0.14902445 35.45000000 -0.05638460 -0.11448678 -0.10872501
+Na 2.75434352 -0.12377404 2.87396921 0.74770673 1.07179779 -0.40855475 22.98976928 0.17077387 0.31506407 -0.16271328
+Cl 0.03796494 0.20908910 2.81683753 0.88692789 1.09062216 0.40978207 35.45000000 -0.10115616 -0.51637274 0.19610122
+Na 2.79625823 2.81373540 -0.07588961 -0.50659143 -0.32444698 0.41140155 22.98976928 0.08414153 -0.11170288 0.11257914
+Cl 0.05319991 2.77026885 0.18050122 -0.68350904 0.32196346 -0.56843544 35.45000000 -0.12215614 0.24436399 -0.21062070
+Na 0.14460398 0.07408872 5.81537063 0.37638377 -0.41041669 2.00250879 22.98976928 -0.13466702 0.03717060 -0.41817767
+Cl 3.05538174 0.11242662 5.61201361 2.35022579 -0.13451767 0.83183716 35.45000000 -0.23358498 -0.29389291 0.09220467
+Na -0.04921635 2.86969534 8.62507987 -0.96972114 0.32150453 0.69889926 22.98976928 -0.01739033 -0.03742175 -0.17751309
+Cl 2.71828156 2.89718044 8.47996513 0.97802980 0.01753636 0.30279036 35.45000000 0.19920252 -0.61000005 0.00406918
+Na 2.92220913 -0.21497437 8.26924323 -0.62667515 0.28520825 1.80565073 22.98976928 -0.00265607 0.38231710 0.33702053
+Cl -0.00390226 0.19399227 8.38798415 0.25312148 -0.03607580 0.62654634 35.45000000 0.28693692 -0.25835177 0.49486309
+Na 2.83543691 2.70610879 5.62395935 0.46783621 -0.14519876 -0.58842355 22.98976928 -0.20636247 0.35227914 0.17404034
+Cl -0.17034872 2.84017859 5.65598981 0.47104452 -0.97185717 0.03407231 35.45000000 0.19723335 -0.02340341 -0.02167272
+Na -0.10000034 5.63728694 -0.28730263 0.88382271 0.02424733 -0.03692653 22.98976928 0.07334733 -0.06208007 0.38947743
+Cl 2.72871238 5.58919348 0.01725394 0.14725149 -0.68525492 2.23893637 35.45000000 -0.10147322 0.02977211 -0.02729085
+Na -0.15210388 8.52349234 2.99086189 -1.35914866 -0.03652514 -0.43800016 22.98976928 0.25383013 -0.04086135 -0.14182612
+Cl 2.72677626 8.59205249 3.13951291 -0.22524258 0.62518445 1.60418396 35.45000000 0.03787322 -0.38673492 -0.52591688
+Na 2.68693907 5.28278626 2.88187979 -1.01553012 -0.82674489 -0.91228559 22.98976928 0.05997409 0.49671105 -0.04964989
+Cl 0.00962743 5.66786567 2.95817151 -0.49551009 1.16652501 -0.90985046 35.45000000 -0.13770692 -0.08160369 -0.38028502
+Na 3.00611981 8.25825970 0.16898492 -1.39054317 -1.22712936 1.40166533 22.98976928 -0.23165059 0.17664823 -0.07532766
+Cl 0.09675350 8.42105786 0.09295148 -0.95960531 0.52560796 1.15266678 35.45000000 0.24967657 0.06210629 0.05327033
+Na -0.13868423 5.67155558 5.55267801 0.07027309 0.24299635 -0.04487135 22.98976928 0.05319353 -0.03461315 0.18861905
+Cl 2.69793724 5.49488266 5.72244570 0.28517712 -0.68584227 0.41452585 35.45000000 -0.01861352 0.13867250 -0.92415778
+Na 0.22537802 8.46262362 8.68578714 -1.08209667 -0.76567340 -0.75542493 22.98976928 -0.15581425 0.07910559 -0.32071887
+Cl 2.98244179 8.44452098 8.22862577 0.95882108 -0.63779291 -1.14888790 35.45000000 -0.23136371 -0.07472699 0.57416696
+Na 2.63701638 5.46438160 8.17296468 -1.02141284 -0.31549716 -0.72005105 22.98976928 0.29979978 0.33200492 0.66986237
+Cl 0.01824525 5.54949066 8.27631763 -0.53876308 -0.47071940 -0.27854606 35.45000000 -0.31642225 0.25194914 0.24879446
+Na 2.71927896 8.51757701 5.71383337 0.14358350 -0.06544146 -1.11891212 22.98976928 0.11145871 -0.13588233 -0.17300735
+Cl -0.09232048 8.56879428 5.74264949 0.25550693 0.13018496 2.79572682 35.45000000 0.40319777 -0.03610117 -0.01310811
+Na 5.57180882 -0.17403325 -0.12807501 0.84575830 0.22818106 0.02806042 22.98976928 0.18834394 0.19916461 0.18376786
+Cl 8.40959219 0.00455977 -0.02317571 1.00701817 1.29272664 0.53193000 35.45000000 0.12857932 -0.02741784 0.11231011
+Na 5.66838985 2.97922146 3.03852572 0.07341223 1.06626421 0.37269769 22.98976928 -0.03229333 -0.15618502 -0.24417763
+Cl 8.34827326 2.63505858 2.89787167 -0.64480111 -1.29679763 0.69503814 35.45000000 -0.07077350 0.33880036 -0.03786358
+Na 8.41224113 -0.21333640 2.92297335 0.20973956 -0.92459625 0.19104316 22.98976928 0.21551807 0.31338580 -0.14267073
+Cl 5.73664798 -0.08374660 2.82491835 0.06499558 1.19036363 -0.59949514 35.45000000 -0.26433379 0.28313175 -0.11503334
+Na 8.20156129 2.68833482 0.15326314 -0.44216050 0.98204245 -0.80432977 22.98976928 0.41089607 0.18552553 -0.09720765
+Cl 5.61191061 2.83047944 -0.08788946 -0.04547166 -0.81942512 0.43178598 35.45000000 -0.27403979 -0.02819468 0.12711592
+Na 5.76403651 0.06451824 5.51332505 0.21205934 0.22505289 -0.07254437 22.98976928 0.10228369 -0.14430418 0.24466132
+Cl 8.61705946 -0.00981836 5.71134519 0.11388247 -0.18132647 -1.03885263 35.45000000 -0.31278384 -0.14366781 -0.12474628
+Na 5.66173089 2.66102520 8.48510741 0.92858662 -0.19004653 -0.83624300 22.98976928 -0.19373902 0.25025422 0.03424104
+Cl 8.37881832 2.97980834 8.46915940 2.32484754 0.89852210 -0.41393657 35.45000000 0.08199905 -0.28486037 0.04524689
+Na 8.52809099 0.23548099 8.49120927 0.18244257 -0.55790816 -1.05357553 22.98976928 0.10363974 -0.29948914 0.00134099
+Cl 5.84953679 -0.10958685 8.44982429 -2.39294238 -0.30881635 0.27180417 35.45000000 -0.34147125 0.10679856 -0.21450494
+Na 8.30835954 2.61559521 5.59782231 0.14793302 -0.43972231 -2.02920037 22.98976928 0.19805859 0.36178189 0.15881915
+Cl 5.53937239 3.01664844 5.82586148 -1.31124338 -0.44822465 0.74153817 35.45000000 0.28622331 -0.21943755 -0.33146691
+Na 5.50761356 5.65559591 -0.22882939 -0.02045818 0.56664218 -0.05544908 22.98976928 0.11839327 -0.10650528 0.02904295
+Cl 8.44509733 5.68089554 -0.08296662 -0.33186990 -0.93555529 -0.49444335 35.45000000 -0.05770229 -0.18916830 0.00520739
+Na 5.57699246 8.57869016 2.76079610 -0.08057386 0.60328543 -1.28364287 22.98976928 0.05225527 -0.26817321 0.07570645
+Cl 8.43443996 8.40587243 2.63708130 -0.83129355 0.56667958 0.78999438 35.45000000 0.01910218 -0.03215157 0.36663093
+Na 8.09593208 5.68430302 2.83315182 1.27609488 -1.39832646 0.74657385 22.98976928 0.42898209 -0.08222427 -0.09264517
+Cl 5.44854407 5.78444025 2.60593793 -0.38883110 -1.30074254 -0.01578363 35.45000000 -0.07818045 -0.19217378 0.24420933
+Na 8.68251315 8.50305587 0.02708538 0.34228869 -0.15550687 -0.69086414 22.98976928 -0.25768911 -0.03045324 -0.29331625
+Cl 5.70808966 8.37685070 -0.09066839 1.20656308 0.31723515 -0.42343294 35.45000000 -0.07802854 0.05317525 0.13873742
+Na 5.43449286 5.88973659 5.62060309 0.74861891 -0.58892722 -0.81331371 22.98976928 0.07230175 -0.36791973 -0.16088259
+Cl 8.35410477 5.86552013 5.63930270 1.12969430 -1.01054458 -2.23824455 35.45000000 -0.02685564 -0.73073889 -0.22844606
+Na 5.94844459 8.38218341 8.46079843 0.08962963 -0.93411614 0.95761144 22.98976928 -0.10361086 0.16019493 -0.14777466
+Cl 8.74890957 8.62633865 8.50247365 -1.35567616 0.65407773 -0.58907909 35.45000000 -0.11914381 -0.28629624 0.17615828
+Na 8.42113702 5.56069216 8.29255976 0.11913344 1.45242190 0.96970458 22.98976928 -0.06229212 0.37779920 0.21745358
+Cl 5.37526429 5.78548679 8.24680591 -0.75184090 0.88009040 -0.31193101 35.45000000 0.40428347 -0.28300067 0.47032663
+Na 8.59032006 8.36087430 5.74404679 -0.05674325 0.43956943 0.53698491 22.98976928 -0.21003240 0.56865200 -0.04149784
+Cl 5.86175015 8.41171655 5.58373516 -0.47833845 0.55752922 -0.41919409 35.45000000 -0.22795820 0.51546847 -0.02799323
+64
+Lattice="11.28 0.0 0.0 0.0 11.28 0.0 0.0 0.0 11.28" Properties=species:S:1:pos:R:3:momenta:R:3:masses:R:1:mace_forces:R:3 units="_JSON {\"energy\": \"eV\", \"forces\": \"ev/Ang\", \"stress\": \"ev/Ang^3\", \"time\": \"fs\", \"real_time\": \"s\", \"temperature\": \"K\", \"pressure\": \"GPa\", \"density\": \"g/cm^3\", \"momenta\": \"(eV*u)^0.5\", \"target_temperature\": \"K\"}" time=2000.0 step=2000 density=2.1636163899268923 temperature=275.67817261630915 target_temperature=300.0 model=tests/models/mace_mp_small.model arch=mace mace_stress="-0.008422261078712029 -0.00872096846256095 -0.009526834188990784 3.420241027577341e-05 -7.848171563656578e-06 -0.00014598749805090378" mace_energy=-213.96303727111004 system_name=NaCl-tdep-supercell config_type=md pbc="T T T"
+Na 0.00240967 -0.06825779 0.18144993 0.55603219 0.05832726 0.04812263 22.98976928 0.22304619 0.08088982 -0.00575061
+Cl 2.74625421 -0.04152071 0.08351490 0.09354943 0.28452426 1.94723960 35.45000000 0.11400538 -0.17059833 -0.00579894
+Na 0.01115049 2.93142208 3.01504181 -0.92985647 -0.63806279 -0.66520012 22.98976928 -0.02020858 -0.20050744 -0.40513459
+Cl 2.79117857 2.79344312 2.87301299 -0.87342194 0.58331665 0.99118438 35.45000000 -0.15769952 0.07173276 0.08585169
+Na 2.95157636 0.11851555 2.80577956 -0.32892031 -0.54077440 0.03700178 22.98976928 -0.30221692 -0.21627633 0.14214478
+Cl 0.03426497 -0.04048982 3.09653487 0.32528266 -1.91149992 -0.71965201 35.45000000 0.16446067 0.15702562 -0.48530999
+Na 2.61767035 2.57591917 0.12155774 -0.54463809 0.06471310 -0.29654011 22.98976928 0.05282057 0.43726625 -0.07755093
+Cl -0.17790139 2.93884530 0.07967988 -0.13195863 0.09478012 0.31215093 35.45000000 0.27225078 -0.31459366 0.05753082
+Na 0.21524250 0.03010360 5.75995187 -0.41086946 -0.51964153 -0.40993042 22.98976928 -0.21615932 -0.29990871 0.14565392
+Cl 2.91152248 -0.08738830 5.65538451 -2.54346334 0.43644023 -0.33942341 35.45000000 0.11859673 0.10424658 0.02183770
+Na 0.11460092 2.81058107 8.47487091 0.58349234 -0.25459291 -0.10300411 22.98976928 -0.29185280 0.07012514 0.11905988
+Cl 2.77813936 2.85772682 8.58474779 -0.47306771 1.35174460 0.24671636 35.45000000 0.01614167 0.19523975 -0.14682712
+Na 2.84838545 0.11137438 8.47729112 0.28072210 -0.07839376 -0.90473029 22.98976928 0.06315617 -0.22896619 0.08068457
+Cl 0.25814888 -0.13482749 8.72123211 0.30249247 -0.76180147 -0.24305288 35.45000000 -0.48686699 0.30118327 -0.32882316
+Na 2.84153722 2.70780151 5.84550397 0.88280241 -0.31142380 0.10337933 22.98976928 0.14402350 0.06960232 -0.28126188
+Cl 0.07826274 2.73965863 5.62850628 0.91492568 -0.00014995 1.04689908 35.45000000 -0.05941493 0.21125305 0.28624155
+Na -0.01714755 5.60560653 0.06015281 -0.81890601 0.40893007 0.54769739 22.98976928 -0.09858303 0.11234106 -0.34179831
+Cl 2.70304549 5.54956016 0.04650689 0.70666375 0.39729387 -0.99124648 35.45000000 0.19241864 0.13906765 -0.02468085
+Na -0.07852564 8.54460166 2.85915963 1.16915055 0.52727335 0.80813962 22.98976928 0.08066212 -0.08242387 0.18301025
+Cl 2.75784826 8.53659745 2.73818558 -1.00081420 -0.47683706 -0.53146773 35.45000000 0.06440619 -0.02667345 0.61287825
+Na 2.63718809 5.65568920 2.86878387 -0.19843463 1.02177619 0.39758439 22.98976928 0.26296098 -0.03351849 -0.50619336
+Cl -0.07126116 5.75329426 2.68693329 0.85155335 0.60077492 -0.78237564 35.45000000 0.01517835 -0.16358316 0.36454264
+Na 2.66633031 8.41809999 0.26079505 0.88723621 1.29873181 -1.83423225 22.98976928 0.20867875 -0.02982422 -0.70169312
+Cl -0.02083290 8.40211412 0.08816179 -0.94745366 -0.80520803 -1.36195245 35.45000000 -0.19146390 0.03833050 0.07354958
+Na -0.01217301 5.55648827 5.42862150 -0.05566103 0.26475258 -0.72763319 22.98976928 -0.10832195 0.25708409 0.35172360
+Cl 2.68963835 5.51872796 5.40290898 0.32959981 0.72150750 -1.07235154 35.45000000 0.32524545 0.06534275 0.66626268
+Na 0.09162969 8.37634922 8.67207834 0.22460321 0.84810895 1.26885179 22.98976928 -0.07845262 0.22222506 -0.20359120
+Cl 2.87156379 8.39305979 8.41705963 -0.83994520 0.21697354 1.93386995 35.45000000 0.08482732 0.00872169 0.12151510
+Na 2.91609221 5.75022016 8.63602932 1.70476319 0.23061088 1.31528307 22.98976928 -0.14802878 -0.25683524 -0.17946850
+Cl -0.15150453 5.75748031 8.47439499 0.39766062 1.28396825 2.38388811 35.45000000 0.46806441 -0.39458807 -0.07828348
+Na 2.96835828 8.34969977 5.59241131 0.32728949 0.22348580 -0.40071768 22.98976928 -0.47665824 0.06066643 0.03253156
+Cl 0.11169073 8.46426147 5.89972155 -0.94120377 -0.83603533 -1.80238497 35.45000000 -0.17395216 -0.07450590 -0.36855714
+Na 5.84369560 0.21858581 0.00058131 -0.35642860 -0.16597563 0.12547376 22.98976928 -0.21225819 -0.37758966 -0.05873987
+Cl 8.67900741 0.14695603 0.08414153 -0.08460435 -0.72638676 -0.58176968 35.45000000 -0.41391925 -0.22965779 -0.32413848
+Na 5.53868766 2.76129736 2.78361491 -0.63871750 -0.98350414 -0.84852313 22.98976928 0.02575973 0.46958121 -0.00868305
+Cl 8.37345611 2.76627438 2.79226858 -0.14996683 1.31791839 -0.47784975 35.45000000 0.09776222 -0.17591474 0.12090553
+Na 8.64582257 0.14411149 2.70485640 -0.17759531 1.23748378 -0.40110948 22.98976928 -0.21159752 -0.28332055 0.35460432
+Cl 5.60343750 0.22568650 2.72746390 0.25903186 -0.00087281 -0.03562228 35.45000000 0.31001826 -0.65679121 0.01675807
+Na 8.40285247 2.79981153 -0.04008454 0.99654475 -1.29968489 -0.06703999 22.98976928 -0.07696173 0.10182612 -0.13144528
+Cl 5.38972163 2.80815990 -0.14614267 -0.22730120 0.63295010 -1.27183820 35.45000000 0.35729503 0.13266028 0.39131793
+Na 5.69525776 -0.11602032 5.62735056 -0.25000371 -0.05435079 -0.15110559 22.98976928 0.05759694 0.30883809 -0.03939994
+Cl 8.59588308 0.03249843 5.49916454 -0.76766702 1.08021277 -0.24773144 35.45000000 -0.19537704 -0.10078644 0.29600896
+Na 5.65087125 2.90959998 8.57068355 -0.43591160 0.85224423 0.74054909 22.98976928 0.06375744 -0.25615138 -0.44197437
+Cl 8.57543263 2.85846457 8.28034767 -1.48112051 -1.06947430 -0.18238047 35.45000000 -0.01338134 -0.19798671 0.49497816
+Na 8.58749357 -0.00162721 8.32667922 0.09499815 -0.17558255 0.66900703 22.98976928 0.02206955 0.10883129 0.10346102
+Cl 5.49899520 0.05395624 8.53363797 0.12505660 1.14811421 0.54030883 35.45000000 0.45750629 -0.02888506 -0.13671274
+Na 8.49523215 2.98042564 5.72546472 0.59108353 0.41003782 1.04177900 22.98976928 -0.06444038 -0.30775690 -0.35728323
+Cl 5.70725456 2.66141180 5.62975463 1.87417631 -0.12608720 -1.35022016 35.45000000 -0.16422301 0.24473648 0.14648763
+Na 5.67314307 5.68847752 -0.17824826 -0.18992328 0.46231785 1.90607592 22.98976928 -0.20107953 -0.05965625 0.30478527
+Cl 8.38786955 5.50301052 -0.07324615 0.42031633 0.76877862 0.62172653 35.45000000 0.05221531 0.15253015 0.02482450
+Na 5.51849533 8.55731879 2.64817769 -0.30162521 -0.46744177 0.02127488 22.98976928 0.15881398 -0.10048206 0.10497684
+Cl 8.46948691 8.35207542 2.82033345 0.73628272 -1.19988999 -0.23270298 35.45000000 -0.16728446 0.17015969 -0.00134371
+Na 8.54040130 5.23355255 2.56212131 0.25879018 0.37443334 -0.65532834 22.98976928 -0.24394294 0.81372326 0.21669714
+Cl 5.46504149 5.59067301 2.62253558 -0.02469038 -0.27926087 0.37068712 35.45000000 0.18185902 0.04486489 0.11393774
+Na 8.35538388 8.42893077 0.19003862 -0.18597839 -0.89911601 1.15045000 22.98976928 0.27417577 0.00694473 -0.28195653
+Cl 5.72302861 8.52341514 -0.02109743 -0.97041902 -0.23114123 0.34205609 35.45000000 -0.30981449 0.07110571 -0.10076607
+Na 5.68365527 5.52990596 5.36662773 0.80698734 -0.67039241 -0.20350938 22.98976928 -0.09574165 -0.01567306 0.12129659
+Cl 8.43574024 5.64062572 5.41281074 -0.35305354 0.74888467 0.87896812 35.45000000 0.06390527 0.17648207 0.10083922
+Na 5.48649289 8.57738166 8.32046808 -1.34628422 0.85501956 0.58074459 22.98976928 0.36141823 -0.10644064 0.20029867
+Cl 8.44494306 8.57706582 8.67217825 -0.33993003 -1.28826609 -0.17212278 35.45000000 -0.20590848 0.18954757 -0.30441396
+Na 8.55321843 5.94586576 8.46451826 0.23888920 -1.27528596 -0.95106436 22.98976928 -0.24660532 -0.36421341 -0.13012853
+Cl 5.79074311 5.54000715 8.45536463 2.57287810 -0.43538962 -0.59481885 35.45000000 -0.22563278 0.43954411 -0.39118544
+Na 8.37994965 8.53653725 5.49727683 0.50059905 -1.47393174 -1.04606311 22.98976928 0.27616101 -0.09178603 0.17616574
+Cl 5.59875912 8.48159091 5.42061188 -0.69361844 -0.84997358 0.27958587 35.45000000 0.22678991 -0.18782450 0.21553248
diff --git a/tests/test_md_cli.py b/tests/test_md_cli.py
index ac8396060..efe583949 100644
--- a/tests/test_md_cli.py
+++ b/tests/test_md_cli.py
@@ -347,6 +347,7 @@ def test_summary(tmp_path):
"minimized_initial_structure": None,
"rdfs": None,
"vafs": None,
+ "tdep_inputs": None,
"correlations": None,
"log": log_path,
"summary": summary_path,
diff --git a/tests/test_tdep.py b/tests/test_tdep.py
new file mode 100644
index 000000000..4a33a16b2
--- /dev/null
+++ b/tests/test_tdep.py
@@ -0,0 +1,585 @@
+"""Tests for TDEP input generation."""
+
+from __future__ import annotations
+
+from pathlib import Path
+import shutil
+import subprocess
+
+from ase import Atoms
+from ase.build import bulk
+from ase.calculators.singlepoint import SinglePointCalculator
+from ase.io import read, write
+import numpy as np
+import pytest
+from typer.testing import CliRunner
+import yaml
+
+from janus_core.calculations.md import NPH, NPT, NVE, NVT, NVT_CSVR, NVT_NH
+from janus_core.cli.janus import app
+from janus_core.processing.tdep import build_tdep_inputs_from_nvt
+from tests.utils import assert_log_contains, chdir, check_output_files
+
+DATA_PATH = Path(__file__).parent / "data"
+MODEL_PATH = Path(__file__).parent / "models" / "mace_mp_small.model"
+
+# Two-atom primitive cell of NaCl.cif, so NaCl.cif is a non-diagonal supercell of it
+UNIT_CELL = DATA_PATH / "NaCl-primitive.extxyz"
+
+# Committed NVT output for 64-atom NaCl at 300 K, written by
+# NVT(struct=SUPERCELL, arch="mace", model=MODEL_PATH, temp=300, timestep=1,
+# steps=2000, seed=2024, traj_start=1100, traj_every=100, stats_every=100,
+# write_kwargs={"invalidate_calc": True})
+SUPERCELL = DATA_PATH / "NaCl-tdep-supercell.extxyz"
+TRAJ = DATA_PATH / "NaCl-tdep-traj.extxyz"
+STATS = DATA_PATH / "NaCl-tdep-stats.dat"
+
+TDEP_FILES = [
+ "infile.forces",
+ "infile.meta",
+ "infile.positions",
+ "infile.ssposcar",
+ "infile.stat",
+ "infile.ucposcar",
+]
+
+# NVT of NaCl.cif with TDEP inputs, which need at least one MD step
+MD_KWARGS = {
+ "struct": DATA_PATH / "NaCl.cif",
+ "arch": "mace",
+ "model": MODEL_PATH,
+ "steps": 100,
+}
+TDEP_KWARGS = {
+ "tdep_compute": True,
+ "tdep_unit_cell_file": DATA_PATH / "NaCl.cif",
+ "tdep_supercell_file": DATA_PATH / "NaCl.cif",
+}
+
+# Heating from 0 K to 100 K in 10 K steps of 1 fs at 0.1 fs, which ends at step 90
+RAMP = {
+ "timestep": 0.1,
+ "temp_start": 0,
+ "temp_end": 100,
+ "temp_step": 10,
+ "temp_time": 1,
+ "traj_every": 10,
+ "stats_every": 10,
+}
+
+NACL = read(DATA_PATH / "NaCl.cif")
+PRIMITIVE = bulk("NaCl", "rocksalt", a=5.64)
+
+# NaCl.cif with two Na atoms swapped, so only their positions differ
+NACL_SWAPPED = NACL.copy()
+NACL_SWAPPED.positions[[0, 2]] = NACL.positions[[2, 0]]
+
+# Primitive cell that NaCl.cif does not repeat, as its origin is shifted
+PRIMITIVE_SHIFTED = PRIMITIVE.copy()
+PRIMITIVE_SHIFTED.positions += [0.1, 0, 0]
+
+# Lattice parameter of NaCl relaxed with MACE-MP small. Unlike with 5.64 Å, the
+# positions are not exact when written with the 8 decimals of extxyz files
+A_RELAXED = 5.690028396379315
+
+# TDEP's programs are found on PATH, where its INSTALL.md puts them
+TDEP_INSTALLED = all(
+ shutil.which(program)
+ for program in ("extract_forceconstants", "phonon_dispersion_relations")
+)
+requires_tdep = pytest.mark.skipif(not TDEP_INSTALLED, reason="TDEP not installed")
+
+runner = CliRunner()
+
+
+def test_nvt_tdep(tmp_path):
+ """Test TDEP input files written through NVT post-processing."""
+ output_dir = tmp_path / "tdep-inputs"
+ log_file = tmp_path / "md-log.yml"
+ nvt = NVT(
+ **(MD_KWARGS | {"steps": 10, "traj_every": 2, "stats_every": 1}),
+ file_prefix=tmp_path / "NaCl",
+ log_kwargs={"filename": log_file},
+ post_process_kwargs=TDEP_KWARGS
+ | {"tdep_unit_cell_file": UNIT_CELL, "tdep_output_dir": output_dir},
+ )
+ assert nvt.output_files["tdep_inputs"] == output_dir
+ assert not output_dir.exists()
+
+ nvt.run()
+ assert sorted(path.name for path in output_dir.iterdir()) == TDEP_FILES
+
+ meta = (output_dir / "infile.meta").read_text(encoding="utf-8").splitlines()
+ assert meta == [
+ "8 # N atoms",
+ "6 # N timesteps",
+ "2.0 # timestep in fs",
+ "300 # temperature in K",
+ ]
+ assert np.loadtxt(output_dir / "infile.positions").shape == (48, 3)
+ assert np.loadtxt(output_dir / "infile.forces").shape == (48, 3)
+
+ # Frames at steps 0, 2, ..., 10, each paired with the stats row of its step
+ stat = np.loadtxt(output_dir / "infile.stat")
+ assert stat[:, 1] == pytest.approx([0.0, 2.0, 4.0, 6.0, 8.0, 10.0])
+ assert_log_contains(log_file, includes="TDEP input files written to")
+
+
+def test_nvt_tdep_ramp(tmp_path):
+ """Test frames saved during a temperature ramp are not used."""
+ output_dir = tmp_path / "tdep-inputs"
+ NVT(
+ **(MD_KWARGS | RAMP | {"steps": 20}),
+ file_prefix=tmp_path / "NaCl",
+ post_process_kwargs=TDEP_KWARGS | {"tdep_output_dir": output_dir},
+ ).run()
+
+ # Frames are saved at steps 0, 10, ..., 110, but the ramp ends at step 90
+ assert len(read(tmp_path / "NaCl-traj.extxyz", index=":")) == 12
+ stat = np.loadtxt(output_dir / "infile.stat")
+ assert stat[:, 1] == pytest.approx([10.0, 11.0])
+
+
+def test_build_inputs(tmp_path):
+ """Test TDEP input files written from committed NVT output."""
+ output_dir = tmp_path / "tdep-inputs"
+ paths = build_tdep_inputs_from_nvt(
+ unit_cell_file=UNIT_CELL,
+ supercell=read(SUPERCELL),
+ traj_file=TRAJ,
+ stats_file=STATS,
+ temperature=300.0,
+ output_dir=output_dir,
+ timestep=100.0,
+ )
+ assert sorted(paths) == TDEP_FILES
+ assert sorted(path.name for path in output_dir.iterdir()) == TDEP_FILES
+
+ meta = (output_dir / "infile.meta").read_text(encoding="utf-8").splitlines()
+ assert meta == [
+ "64 # N atoms",
+ "10 # N timesteps",
+ "100.0 # timestep in fs",
+ "300.0 # temperature in K",
+ ]
+ assert np.loadtxt(output_dir / "infile.positions").shape == (640, 3)
+
+ # The frames have no calculator, so the forces come from mace_forces
+ trajectory = read(TRAJ, index=":")
+ forces = np.concatenate([atoms.arrays["mace_forces"] for atoms in trajectory])
+ assert np.loadtxt(output_dir / "infile.forces") == pytest.approx(forces, abs=1e-11)
+
+ # Each frame is paired with the stats row of its step, out of 21 rows
+ steps = [atoms.info["step"] for atoms in trajectory]
+ stats = np.loadtxt(STATS)
+ stats = stats[np.isin(stats[:, 0], steps)]
+ stat = np.loadtxt(output_dir / "infile.stat")
+ assert len(stats) == len(stat) == 10
+ assert stat[:, 1] == pytest.approx(stats[:, 2])
+
+ # Off-diagonal stresses in the order TDEP reads them: xy, yz, xz
+ assert stat[:, 10:13] == pytest.approx(stats[:, [15, 13, 14]])
+
+
+def test_build_inputs_start_step(tmp_path):
+ """Test frames saved before start_step are not used."""
+ build_tdep_inputs_from_nvt(
+ unit_cell_file=UNIT_CELL,
+ supercell=SUPERCELL,
+ traj_file=TRAJ,
+ stats_file=STATS,
+ temperature=300.0,
+ output_dir=tmp_path,
+ timestep=100.0,
+ start_step=1300,
+ )
+
+ # Frames at steps 1100, 1200, ..., 2000, with a timestep of 1 fs
+ meta = (tmp_path / "infile.meta").read_text(encoding="utf-8").splitlines()
+ assert meta[1] == "8 # N timesteps"
+ stat = np.loadtxt(tmp_path / "infile.stat")
+ assert stat[:, 1] == pytest.approx(np.arange(1300, 2001, 100))
+
+
+def test_build_inputs_calc_forces(tmp_path):
+ """Test forces are taken from the calculator without an _forces array."""
+ frames = read(TRAJ, index=":2")
+ for atoms in frames:
+ forces = atoms.arrays.pop("mace_forces")
+ atoms.calc = SinglePointCalculator(atoms, forces=forces)
+ write(tmp_path / "traj.extxyz", frames)
+
+ output_dir = tmp_path / "tdep-inputs"
+ build_tdep_inputs_from_nvt(
+ unit_cell_file=UNIT_CELL,
+ supercell=SUPERCELL,
+ traj_file=tmp_path / "traj.extxyz",
+ stats_file=STATS,
+ temperature=300.0,
+ output_dir=output_dir,
+ )
+ forces = np.concatenate([atoms.calc.results["forces"] for atoms in frames])
+ assert np.loadtxt(output_dir / "infile.forces") == pytest.approx(forces, abs=1e-11)
+
+
+@pytest.mark.parametrize(
+ "case, match",
+ [
+ ("no_forces", "must contain 'forces' or '_forces'"),
+ ("no_step", "must contain 'step'"),
+ ("same_step", "Frames in traj_file must have unique steps"),
+ ("repeated_stats_row", "Rows in stats_file must have unique steps"),
+ ("missing_stats_row", "stats_file has no row for 1 trajectory step"),
+ ("small_supercell", "number of atoms in supercell must match"),
+ ("no_frames", "traj_file has no frames from step 1301"),
+ ("shifted_unit_cell", "image of a unit-cell atom"),
+ ],
+)
+def test_build_inputs_errors(tmp_path, case, match):
+ """Test invalid MD output is rejected before any file is written."""
+ frames = read(TRAJ, index=":3")
+ stats = np.loadtxt(STATS)
+ unit_cell = UNIT_CELL
+ supercell = SUPERCELL
+ start_step = 0
+ if case == "no_forces":
+ for atoms in frames:
+ del atoms.arrays["mace_forces"]
+ elif case == "no_step":
+ del frames[1].info["step"]
+ elif case == "same_step":
+ frames[1].info["step"] = frames[0].info["step"]
+ elif case == "repeated_stats_row":
+ stats = np.vstack([stats, stats[-1]])
+ elif case == "missing_stats_row":
+ stats = stats[stats[:, 0] != frames[1].info["step"]]
+ elif case == "small_supercell":
+ supercell = UNIT_CELL
+ elif case == "no_frames":
+ start_step = frames[-1].info["step"] + 1
+ elif case == "shifted_unit_cell":
+ unit_cell = tmp_path / "unit_cell.extxyz"
+ write(unit_cell, PRIMITIVE_SHIFTED)
+ write(tmp_path / "traj.extxyz", frames)
+ header = STATS.read_text(encoding="utf-8").splitlines()[0]
+ np.savetxt(tmp_path / "stats.dat", stats, header=header, comments="")
+
+ output_dir = tmp_path / "tdep-inputs"
+ with pytest.raises(ValueError, match=match):
+ build_tdep_inputs_from_nvt(
+ unit_cell_file=unit_cell,
+ supercell=supercell,
+ traj_file=tmp_path / "traj.extxyz",
+ stats_file=tmp_path / "stats.dat",
+ temperature=300.0,
+ output_dir=output_dir,
+ start_step=start_step,
+ )
+ assert not output_dir.exists()
+
+
+def test_default_output_dir(tmp_path):
+ """Test the default TDEP output directory is not created before the MD."""
+ with chdir(tmp_path):
+ nvt = NVT(**MD_KWARGS, post_process_kwargs=TDEP_KWARGS)
+ output_dir = nvt.output_files["tdep_inputs"]
+ assert output_dir == tmp_path / "janus_results" / "NaCl-nvt-T300-tdep-inputs"
+ assert not output_dir.exists()
+
+
+@pytest.mark.parametrize("ensemble", [NVT_NH, NVT_CSVR])
+def test_nvt_ensembles(tmp_path, ensemble):
+ """Test TDEP inputs are allowed for the other NVT ensembles."""
+ md = ensemble(
+ **MD_KWARGS, file_prefix=tmp_path / "NaCl", post_process_kwargs=TDEP_KWARGS
+ )
+ assert md.output_files["tdep_inputs"] == tmp_path / "NaCl-tdep-inputs"
+
+
+@pytest.mark.parametrize("ensemble", [NVE, NPT, NPH])
+def test_invalid_ensembles(tmp_path, ensemble):
+ """Test TDEP inputs are rejected for ensembles other than NVT."""
+ with pytest.raises(ValueError, match="can only be generated from NVT"):
+ ensemble(
+ **MD_KWARGS, file_prefix=tmp_path / "NaCl", post_process_kwargs=TDEP_KWARGS
+ )
+
+
+@pytest.mark.parametrize(
+ "md_kwargs, tdep_kwargs, error, match",
+ [
+ ({}, {"tdep_unit_cell_file": None}, ValueError, "is required"),
+ ({}, {"tdep_supercell_file": PRIMITIVE}, TypeError, "must be a path"),
+ (
+ {},
+ {"tdep_unit_cell_file": DATA_PATH / "missing.cif"},
+ FileNotFoundError,
+ "not found",
+ ),
+ ({"plumed_input": "plumed.dat"}, {}, ValueError, "biased"),
+ ({"minimize": True}, {}, ValueError, "filter_class"),
+ ({"traj_every": 5, "stats_every": 10}, {}, ValueError, "positive multiple"),
+ ({"traj_every": 0}, {}, ValueError, "positive multiple"),
+ (RAMP | {"steps": 5}, {}, ValueError, "No trajectory frames"),
+ ({"steps": 0}, {}, ValueError, "must be greater than 0"),
+ (
+ {"steps": 10, "traj_start": 20, "traj_every": 10, "stats_every": 10},
+ {},
+ ValueError,
+ "No trajectory frames",
+ ),
+ (
+ {},
+ {"tdep_supercell_file": DATA_PATH / "NaCl-sg.cif"},
+ ValueError,
+ "same cell",
+ ),
+ ],
+)
+def test_invalid_settings(tmp_path, md_kwargs, tdep_kwargs, error, match):
+ """Test invalid TDEP settings are rejected before the MD runs."""
+ with pytest.raises(error, match=match):
+ NVT(
+ **(MD_KWARGS | md_kwargs),
+ file_prefix=tmp_path / "NaCl",
+ post_process_kwargs=TDEP_KWARGS | tdep_kwargs,
+ )
+
+
+@pytest.mark.parametrize(
+ "md_kwargs",
+ [
+ {"minimize": True, "minimize_kwargs": {"filter_class": None}},
+ RAMP | {"steps": 10},
+ {"steps": 20, "traj_start": 20, "traj_every": 10, "stats_every": 10},
+ ],
+)
+def test_valid_settings(tmp_path, md_kwargs):
+ """Test settings at the limits of the TDEP checks are accepted."""
+ nvt = NVT(
+ **(MD_KWARGS | md_kwargs),
+ file_prefix=tmp_path / "NaCl",
+ post_process_kwargs=TDEP_KWARGS,
+ )
+ assert nvt.output_files["tdep_inputs"] == tmp_path / "NaCl-tdep-inputs"
+
+
+@pytest.mark.parametrize(
+ "unit_cell, supercell, match",
+ [
+ (NACL, NACL * (2, 1, 1), "has 16 atoms, but the MD structure has 8"),
+ (NACL, NACL[NACL.numbers.argsort()], "same chemical symbols"),
+ (NACL, NACL_SWAPPED, "same positions"),
+ (Atoms("NaCl", positions=[[0, 0, 0], [2.82, 0, 0]]), NACL, "three cell"),
+ (bulk("NaCl", "rocksalt", a=5.5, cubic=True), NACL, "volume ratio"),
+ (NACL[:-1], NACL, r"must equal their volume ratio \(1\)"),
+ ],
+)
+def test_invalid_cells(tmp_path, unit_cell, supercell, match):
+ """Test unit cells and supercells that do not match the MD structure."""
+ write(tmp_path / "unit_cell.extxyz", unit_cell)
+ write(tmp_path / "supercell.extxyz", supercell)
+ tdep_kwargs = {
+ "tdep_unit_cell_file": tmp_path / "unit_cell.extxyz",
+ "tdep_supercell_file": tmp_path / "supercell.extxyz",
+ }
+ with pytest.raises(ValueError, match=match):
+ NVT(
+ **MD_KWARGS,
+ file_prefix=tmp_path / "NaCl",
+ post_process_kwargs=TDEP_KWARGS | tdep_kwargs,
+ )
+
+
+def test_wrapped_supercell(tmp_path):
+ """Test a supercell with an atom outside the cell is accepted."""
+ supercell = NACL.copy()
+ supercell.positions[0] += supercell.cell[0]
+ write(tmp_path / "supercell.extxyz", supercell)
+
+ nvt = NVT(
+ **MD_KWARGS,
+ file_prefix=tmp_path / "NaCl",
+ post_process_kwargs=TDEP_KWARGS
+ | {"tdep_supercell_file": tmp_path / "supercell.extxyz"},
+ )
+ assert nvt.output_files["tdep_inputs"] == tmp_path / "NaCl-tdep-inputs"
+
+
+def test_primitive_unit_cell(tmp_path):
+ """Test a primitive unit cell, whose orientation a CIF file does not keep."""
+ write(tmp_path / "primitive.extxyz", PRIMITIVE)
+ write(tmp_path / "primitive.cif", PRIMITIVE)
+
+ NVT(
+ **MD_KWARGS,
+ file_prefix=tmp_path / "NaCl",
+ post_process_kwargs=TDEP_KWARGS
+ | {"tdep_unit_cell_file": tmp_path / "primitive.extxyz"},
+ )
+ with pytest.raises(ValueError, match="not an integer matrix"):
+ NVT(
+ **MD_KWARGS,
+ file_prefix=tmp_path / "NaCl",
+ post_process_kwargs=TDEP_KWARGS
+ | {"tdep_unit_cell_file": tmp_path / "primitive.cif"},
+ )
+
+
+def test_output_dir_is_file(tmp_path):
+ """Test an existing file at the TDEP output path is rejected."""
+ output_file = tmp_path / "tdep-inputs"
+ output_file.touch()
+ with pytest.raises(FileExistsError, match="is an existing file"):
+ NVT(
+ **MD_KWARGS,
+ file_prefix=tmp_path / "NaCl",
+ post_process_kwargs=TDEP_KWARGS | {"tdep_output_dir": output_file},
+ )
+
+
+def test_md_cli(tmp_path):
+ """Test TDEP input files written from the md command line."""
+ file_prefix = tmp_path / "NaCl"
+ output_dir = tmp_path / "NaCl-tdep-inputs"
+ summary_path = tmp_path / "NaCl-md-summary.yml"
+ post_process_kwargs = (
+ "{'tdep_compute': True, "
+ f"'tdep_unit_cell_file': '{UNIT_CELL.as_posix()}', "
+ f"'tdep_supercell_file': '{(DATA_PATH / 'NaCl.cif').as_posix()}'}}"
+ )
+
+ result = runner.invoke(
+ app,
+ [
+ "md",
+ "--ensemble",
+ "nvt",
+ "--struct",
+ DATA_PATH / "NaCl.cif",
+ "--arch",
+ "mace_mp",
+ "--model",
+ MODEL_PATH,
+ "--file-prefix",
+ file_prefix,
+ "--steps",
+ 2,
+ "--traj-every",
+ 1,
+ "--stats-every",
+ 1,
+ "--post-process-kwargs",
+ post_process_kwargs,
+ "--no-tracker",
+ ],
+ )
+ assert result.exit_code == 0
+ assert sorted(path.name for path in output_dir.iterdir()) == TDEP_FILES
+
+ with open(summary_path, encoding="utf8") as file:
+ summary = yaml.safe_load(file)
+ check_output_files(summary=summary, output_files={"tdep_inputs": output_dir})
+
+
+def run_tdep(directory: Path) -> np.ndarray:
+ """
+ Run TDEP on the input files in a directory and read the phonon dispersion.
+
+ Parameters
+ ----------
+ directory
+ Directory containing the TDEP input files.
+
+ Returns
+ -------
+ np.ndarray
+ Frequencies in THz, with one row per q-point and one column per branch.
+ """
+ # TDEP exits with 0 on many errors, so a missing output file fails the test
+ subprocess.run(
+ ["extract_forceconstants", "-rc2", "5"],
+ cwd=directory,
+ check=True,
+ capture_output=True,
+ )
+ shutil.copy(directory / "outfile.forceconstant", directory / "infile.forceconstant")
+ subprocess.run(
+ ["phonon_dispersion_relations"], cwd=directory, check=True, capture_output=True
+ )
+ return np.loadtxt(directory / "outfile.dispersion_relations")[:, 1:]
+
+
+@requires_tdep
+def test_tdep_phonons(tmp_path):
+ """Test phonons from TDEP run on inputs written from committed NVT output."""
+ build_tdep_inputs_from_nvt(
+ unit_cell_file=UNIT_CELL,
+ supercell=SUPERCELL,
+ traj_file=TRAJ,
+ stats_file=STATS,
+ temperature=300.0,
+ output_dir=tmp_path,
+ timestep=100.0,
+ )
+ frequencies = run_tdep(tmp_path)
+
+ # Six branches for two atoms, and no imaginary modes (written as negative)
+ assert frequencies.shape[1] == 6
+ assert frequencies.min() > -1e-3
+
+ # Reference values from TDEP 6ccdf13, the commit built in CI
+ gamma = frequencies[0]
+ assert gamma[:3] == pytest.approx([0.0, 0.0, 0.0], abs=1e-6)
+ assert gamma[3:] == pytest.approx([5.7205173069] * 3, rel=1e-4)
+ assert frequencies.max() == pytest.approx(6.2202119257, rel=1e-4)
+
+
+@requires_tdep
+def test_tdep_nvt(tmp_path):
+ """Test TDEP runs on the inputs written by a short NVT simulation."""
+ output_dir = tmp_path / "tdep-inputs"
+ NVT(
+ **(MD_KWARGS | {"seed": 2024, "traj_every": 10, "stats_every": 10}),
+ file_prefix=tmp_path / "NaCl",
+ post_process_kwargs=TDEP_KWARGS
+ | {"tdep_unit_cell_file": UNIT_CELL, "tdep_output_dir": output_dir},
+ ).run()
+ frequencies = run_tdep(output_dir)
+
+ # Fresh MD output varies between platforms, so only check physical bounds
+ assert frequencies.shape[1] == 6
+ assert frequencies.min() > -0.1
+ assert 4.0 < frequencies.max() < 8.0
+
+
+@requires_tdep
+def test_tdep_phonons_relaxed_lattice(tmp_path):
+ """Test TDEP runs on inputs written from extxyz files with inexact positions."""
+ # Committed NVT output scaled to A_RELAXED, with the same forces, so that the force
+ # constants are divided by the scale factor
+ scale = A_RELAXED / 5.64
+ frames = read(TRAJ, index=":")
+ supercell = read(SUPERCELL)
+ for atoms in (*frames, supercell):
+ atoms.set_cell(atoms.cell * scale, scale_atoms=True)
+ write(tmp_path / "traj.extxyz", frames)
+ write(tmp_path / "supercell.extxyz", supercell)
+ write(tmp_path / "unit_cell.extxyz", bulk("NaCl", "rocksalt", a=A_RELAXED))
+
+ output_dir = tmp_path / "tdep-inputs"
+ build_tdep_inputs_from_nvt(
+ unit_cell_file=tmp_path / "unit_cell.extxyz",
+ supercell=tmp_path / "supercell.extxyz",
+ traj_file=tmp_path / "traj.extxyz",
+ stats_file=STATS,
+ temperature=300.0,
+ output_dir=output_dir,
+ timestep=100.0,
+ )
+ frequencies = run_tdep(output_dir)
+
+ # Reference values of test_tdep_phonons, divided by the square root of the scale
+ gamma = frequencies[0]
+ assert gamma[3:] == pytest.approx([5.7205173069 / scale**0.5] * 3, rel=1e-4)
+ assert frequencies.max() == pytest.approx(6.2202119257 / scale**0.5, rel=1e-4)