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 csvr barostat #338

Merged
merged 8 commits into from
Sep 9, 2024
Merged

add csvr barostat #338

merged 8 commits into from
Sep 9, 2024

Conversation

M-R-Schaefer
Copy link
Contributor

No description provided.

Copy link
Member

@PythonFZ PythonFZ left a comment

Choose a reason for hiding this comment

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

Great addition - thanks for adding this! One small comment but can be merged soon.

@@ -359,6 +360,42 @@ def get_thermostat(self, atoms):
return thermostat


class CSVR(base.IPSNode):
"""Initialize the langevin thermostat
Copy link
Member

Choose a reason for hiding this comment

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

Not Langevin anymore.
As another comment, do we want to rename it to CSVRThermostat or similar or keep CSRV?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I updated the name for the ASE class to be more aaccurate and the IPS node to be more in line with the others.

Comment on lines 368 to 375
time_step: float
time step of simulation

temperature: float
temperature in K to simulate at

friction: float
friction of the Langevin simulator
Copy link
Member

Choose a reason for hiding this comment

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

see above

atoms=atoms,
timestep=self.time_step * units.fs,
temperature_K=self.temperature,
betaT=4.57e-5 / units.bar,
Copy link
Member

Choose a reason for hiding this comment

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

should use self.betaT

Copy link
Member

@PythonFZ PythonFZ left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@M-R-Schaefer M-R-Schaefer merged commit 6128749 into main Sep 9, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants