HTPolyNet 2.11.2__py3-none-any.whl → 2.11.3__py3-none-any.whl

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.
htpolynet/core/runtime.py CHANGED
@@ -718,6 +718,12 @@ class Runtime:
718
718
  rc.state.iter += 1
719
719
  pfs.go_proj()
720
720
  rc.state.to_yaml(statefile)
721
+ # the last batch of rings never sees another closure ladder, so it reaches
722
+ # postcure carrying whatever the ladder left in it
723
+ pfs.go_to(pfs.Dirs.systems_iter(rc.state.iter))
724
+ TC.grab_files()
725
+ rc.settle(TC, gromacs_dict=gromacs_dict)
726
+ pfs.go_proj()
721
727
  self._report_molecule_charges('after ring cure')
722
728
  my_logger(f'Ring cure ends: {rc.state.rings} ring(s), conversion '
723
729
  f'{rc.state.conversion:.3f}', logger.info)
@@ -96,6 +96,8 @@ class RingController:
96
96
  'same_residue': False,
97
97
  'relax': [{'ensemble': 'min'},
98
98
  {'ensemble': 'nvt', 'temperature': 300, 'nsteps': 2000}],
99
+ 'settle': [{'ensemble': 'min'},
100
+ {'ensemble': 'nvt', 'temperature': 300, 'nsteps': 2500}],
99
101
  'closure': {'nstages': 8, 'target': 0.15, 'kb': 300000.0, 'max_accept': 0.30,
100
102
  'equilibration': [{'ensemble': 'min'},
101
103
  {'ensemble': 'nvt', 'temperature': 600, 'nsteps': 1000}]},
@@ -341,6 +343,45 @@ class RingController:
341
343
  gromacs_dict or {})
342
344
  logger.info(f'Iteration {self.state.iter}: new ring bonds relaxed')
343
345
 
346
+ def settle(self, TC, gromacs_dict=None):
347
+ """Relaxes the network one last time before the cure hands it on.
348
+
349
+ Every batch of rings but the last is relaxed twice: once by :meth:`relax` as
350
+ soon as its bonds exist, and again -- much harder -- by the next iteration's
351
+ closure ladder, which is eight minimizations and 16 ps at 600 K against relax's
352
+ one minimization and 4 ps at 300 K. The final batch only ever gets the first,
353
+ and whatever the cure ends on goes straight into postcure.
354
+
355
+ Measured by htpolynet-study on three 2.11.1 builds, all of which ended on a
356
+ ring-forming iteration, so all of which had been relaxed: bond energy entering
357
+ the anneal tracked how many rings that last iteration formed -- 1, 1 and 4 rings
358
+ for 18849, 26113 and 35959 kJ/mol, against 13619 +/- 226 for a route that enters
359
+ already relaxed. An inventory of one such structure found five bonds beyond
360
+ 2.0 A: one triazine's three ring bonds at 2.24 A, and two monomers whose own
361
+ backbones the ladder had stretched to 2.34 and 3.20 A while pulling their two
362
+ arms toward different rings. Nothing after the restraints come off relieves
363
+ either, and the strain then has to be absorbed by a 500 K anneal, which is where
364
+ 11 of 20 builds died.
365
+
366
+ Unconditional on purpose. The cure has four ways to end -- target reached,
367
+ iterations exhausted, radius exhausted, every ring declined -- and which of them
368
+ leaves strain behind is not worth reasoning about per exit when the remedy is
369
+ this cheap.
370
+
371
+ Args:
372
+ TC (TopoCoord): the system
373
+ gromacs_dict (dict): gromacs directives
374
+ """
375
+ stages = self.dicts['settle']
376
+ if not stages:
377
+ return False
378
+ TC.write_top(f'ringsettle-{self.state.iter}.top')
379
+ TC.write_gro(f'ringsettle-{self.state.iter}.gro')
380
+ self._run_stages(TC, f'ringsettle-{self.state.iter}', stages, gromacs_dict or {})
381
+ logger.info(f'Ring cure settled after {self.state.rings} ring(s); the network is '
382
+ f'relaxed before postcure rather than at 500 K')
383
+ return True
384
+
344
385
  def _run_stages(self, TC, deffnm, stages, gromacs_dict):
345
386
  """Runs one equilibration sequence, as the cure's ladders do."""
346
387
  for stage in stages:
@@ -842,6 +842,20 @@ attributes:
842
842
  Allow two groups of one residue in a ring, which for a dicyanate is both
843
843
  arms into one triazine.
844
844
  default: false
845
+ - name: settle
846
+ type: list
847
+ text: >
848
+ Equilibration run once at the end of the cure, before postcure. Every
849
+ batch of rings but the last is relaxed again by the next iteration's
850
+ closure ladder; the last one is not, and reaches postcure still carrying
851
+ the strain the ladder left -- stretched ring bonds, and monomers whose
852
+ backbones were pulled while their arms went to different rings. An empty
853
+ list skips it.
854
+ default:
855
+ - ensemble: min
856
+ - ensemble: nvt
857
+ temperature: 300
858
+ nsteps: 2500
845
859
  - name: closure
846
860
  type: dict
847
861
  text: >
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: htpolynet
3
- Version: 2.11.2
3
+ Version: 2.11.3
4
4
  Summary: Automated MD System Builder for Amorphous Network Polymers
5
5
  Project-URL: Source, https://github.com/cameronabrams/htpolynet
6
6
  Project-URL: Documentation, https://htpolynet.readthedocs.io/
@@ -13,7 +13,7 @@ htpolynet/core/molecule.py,sha256=j0I0qsk5mRTg8QMysxJz6U9HxgTRpRSzHEgJ_SRT-jQ,63
13
13
  htpolynet/core/paramcache.py,sha256=37S88gRXZ5_xAdWyUE-Q3Etxc5HMv8L_RHrykkq9YAs,6966
14
14
  htpolynet/core/productsplice.py,sha256=asFVCW8G_rcMIizvO2Sh98MpOsFqzP1kIX1JySei_p8,12816
15
15
  htpolynet/core/projectfilesystem.py,sha256=2U_EToZxN7yUGWu9BIRABVsYdp1AKkOuManwuFBz89k,20983
16
- htpolynet/core/runtime.py,sha256=yBDfo0-ExUKFmfycWNi-ldnV249yR_j_dkUCkZG0sx8,72385
16
+ htpolynet/core/runtime.py,sha256=SceUjC4lNiY1wO-XvAsy3SJ-RanF6BtXF6GKvqviJ4s,72678
17
17
  htpolynet/core/topocoord.py,sha256=jUgFg9TuUdSm14wo_464xX6dC4okJMrj1FbIzmaoA0Q,110520
18
18
  htpolynet/core/topology.py,sha256=ASyNbyWxw4bvFUACBmydCr-gGl705o68aB7vGYl7cHk,65405
19
19
  htpolynet/cure/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -21,7 +21,7 @@ htpolynet/cure/chain.py,sha256=-d5BFE5xUKjFdNkxLfSnCnZIRSJCtr7xuxYzNHBeSgU,5344
21
21
  htpolynet/cure/curecontroller.py,sha256=eTJc1JqrD7w6XLg4pL5ACHXo5N1oJ6P5pVdzMONxiBU,59756
22
22
  htpolynet/cure/expandreactions.py,sha256=eN35-SQrzjoo8ftZVLJkiAKxpA_FigERTwZ8jtoxDng,20682
23
23
  htpolynet/cure/reaction.py,sha256=_kRJ1JzT_fjLIAF6j9lH_Sft41KD1kVQuWPmXdHia-M,13446
24
- htpolynet/cure/ringcontroller.py,sha256=T104pX6qUwjzRgOmROuQnxiV6Eu3xSSZim2XBsFwNaY,19962
24
+ htpolynet/cure/ringcontroller.py,sha256=3gIJi6BJegAqB-djMZGX5YmIBnzrfdqIxXI7cnk-27U,22292
25
25
  htpolynet/cure/triplesearch.py,sha256=54Dl0RU_LHcwCDa4-0AiRH08eIEA8bTacrA1TDhs5I8,10605
26
26
  htpolynet/external/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
27
  htpolynet/external/ambertools.py,sha256=NkZ0fP6iqwMnMk2jMD3-EaiGCmutHb1MVFOTFJiQ7WI,6286
@@ -92,7 +92,7 @@ htpolynet/resources/molecules/sample-inputs/STY.mol2,sha256=r1NqpovL6L7E96Kkyc6U
92
92
  htpolynet/resources/tcl/readbonds.tcl,sha256=l_bh7eMjbxVi44UMPMi32bFntZltij92KmKfXC1qDz4,972
93
93
  htpolynet/resources/tcl/readgrx.tcl,sha256=A1KvyIpFC_lwfze3XOqTCPqLIkq7HwmqJ96lZH42W0U,1731
94
94
  htpolynet/resources/tcl/render.tcl,sha256=KUszYxzWtfuL7OXdtdk8n6eAQbz8DJfKJrGbb0pOdrI,2379
95
- htpolynet/schema/base.yaml,sha256=rIAWZDJuiZLIpnVU5DZCv40Z7KmQ5cx8o5RJyOY2i20,40385
95
+ htpolynet/schema/base.yaml,sha256=UFnNDWitwAqv2g5TH7PtGCIfKa7ZWiw7-vIAyHL4A4g,40997
96
96
  htpolynet/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
97
97
  htpolynet/utils/banner.py,sha256=hdw6xoHNAo9p6X33LmhW5qyb67qAaQ3hmLnct3ZuDy0,906
98
98
  htpolynet/utils/checkpoint.py,sha256=QTZIJ8K777T6o-mNpjPdelTqrpT0amLlQcgpHBiq5V0,2924
@@ -103,8 +103,8 @@ htpolynet/utils/logsetup.py,sha256=o0mlVXNzqcfua2SAlJPkGSh4lM_bmI10gWwpb9gqYu8,1
103
103
  htpolynet/utils/profiling.py,sha256=su7qpGEz6FXVU4KT2HQDWG82bc1sgsfpDQBbAfPpsHc,7331
104
104
  htpolynet/utils/stringthings.py,sha256=Mr6o55EM8o4YAaVYpjIJj2IxDToNdbPzb-lpQ3w3jFk,1176
105
105
  htpolynet/utils/vmd_viz.py,sha256=Crk3Ln88PKiJ9X7DMMkFEVh2Ru6a1y0RUgj3w6EIgFc,10867
106
- htpolynet-2.11.2.dist-info/METADATA,sha256=OC5RW8dmoa0N3Ud9ZbTkPDqJnNPvX0PpA1fESIu-wes,6589
107
- htpolynet-2.11.2.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
108
- htpolynet-2.11.2.dist-info/entry_points.txt,sha256=G5tx55llJf-IV9dIe7J8myGdyrhCVggCAhKrVNGP_s0,48
109
- htpolynet-2.11.2.dist-info/licenses/LICENSE,sha256=piPSGqJdmTGyzF9HOnjlO2KvgOKT8NHwhCuGYM778tY,1071
110
- htpolynet-2.11.2.dist-info/RECORD,,
106
+ htpolynet-2.11.3.dist-info/METADATA,sha256=pDmyTILiYe8AJTW40OguOMZcfN2q0mhNboexlAMOZ64,6589
107
+ htpolynet-2.11.3.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
108
+ htpolynet-2.11.3.dist-info/entry_points.txt,sha256=G5tx55llJf-IV9dIe7J8myGdyrhCVggCAhKrVNGP_s0,48
109
+ htpolynet-2.11.3.dist-info/licenses/LICENSE,sha256=piPSGqJdmTGyzF9HOnjlO2KvgOKT8NHwhCuGYM778tY,1071
110
+ htpolynet-2.11.3.dist-info/RECORD,,