flashmd 0.2.0__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flashmd
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Accelerated molecular dynamics with large-time-step predictions
5
5
  Author: flashmd developers
6
6
  License: Apache-2.0
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "flashmd"
3
- version = "0.2.0"
3
+ version = "0.2.1"
4
4
  requires-python = ">=3.9"
5
5
 
6
6
  readme = "README.md"
@@ -37,7 +37,7 @@ def get_standard_vv_step(
37
37
 
38
38
  if rescale_energy:
39
39
  info("@flashmd: Old energy", verbosity.debug)
40
- old_energy = sim.properties("potential") + sim.properties("kinetic_md")
40
+ old_energy = sim.properties("conserved")
41
41
 
42
42
  motion.integrator.pstep(level=0)
43
43
  motion.integrator.pconstraints()
@@ -48,7 +48,7 @@ def get_standard_vv_step(
48
48
 
49
49
  if rescale_energy:
50
50
  info("@flashmd: Energy rescale", verbosity.debug)
51
- new_energy = sim.properties("potential") + sim.properties("kinetic_md")
51
+ new_energy = sim.properties("conserved")
52
52
  kinetic_energy = sim.properties("kinetic_md")
53
53
  alpha = np.sqrt(1.0 - (new_energy - old_energy) / kinetic_energy)
54
54
  motion.beads.p[:] = alpha * dstrip(motion.beads.p)
@@ -76,7 +76,7 @@ def get_flashmd_vv_step(sim, model, device, rescale_energy=True, random_rotation
76
76
  info("@flashmd: Starting VV", verbosity.debug)
77
77
  if rescale_energy:
78
78
  info("@flashmd: Old energy", verbosity.debug)
79
- old_energy = sim.properties("potential") + sim.properties("kinetic_md")
79
+ old_energy = sim.properties("conserved")
80
80
 
81
81
  info("@flashmd: Stepper", verbosity.debug)
82
82
  system = ipi_to_system(motion, device, dtype)
@@ -109,11 +109,12 @@ def get_flashmd_vv_step(sim, model, device, rescale_energy=True, random_rotation
109
109
 
110
110
  if rescale_energy:
111
111
  info("@flashmd: Energy rescale", verbosity.debug)
112
- new_energy = sim.properties("potential") + sim.properties("kinetic_md")
112
+ new_energy = sim.properties("conserved")
113
113
  kinetic_energy = sim.properties("kinetic_md")
114
114
  alpha = np.sqrt(1.0 - (new_energy - old_energy) / kinetic_energy)
115
115
  motion.beads.p[:] = alpha * dstrip(motion.beads.p)
116
- motion.integrator.pconstraints()
116
+ motion.integrator.pconstraints() # just to make sure; should be cheap
117
+
117
118
  info("@flashmd: End of VV step", verbosity.debug)
118
119
 
119
120
  return flashmd_vv
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flashmd
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Accelerated molecular dynamics with large-time-step predictions
5
5
  Author: flashmd developers
6
6
  License: Apache-2.0
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes