Skip to content

Water slab dipoles#349

Open
MandyHoffmann wants to merge 36 commits intoddmms:mainfrom
MandyHoffmann:water_slab_dipoles
Open

Water slab dipoles#349
MandyHoffmann wants to merge 36 commits intoddmms:mainfrom
MandyHoffmann:water_slab_dipoles

Conversation

@MandyHoffmann
Copy link
Copy Markdown

Pre-review checklist for PR author

PR author must check the checkboxes below when creating the PR.

Summary

Physicality test for total dipole distribution of water slabs, checks standard deviation and number of candidates for dielectric breakdown.

Linked issue

Resolves #348

Progress

  • Calculations
  • Analysis
  • Application
  • Documentation

I think I did everything, but please check! For actually running it, the MD calculation time can be adjusted based on how well sampled you want it; longer simulation times are required for a proper Gaussian-shaped histogram. Similarly, one could consider changing the bins to be even smaller.

Currently, no hover templates are set for the histograms.

Testing

Tested on one of my own water models and the small mace-mp0-a model. Calculations are quite expensive (>12 h for the mace-mp0 one).

New decorators/callbacks

Build a new decorator for histograms, oriented at the scatter plot one, included in this PR. Not sure all the callbacks work properly, but one can see the plots.

@ElliottKasoar ElliottKasoar added the new benchmark Proposals and suggestions for new benchmarks label Feb 6, 2026
Copy link
Copy Markdown
Collaborator

@ElliottKasoar ElliottKasoar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank for this, @MandyHoffmann, it's looking really good!

Are you able to share (e.g. via slack/onedrive) some full results for this, so I can test the analysis/app more carefully?

Comment thread pyproject.toml Outdated
Comment thread ml_peg/models/models.yml Outdated
Comment thread ml_peg/calcs/physicality/water_slab_dipoles/data/init_38A_slab.xyz Outdated
Comment thread docs/source/user_guide/benchmarks/physicality.rst Outdated
Comment thread docs/source/user_guide/benchmarks/physicality.rst Outdated
Comment thread ml_peg/analysis/utils/decorators.py Outdated
Comment thread ml_peg/app/physicality/water_slab_dipoles/app_water_slab_dipoles.py Outdated
Comment thread ml_peg/calcs/physicality/water_slab_dipoles/calc_water_slab_dipoles.py Outdated
Comment thread ml_peg/calcs/physicality/water_slab_dipoles/calc_water_slab_dipoles.py Outdated
Comment thread ml_peg/calcs/physicality/water_slab_dipoles/calc_water_slab_dipoles.py Outdated
Comment thread ml_peg/calcs/physicality/water_slab_dipoles/calc_water_slab_dipoles.py Outdated
@joehart2001
Copy link
Copy Markdown
Collaborator

joehart2001 commented Apr 14, 2026

Hey @MandyHoffmann, i've made some code suggestions which adds the data downlaod. If you're happy with the change to janus then we could begin to clean up the code as well to get rid of the commented out sections.

@joehart2001
Copy link
Copy Markdown
Collaborator

joehart2001 commented Apr 14, 2026

i also assume we can drop the changes to the uv.lock @ElliottKasoar?

@ElliottKasoar
Copy link
Copy Markdown
Collaborator

i also assume we can drop the changes to the uv.lock @ElliottKasoar?

Yes, @MandyHoffmann would you be able to revery the changes to the uv.lock and ml_peg/models/models.yml files?

When you look at the files changed tab you only really want to see changes that are specific to your new benchmark. (In the terminal these changes would be shown in the git diff compared to the commit on main you branched from)

Comment thread ml_peg/calcs/physicality/water_slab_dipoles/calc_water_slab_dipoles.py Outdated
MandyHoffmann and others added 7 commits April 15, 2026 09:17
Co-authored-by: Joseph Hart <92541539+joehart2001@users.noreply.github.com>
…poles.py


DATA_PATH is not needed because of data download instead

Co-authored-by: Joseph Hart <92541539+joehart2001@users.noreply.github.com>
…poles.py

Co-authored-by: Joseph Hart <92541539+joehart2001@users.noreply.github.com>
@joehart2001
Copy link
Copy Markdown
Collaborator

Also one small thing, could you remove the data dir @MandyHoffmann as you’ve now added the download

This was referenced Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new benchmark Proposals and suggestions for new benchmarks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Water Slab Dipole Distributions

3 participants