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 tracking of unwrapped coordinates to MD driver #104

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hippynn/molecular_dynamics/md.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from ..graphs import Predictor
from ..layers.pairs.periodic import wrap_systems_torch


class Variable:
"""
Tracks the state of a quantity (eg. position, cell, species,
Expand Down Expand Up @@ -293,6 +292,7 @@ def pre_step(self, dt:float):
self.variable.data["unwrapped_position"] = self.variable.data["unwrapped_position"] + self.variable.data["velocity"] * dt
except KeyError:
self.variable.data["unwrapped_position"] = copy(self.variable.data["position"])

def post_step(self, dt: float, model_outputs: dict):
"""
Updates to variables performed during each step of MD simulation after HIPNN model evaluation
Expand Down
Loading