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

Units handling #853

Open
CalCraven opened this issue Sep 26, 2024 · 1 comment
Open

Units handling #853

CalCraven opened this issue Sep 26, 2024 · 1 comment

Comments

@CalCraven
Copy link
Contributor

Would be nice to have some more generalized unit systems that certain engines could subclass, as opposed to always calling the different LAMMPS units systems. Mostly a clarity thing.

@CalCraven
Copy link
Contributor Author

Some clarity on this issue:
Right now we have this class:

from gmso.utils.units import LAMMPS_UnitSystems
unit_system = LAMMPS_UnitSystems("real")
outputStr = unit_system.convert_parameter(top.bonds[0].bond_type.parameters["k"])
f.write(outputStr)

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

No branches or pull requests

1 participant