cmelab / flowerMD

Flexible Library of Organic Workflows and Extensible Recipes for Molecular Dynamics.
https://flowermd.readthedocs.io/en/latest/
GNU General Public License v3.0
12 stars 8 forks source link

Add unit class to FlowerMD and allow using real units in Simulation runs #137

Open marjanalbooyeh opened 6 months ago

marjanalbooyeh commented 6 months ago

This PR introduces a new Unit class to FlowerMD, which contains commonly used units from unyt package.

With this change, all values with units in FlowerMD are formatted as value * flower.Units.<unit>. For example, a temperature in Kelvin is 300 * flowermd.Units.K.

This PR also makes the following changes to the interface of run functions in Simulation class:

ToDo: