Skip to content

Enhance the restart of GCMC and Widom classes#95

Open
lipelopesoliveira wants to merge 24 commits into
mainfrom
Fix_restart
Open

Enhance the restart of GCMC and Widom classes#95
lipelopesoliveira wants to merge 24 commits into
mainfrom
Fix_restart

Conversation

@lipelopesoliveira

@lipelopesoliveira lipelopesoliveira commented Apr 15, 2026

Copy link
Copy Markdown
Owner

Pull Request

Description 📝

Changes Proposed 🔧

Enhanced ✨

  • Changed the BaseSimulator class to multiply the total energy by the supercell size when calculating the adsorption energy. This change ensures that the adsorption energy is correctly calculated based on the total energy of the system, which includes contributions from all atoms in the supercell.

Fixed 🐛

  • Fixed a bug in the MD classes that was causing the output_interval and movie_interval parameters to be mixed up, resulting in incorrect logging intervals for the MD simulations. Now the output_interval is correctly used for logging the MD simulation data, while the movie_interval is used for controlling the frequency of snapshot saving.

Related Issues 📎

Fixes #78
Closes #78

Before submitting 📌

  • I've read and followed all steps in the Making a pull request
    section of the CONTRIBUTING docs.
  • I've updated or added any relevant docstrings following the syntax described in the
    Writing docstrings section of the CONTRIBUTING docs.
  • If this PR fixes a bug, I've added a test that will fail without my fix.
  • If this PR adds a new feature, I've added tests that sufficiently cover my new functionality.

Testing Instructions 🧪

Additional Notes 💬

@lipelopesoliveira lipelopesoliveira self-assigned this Apr 15, 2026
@lipelopesoliveira lipelopesoliveira added the enhancement New feature or request label Apr 15, 2026
lipelopesoliveira and others added 14 commits April 15, 2026 10:03
- Introduced `UFF.json` containing Lennard-Jones parameters for various elements.
- Implemented `CustomEwald` class for Ewald summation, including real and reciprocal space calculations.
- Added `CustomLennardJones` class for Lennard-Jones potential calculations, utilizing Numba for performance.
- Implemented neighbor list generation using Numba for efficient pairwise interaction calculations.
- Enhanced energy calculations with support for shifted potentials and dynamic cutoff handling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve restart mode

1 participant