Repository navigation
Conversation
…egrees of freedom are found
… fix help text Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…st infile.ucposcar Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nternal degrees of freedom Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hange Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e is ignored Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
flokno
marked this pull request as ready for review
October 7, 2026 19:45
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
average_structureto get time-averaged reference structuresCloses #97
What it does
average_structurecomputes the symmetry-respecting average structure from an MD simulation with fixed cell (NVT):infile.ucposcarare determined, with the net translation removed (zero-sum constraint).outfile.ucposcarandoutfile.ssposcar. Symmetry-breaking displacements are projected out, so the result keeps the space group of the reference.Input:
infile.ucposcar,infile.ssposcar, the MD files (infile.meta,infile.stat,infile.positions,infile.forces) and, optionally,infile.refposcar, the reference positions (defaults toinfile.ucposcar).Changes on top of the tdep-devel version
libolle.alike the other codes, fix Makefile dependencies andcleaninfile.refposcaris optional and checked againstinfile.ucposcar(number of atoms, species and order)--stridemust be a positive integer, help text no longer copied fromeosfitnptoption; warn thatinfile.latticeis ignoredmanual.md,docs/program/average_structure.md, README and mkdocs entriesTest
tests/average_structurechecks a two-atom tetragonal (P4mm) crystal with a two-frame trajectory, where the expected average can be computed by hand: the internal coordinate is averaged, a sideways displacement that breaks the symmetry is projected out, and the centroid is kept fixed.Known limitations / follow-ups
coeffMis rebuilt and solved for every frame, which is slow for long trajectoriesavg_structure,remove_rotations)🤖 Generated with Claude Code