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

Non-omm ase #245

Merged
merged 41 commits into from
Oct 11, 2024
Merged

Non-omm ase #245

merged 41 commits into from
Oct 11, 2024

Conversation

Ragzouken
Copy link
Collaborator

@Ragzouken Ragzouken commented Sep 25, 2024

Fixes #241

  • non-omm ase
  • update notebooks
  • add tests
  • docstrings

@Ragzouken
Copy link
Collaborator Author

I've updated the basic_example notebook to do something functional, but it may need some restructuring to be sensible example

@Ragzouken
Copy link
Collaborator Author

Meaning of simulation switching/reset not quite consistent right now. The ASE dynamics can't really be reset without reconstructing, and we can't do that for arbitrarily provided dynamics -- so the number of steps etc continues to accumulate (maybe this is fine?). ASE OMM always uses a default set of dynamics that can't be overriden, and are replaced each reset. Instead it could continue to reuse provided dynamics or something?

@Ragzouken Ragzouken marked this pull request as ready for review October 7, 2024 15:49
@Ragzouken Ragzouken added bug Something isn't working documentation Improvements or additions to documentation labels Oct 10, 2024
@Ragzouken Ragzouken removed bug Something isn't working documentation Improvements or additions to documentation labels Oct 11, 2024
Copy link
Collaborator

@hjstroud hjstroud left a comment

Choose a reason for hiding this comment

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

All good! Thanks for sorting these out

"outputs": [],
"source": [
"from ase.md import Langevin\n",
"import ase.units as ase_units\n",
"dynamics = Langevin(atoms, timestep=1.0 * ase_units.fs, temperature_K=300 * ase_units.kB, friction=1.0e-03)"
"dynamics = Langevin(atoms, timestep=1.0 * ase_units.fs, temperature_K=300, friction=1.0e-03)"
Copy link
Collaborator

@hjstroud hjstroud Oct 11, 2024

Choose a reason for hiding this comment

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

When setting the temperature using temperature_K I think you only need to specify the number in Kelvin, rather than converting to units of kT by multiplying by the Boltzmann constant kB (see the first note on this page - this is all I changed here!

Copy link
Collaborator

@hjstroud hjstroud left a comment

Choose a reason for hiding this comment

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

Mostly looks good to me, though I haven't checked how everything looks in VR. The main problem I found is that the particle_count key in FrameData doesn't exist (and probably should for any simulation, even an empty one), and I'm not sure if there are any other keys that should be being set that aren't being set at the moment.

@hjstroud hjstroud self-requested a review October 11, 2024 15:58
Copy link
Collaborator

@hjstroud hjstroud left a comment

Choose a reason for hiding this comment

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

Have changed latest_frame to current_frame and everything seems to work just fine! Nice work!

@Ragzouken Ragzouken merged commit c1cc12a into main Oct 11, 2024
9 checks passed
@Ragzouken Ragzouken deleted the feature/non-omm-ase branch October 11, 2024 16:17
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.

ASE simulations that don't use OpenMM don't have a simulation class suitable for the OmniRunner
2 participants