Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Einstein-Helfand viscosity implementation #25

Merged
merged 24 commits into from Aug 15, 2023

Commits on Aug 8, 2023

  1. Add Einstein-Helfand viscosity class skeleton

    * Use class `VelocityAutocorr` as template
    * Add items to `__init__()`
    * Write `_prepare()` and `_single_frame()`
    * Early work on `_conclude()`
    xhgchen committed Aug 8, 2023
    Copy the full SHA
    4537d45 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    f5d4371 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    c9187c4 View commit details
    Browse the repository at this point in the history
  4. Make variable names more readable

    * Change `self.*_array` to simply `self.*`
    * Fix `self._masses_rs`
    xhgchen committed Aug 8, 2023
    Copy the full SHA
    329e17b View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    0405ff3 View commit details
    Browse the repository at this point in the history
  6. Add initial volume handling

    * Set up `self._volumes` in `_prepare()` and `_single_frame()`
    xhgchen committed Aug 8, 2023
    Copy the full SHA
    e00bd8a View commit details
    Browse the repository at this point in the history
  7. Add remaining items to viscosity calculation

    * Complete `_conclude()` with 2, Boltzman constant, average volume,
    and average temp
    xhgchen committed Aug 8, 2023
    Copy the full SHA
    56e9e14 View commit details
    Browse the repository at this point in the history
  8. Copy the full SHA
    7416979 View commit details
    Browse the repository at this point in the history
  9. Write starter tests for Helfand viscosity class

    * Check that AtomGroup is accepted
    * Test some exceptions
    * Functionality not yet tested here
    xhgchen committed Aug 8, 2023
    Copy the full SHA
    512d57f View commit details
    Browse the repository at this point in the history
  10. Fix visc_by_particle division step

    * Move `visc_by_particle` division step outside of for loop
    xhgchen committed Aug 8, 2023
    Copy the full SHA
    98ad724 View commit details
    Browse the repository at this point in the history
  11. Create full unit velocity trajectory for tests

    * Contains mass, velocities, positions, and volume
    xhgchen committed Aug 8, 2023
    Copy the full SHA
    577e131 View commit details
    Browse the repository at this point in the history
  12. Add characteristic polynomial for viscosity class

    * Format `viscosity.py` with Black
    xhgchen committed Aug 8, 2023
    Copy the full SHA
    49216aa View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2023

  1. Add basic test for Helfand viscosity

    * Simplify `characteristic_poly_helfand()`
    xhgchen committed Aug 9, 2023
    Copy the full SHA
    b0e3033 View commit details
    Browse the repository at this point in the history
  2. Use key "Boltzman_constant" until mda 2.6.0

    * CI will not work otherwise
    xhgchen committed Aug 9, 2023
    Copy the full SHA
    06539e7 View commit details
    Browse the repository at this point in the history
  3. Fix Boltzmann KeyError

    * use try except and update with mda 2.6.0 release
    xhgchen committed Aug 9, 2023
    Copy the full SHA
    760bf9d View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2023

  1. Vectorize basic Helfand viscosity test

    * Improve accuracy and agreement with `ViscosityHelfand` class
    * Improve performance
    xhgchen committed Aug 11, 2023
    Copy the full SHA
    248a5c1 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    4759a63 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    016effe View commit details
    Browse the repository at this point in the history
  4. Update docstrings for clarity

    xhgchen committed Aug 11, 2023
    Copy the full SHA
    53e9cf3 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2023

  1. Copy the full SHA
    17a3593 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    0e2a0c5 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    e482765 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    9c7dee8 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2023

  1. Copy the full SHA
    b862476 View commit details
    Browse the repository at this point in the history