HTPolyNet 2.11.6__tar.gz → 2.12.0__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.
Files changed (376) hide show
  1. {htpolynet-2.11.6 → htpolynet-2.12.0}/CHANGELOG.md +63 -0
  2. {htpolynet-2.11.6 → htpolynet-2.12.0}/PKG-INFO +1 -1
  3. {htpolynet-2.11.6 → htpolynet-2.12.0}/ROADMAP.md +16 -0
  4. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/htpolynetpackage.rst +10 -0
  5. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/usage.rst +52 -0
  6. {htpolynet-2.11.6 → htpolynet-2.12.0}/pyproject.toml +1 -1
  7. htpolynet-2.12.0/src/htpolynet/analysis/piercings.py +226 -0
  8. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/cli.py +7 -0
  9. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/cure/triplesearch.py +4 -22
  10. htpolynet-2.12.0/src/htpolynet/geometry/piercing.py +120 -0
  11. htpolynet-2.12.0/tests/unit/test_config_docs_coverage.py +57 -0
  12. htpolynet-2.12.0/tests/unit/test_piercings.py +278 -0
  13. {htpolynet-2.11.6 → htpolynet-2.12.0}/.claude/settings.json +0 -0
  14. {htpolynet-2.11.6 → htpolynet-2.12.0}/.claude/skills/htpolynet/SKILL.md +0 -0
  15. {htpolynet-2.11.6 → htpolynet-2.12.0}/.envrc +0 -0
  16. {htpolynet-2.11.6 → htpolynet-2.12.0}/.github/workflows/conda-forge-sync.yml +0 -0
  17. {htpolynet-2.11.6 → htpolynet-2.12.0}/.github/workflows/docker.yml +0 -0
  18. {htpolynet-2.11.6 → htpolynet-2.12.0}/.github/workflows/docs.yml +0 -0
  19. {htpolynet-2.11.6 → htpolynet-2.12.0}/.github/workflows/release.yaml +0 -0
  20. {htpolynet-2.11.6 → htpolynet-2.12.0}/.github/workflows/test.yml +0 -0
  21. {htpolynet-2.11.6 → htpolynet-2.12.0}/.gitignore +0 -0
  22. {htpolynet-2.11.6 → htpolynet-2.12.0}/.readthedocs.yaml +0 -0
  23. {htpolynet-2.11.6 → htpolynet-2.12.0}/CITATION.cff +0 -0
  24. {htpolynet-2.11.6 → htpolynet-2.12.0}/CLAUDE.md +0 -0
  25. {htpolynet-2.11.6 → htpolynet-2.12.0}/LICENSE +0 -0
  26. {htpolynet-2.11.6 → htpolynet-2.12.0}/MANIFEST.in +0 -0
  27. {htpolynet-2.11.6 → htpolynet-2.12.0}/README.md +0 -0
  28. {htpolynet-2.11.6 → htpolynet-2.12.0}/docker/Dockerfile +0 -0
  29. {htpolynet-2.11.6 → htpolynet-2.12.0}/docker/compose.yml +0 -0
  30. {htpolynet-2.11.6 → htpolynet-2.12.0}/docker/docker-entrypoint.sh +0 -0
  31. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/Makefile +0 -0
  32. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/README.rst +0 -0
  33. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/make.bat +0 -0
  34. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/requirements.txt +0 -0
  35. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/_static/.gitkeep +0 -0
  36. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/_static/htpolynet-favicon.ico +0 -0
  37. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/_static/htpolynet-landing.jpg +0 -0
  38. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/_static/htpolynet-logo-dark.png +0 -0
  39. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/_static/htpolynet-logo-light.png +0 -0
  40. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/changelog.rst +0 -0
  41. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/conf.py +0 -0
  42. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/0-liquid-styrene/configuration.rst +0 -0
  43. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/0-liquid-styrene/index.rst +0 -0
  44. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/0-liquid-styrene/introduction.rst +0 -0
  45. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/0-liquid-styrene/monomer.rst +0 -0
  46. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/0-liquid-styrene/postsim.rst +0 -0
  47. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/0-liquid-styrene/results.rst +0 -0
  48. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/0-liquid-styrene/run.rst +0 -0
  49. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/1-polystyrene/configuration.rst +0 -0
  50. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/1-polystyrene/index.rst +0 -0
  51. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/1-polystyrene/introduction.rst +0 -0
  52. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/1-polystyrene/monomer.rst +0 -0
  53. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/1-polystyrene/pics/STY.png +0 -0
  54. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/1-polystyrene/pics/STYCC.png +0 -0
  55. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/1-polystyrene/pics/buildtraces.png +0 -0
  56. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/1-polystyrene/pics/cure_info.png +0 -0
  57. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/1-polystyrene/pics/densification-density.png +0 -0
  58. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/1-polystyrene/pics/final-box.png +0 -0
  59. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/1-polystyrene/pics/reaction_network.png +0 -0
  60. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/1-polystyrene/pics/sty-coloring.tcl +0 -0
  61. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/1-polystyrene/pics/sty-cured.png +0 -0
  62. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/1-polystyrene/pics/sty-detail.png +0 -0
  63. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/1-polystyrene/pics/sty-liq.png +0 -0
  64. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/1-polystyrene/pics/styrene-polymerization.png +0 -0
  65. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/1-polystyrene/postsim.rst +0 -0
  66. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/1-polystyrene/reactions.rst +0 -0
  67. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/1-polystyrene/results.rst +0 -0
  68. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/1-polystyrene/run.rst +0 -0
  69. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/2-bisgma-styrene-thermoset/configuration.rst +0 -0
  70. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/2-bisgma-styrene-thermoset/index.rst +0 -0
  71. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/2-bisgma-styrene-thermoset/introduction.rst +0 -0
  72. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/2-bisgma-styrene-thermoset/pics/BPA.png +0 -0
  73. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/2-bisgma-styrene-thermoset/pics/GMA.png +0 -0
  74. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/2-bisgma-styrene-thermoset/pics/HIE.png +0 -0
  75. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/2-bisgma-styrene-thermoset/pics/buildtraces.png +0 -0
  76. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/2-bisgma-styrene-thermoset/pics/cure_info.png +0 -0
  77. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/2-bisgma-styrene-thermoset/pics/densification-density.png +0 -0
  78. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/2-bisgma-styrene-thermoset/pics/four_dimers.eps +0 -0
  79. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/2-bisgma-styrene-thermoset/pics/four_dimers.fig +0 -0
  80. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/2-bisgma-styrene-thermoset/pics/four_dimers.png +0 -0
  81. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/2-bisgma-styrene-thermoset/pics/gma-sty-coloring.tcl +0 -0
  82. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/2-bisgma-styrene-thermoset/pics/gma-sty-cured.png +0 -0
  83. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/2-bisgma-styrene-thermoset/pics/gma-sty-detail.png +0 -0
  84. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/2-bisgma-styrene-thermoset/pics/gma-sty-liq.png +0 -0
  85. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/2-bisgma-styrene-thermoset/pics/p1-traces.png +0 -0
  86. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/2-bisgma-styrene-thermoset/pics/reaction_network.png +0 -0
  87. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/2-bisgma-styrene-thermoset/pics/vesys.eps +0 -0
  88. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/2-bisgma-styrene-thermoset/pics/vesys.fig +0 -0
  89. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/2-bisgma-styrene-thermoset/pics/vesys.png +0 -0
  90. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/2-bisgma-styrene-thermoset/postsim.rst +0 -0
  91. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/2-bisgma-styrene-thermoset/reactions.rst +0 -0
  92. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/2-bisgma-styrene-thermoset/results.rst +0 -0
  93. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/2-bisgma-styrene-thermoset/run.rst +0 -0
  94. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/configuration.rst +0 -0
  95. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/index.rst +0 -0
  96. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/introduction.rst +0 -0
  97. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/monomers.rst +0 -0
  98. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/DGE-epoxy.png +0 -0
  99. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/DGE-labelled.png +0 -0
  100. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/PAC-2d.png +0 -0
  101. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/PAC-labelled.png +0 -0
  102. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/buildtraces.png +0 -0
  103. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/cure_info.png +0 -0
  104. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/densification-density.png +0 -0
  105. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/dge-pac-coloring.tcl +0 -0
  106. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/dge-pac-cured.png +0 -0
  107. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/dge-pac-detail.png +0 -0
  108. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/dge-pac-liq.png +0 -0
  109. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/dgesys.eps +0 -0
  110. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/dgesys.fig +0 -0
  111. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/dgesys.png +0 -0
  112. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/equil-rho_v_ns.png +0 -0
  113. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/postsim-typical.png +0 -0
  114. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/prod-e.png +0 -0
  115. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/prod-equil-rho_v_ns.png +0 -0
  116. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/prod-rho_v_ns.png +0 -0
  117. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/prod-tg.png +0 -0
  118. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/r1.png +0 -0
  119. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/r2.png +0 -0
  120. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/r3.png +0 -0
  121. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/reaction_network.png +0 -0
  122. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/rho_v_ns.png +0 -0
  123. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/short-e.png +0 -0
  124. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/pics/short-tg.png +0 -0
  125. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/postsim.rst +0 -0
  126. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/reactions.rst +0 -0
  127. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/results.rst +0 -0
  128. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/3-pacm-dgeba-epoxy-thermoset/run.rst +0 -0
  129. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/4-dfda-fde-epoxy-thermoset/configuration.rst +0 -0
  130. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/4-dfda-fde-epoxy-thermoset/index.rst +0 -0
  131. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/4-dfda-fde-epoxy-thermoset/introduction.rst +0 -0
  132. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/4-dfda-fde-epoxy-thermoset/monomers.rst +0 -0
  133. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/4-dfda-fde-epoxy-thermoset/pics/buildtraces.png +0 -0
  134. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/4-dfda-fde-epoxy-thermoset/pics/cure_info.png +0 -0
  135. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/4-dfda-fde-epoxy-thermoset/pics/densification-density.png +0 -0
  136. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/4-dfda-fde-epoxy-thermoset/pics/dfa-fde-coloring.tcl +0 -0
  137. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/4-dfda-fde-epoxy-thermoset/pics/dfa-fde-cured.png +0 -0
  138. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/4-dfda-fde-epoxy-thermoset/pics/dfa-fde-detail.png +0 -0
  139. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/4-dfda-fde-epoxy-thermoset/pics/dfa-fde-liq.png +0 -0
  140. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/4-dfda-fde-epoxy-thermoset/pics/reaction_network.png +0 -0
  141. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/4-dfda-fde-epoxy-thermoset/postsim.rst +0 -0
  142. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/4-dfda-fde-epoxy-thermoset/reactions.rst +0 -0
  143. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/4-dfda-fde-epoxy-thermoset/results.rst +0 -0
  144. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/4-dfda-fde-epoxy-thermoset/run.rst +0 -0
  145. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/5-htpb-ipdi/configuration.rst +0 -0
  146. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/5-htpb-ipdi/index.rst +0 -0
  147. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/5-htpb-ipdi/introduction.rst +0 -0
  148. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/5-htpb-ipdi/monomers.rst +0 -0
  149. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/5-htpb-ipdi/pics/buildtraces.png +0 -0
  150. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/5-htpb-ipdi/pics/cure_info.png +0 -0
  151. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/5-htpb-ipdi/pics/densification-density.png +0 -0
  152. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/5-htpb-ipdi/pics/htpb-coloring.tcl +0 -0
  153. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/5-htpb-ipdi/pics/htpb-ipdi-cured.png +0 -0
  154. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/5-htpb-ipdi/pics/htpb-ipdi-detail.png +0 -0
  155. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/5-htpb-ipdi/pics/htpb-ipdi-liq.png +0 -0
  156. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/5-htpb-ipdi/pics/reaction_network.png +0 -0
  157. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/5-htpb-ipdi/postsim.rst +0 -0
  158. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/5-htpb-ipdi/reactions.rst +0 -0
  159. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/5-htpb-ipdi/results.rst +0 -0
  160. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/5-htpb-ipdi/run.rst +0 -0
  161. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/6-cyanate-ester/configuration.rst +0 -0
  162. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/6-cyanate-ester/index.rst +0 -0
  163. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/6-cyanate-ester/introduction.rst +0 -0
  164. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/6-cyanate-ester/monomers.rst +0 -0
  165. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/6-cyanate-ester/pics/badcy-coloring.tcl +0 -0
  166. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/6-cyanate-ester/pics/badcy-cured.png +0 -0
  167. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/6-cyanate-ester/pics/badcy-detail.png +0 -0
  168. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/6-cyanate-ester/pics/badcy-liq.png +0 -0
  169. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/6-cyanate-ester/pics/buildtraces.png +0 -0
  170. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/6-cyanate-ester/pics/cure_info.png +0 -0
  171. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/6-cyanate-ester/pics/densification-density.png +0 -0
  172. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/6-cyanate-ester/pics/reaction_network.png +0 -0
  173. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/6-cyanate-ester/postsim.rst +0 -0
  174. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/6-cyanate-ester/reactions.rst +0 -0
  175. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/6-cyanate-ester/results.rst +0 -0
  176. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/6-cyanate-ester/run.rst +0 -0
  177. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/example-tutorials/index.rst +0 -0
  178. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/index.rst +0 -0
  179. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/install.rst +0 -0
  180. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/references/index.rst +0 -0
  181. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/references/mol2-reference.pdf +0 -0
  182. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/references.bib +0 -0
  183. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/CURE.odg +0 -0
  184. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/bond_filter.odg +0 -0
  185. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/building-a-system.rst +0 -0
  186. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/configs/configs-for-analyze.rst +0 -0
  187. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/configs/configs-for-postsim.rst +0 -0
  188. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/configs/configs-for-run.rst +0 -0
  189. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/configuration-files.rst +0 -0
  190. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/container-usage.rst +0 -0
  191. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/flow1.odg +0 -0
  192. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/flow1yaml.odg +0 -0
  193. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/hydrogenated.eps +0 -0
  194. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/hydrogenated.fig +0 -0
  195. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/index.rst +0 -0
  196. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/molecular-structure-inputs.rst +0 -0
  197. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/periodic-networks.rst +0 -0
  198. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/pics/STY.png +0 -0
  199. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/pics/STYCC.png +0 -0
  200. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/pics/TypicalUsageFlow.png +0 -0
  201. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/pics/bond_filter.png +0 -0
  202. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/pics/chemdoodle-2dsketcher-emb.png +0 -0
  203. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/pics/chemdoodle-2dsketcher-styrene.png +0 -0
  204. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/pics/hydrogenated.png +0 -0
  205. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/pics/ring_pierce/ring_pierce_cases.png +0 -0
  206. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/pics/ring_pierce/ring_pierce_linkcell.png +0 -0
  207. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/postcure-repair.rst +0 -0
  208. {htpolynet-2.11.6 → htpolynet-2.12.0}/docs/source/user-guide/program-flow.rst +0 -0
  209. {htpolynet-2.11.6 → htpolynet-2.12.0}/scripts/check-conda-sync.py +0 -0
  210. {htpolynet-2.11.6 → htpolynet-2.12.0}/scripts/release.sh +0 -0
  211. {htpolynet-2.11.6 → htpolynet-2.12.0}/scripts/render-detail.sh +0 -0
  212. {htpolynet-2.11.6 → htpolynet-2.12.0}/scripts/render-detail.tcl +0 -0
  213. {htpolynet-2.11.6 → htpolynet-2.12.0}/scripts/render-snapshot.sh +0 -0
  214. {htpolynet-2.11.6 → htpolynet-2.12.0}/scripts/run_all_examples.sh +0 -0
  215. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/__init__.py +0 -0
  216. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/analysis/__init__.py +0 -0
  217. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/analysis/analyze.py +0 -0
  218. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/analysis/plot.py +0 -0
  219. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/analysis/postsim.py +0 -0
  220. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/analysis/utils.py +0 -0
  221. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/core/__init__.py +0 -0
  222. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/core/bondtemplate.py +0 -0
  223. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/core/configuration.py +0 -0
  224. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/core/coordinates.py +0 -0
  225. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/core/molecule.py +0 -0
  226. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/core/paramcache.py +0 -0
  227. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/core/productsplice.py +0 -0
  228. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/core/projectfilesystem.py +0 -0
  229. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/core/runtime.py +0 -0
  230. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/core/topocoord.py +0 -0
  231. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/core/topology.py +0 -0
  232. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/cure/__init__.py +0 -0
  233. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/cure/chain.py +0 -0
  234. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/cure/curecontroller.py +0 -0
  235. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/cure/expandreactions.py +0 -0
  236. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/cure/reaction.py +0 -0
  237. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/cure/ringcontroller.py +0 -0
  238. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/external/__init__.py +0 -0
  239. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/external/ambertools.py +0 -0
  240. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/external/command.py +0 -0
  241. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/external/gromacs.py +0 -0
  242. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/external/slurm.py +0 -0
  243. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/external/smiles_input.py +0 -0
  244. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/external/software.py +0 -0
  245. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/geometry/__init__.py +0 -0
  246. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/geometry/bondlist.py +0 -0
  247. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/geometry/lattice.py +0 -0
  248. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/geometry/linkcell.py +0 -0
  249. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/geometry/matrix4.py +0 -0
  250. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/geometry/placement.py +0 -0
  251. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/geometry/ring.py +0 -0
  252. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/geometry/templategeom.py +0 -0
  253. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/io/__init__.py +0 -0
  254. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/io/gro.py +0 -0
  255. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/io/mol2.py +0 -0
  256. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/io/pdb.py +0 -0
  257. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/repair/__init__.py +0 -0
  258. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/repair/cyanate_cap.py +0 -0
  259. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/repair/topology_surgery.py +0 -0
  260. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/README.md +0 -0
  261. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/__init__.py +0 -0
  262. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/claude/SKILL.md +0 -0
  263. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/example_depot/0-liquid-styrene.yaml +0 -0
  264. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/example_depot/1-polystyrene.yaml +0 -0
  265. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/example_depot/2-bisgma-styrene-thermoset.yaml +0 -0
  266. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/example_depot/3-pacm-dgeba-epoxy-thermoset.yaml +0 -0
  267. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/example_depot/4-dfda-fde-epoxy-thermoset.yaml +0 -0
  268. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/example_depot/5-htpb-ipdi.yaml +0 -0
  269. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/example_depot/6-cyanate-ester.yaml +0 -0
  270. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/mdp/README.md +0 -0
  271. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/mdp/drag-min.mdp +0 -0
  272. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/mdp/drag-npt.mdp +0 -0
  273. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/mdp/drag-nvt.mdp +0 -0
  274. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/mdp/min.mdp +0 -0
  275. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/mdp/npt.mdp +0 -0
  276. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/mdp/nvt.mdp +0 -0
  277. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/mdp/relax-min.mdp +0 -0
  278. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/mdp/relax-npt.mdp +0 -0
  279. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/mdp/relax-nvt.mdp +0 -0
  280. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/mdp/single-molecule-min.mdp +0 -0
  281. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/mdp/single-molecule-nvt.mdp +0 -0
  282. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/molecules/inputs/DFA.pdb +0 -0
  283. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/molecules/inputs/DGE.mol2 +0 -0
  284. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/molecules/inputs/EMB.mol2 +0 -0
  285. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/molecules/inputs/FDE.pdb +0 -0
  286. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/molecules/inputs/GMA.mol2 +0 -0
  287. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/molecules/inputs/PAC.mol2 +0 -0
  288. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/molecules/inputs/STY.mol2 +0 -0
  289. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/molecules/make-monomers.sh +0 -0
  290. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/molecules/pics/DFA.png +0 -0
  291. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/molecules/pics/DGE.png +0 -0
  292. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/molecules/pics/EMB.png +0 -0
  293. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/molecules/pics/FDE.png +0 -0
  294. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/molecules/pics/GMA.png +0 -0
  295. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/molecules/pics/PAC.png +0 -0
  296. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/molecules/pics/STY.png +0 -0
  297. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/molecules/sample-inputs/DFA.pdb +0 -0
  298. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/molecules/sample-inputs/DGE.mol2 +0 -0
  299. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/molecules/sample-inputs/EMB.mol2 +0 -0
  300. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/molecules/sample-inputs/FDE.pdb +0 -0
  301. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/molecules/sample-inputs/GMA.mol2 +0 -0
  302. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/molecules/sample-inputs/PAC.mol2 +0 -0
  303. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/molecules/sample-inputs/STY.mol2 +0 -0
  304. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/tcl/readbonds.tcl +0 -0
  305. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/tcl/readgrx.tcl +0 -0
  306. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/resources/tcl/render.tcl +0 -0
  307. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/schema/base.yaml +0 -0
  308. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/utils/__init__.py +0 -0
  309. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/utils/banner.py +0 -0
  310. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/utils/checkpoint.py +0 -0
  311. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/utils/convergence.py +0 -0
  312. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/utils/dataframetools.py +0 -0
  313. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/utils/inputcheck.py +0 -0
  314. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/utils/logsetup.py +0 -0
  315. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/utils/profiling.py +0 -0
  316. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/utils/stringthings.py +0 -0
  317. {htpolynet-2.11.6 → htpolynet-2.12.0}/src/htpolynet/utils/vmd_viz.py +0 -0
  318. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/__init__.py +0 -0
  319. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/conftest.py +0 -0
  320. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/__init__.py +0 -0
  321. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/fixtures/config1.gro +0 -0
  322. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/fixtures/config1.top +0 -0
  323. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/fixtures/config2.gro +0 -0
  324. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/fixtures/config2.top +0 -0
  325. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/fixtures/items31.edr +0 -0
  326. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/fixtures/items43.edr +0 -0
  327. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/fixtures/items45.edr +0 -0
  328. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/fixtures/short.mdp +0 -0
  329. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_bondtemplate.py +0 -0
  330. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_cap_placement.py +0 -0
  331. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_chain.py +0 -0
  332. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_checkout_shadowing.py +0 -0
  333. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_completion_bias.py +0 -0
  334. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_conda_sync.py +0 -0
  335. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_configuration.py +0 -0
  336. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_convergence.py +0 -0
  337. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_cure_site_functionality.py +0 -0
  338. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_dataframetools.py +0 -0
  339. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_density_gate.py +0 -0
  340. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_gpu_usability.py +0 -0
  341. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_gromacs_get_energy_menu.py +0 -0
  342. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_gromacs_gmx_energy_trace.py +0 -0
  343. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_inputcheck.py +0 -0
  344. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_linkcell_pierce.py +0 -0
  345. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_mdrun_gpu_options.py +0 -0
  346. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_mol2_bond_fallback.py +0 -0
  347. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_molecule_charge_report.py +0 -0
  348. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_moleculetype_name.py +0 -0
  349. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_multibody_reactions.py +0 -0
  350. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_overlong_bond_report.py +0 -0
  351. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_paramcache.py +0 -0
  352. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_paramcache_ambertools.py +0 -0
  353. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_parameterize_react.py +0 -0
  354. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_placement_and_ringclose.py +0 -0
  355. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_plot_smoke.py +0 -0
  356. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_productsplice.py +0 -0
  357. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_projectfilesystem.py +0 -0
  358. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_relax_instrumentation.py +0 -0
  359. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_repair_charge_neutrality.py +0 -0
  360. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_repair_conversion.py +0 -0
  361. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_resources.py +0 -0
  362. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_ring.py +0 -0
  363. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_ring_cure_schema.py +0 -0
  364. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_ring_pierce_figs.py +0 -0
  365. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_ringcontroller.py +0 -0
  366. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_setup_claude.py +0 -0
  367. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_sibling_templates.py +0 -0
  368. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_slurm_script.py +0 -0
  369. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_smiles_input.py +0 -0
  370. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_software_provenance.py +0 -0
  371. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_templategeom.py +0 -0
  372. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_topology/test.top +0 -0
  373. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_topology.py +0 -0
  374. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_transrot_turn_scan.py +0 -0
  375. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_triplesearch.py +0 -0
  376. {htpolynet-2.11.6 → htpolynet-2.12.0}/tests/unit/test_user_frcmod.py +0 -0
@@ -7,6 +7,69 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.12.0] - 2026-09-28
11
+
12
+ ### Added
13
+
14
+ - **A test now fails when a configuration section is added without documenting it.**
15
+ `configs-for-run.rst` still opens by saying a run config has "at most ten distinct
16
+ sections" while the schema has fourteen: `ncpu`, `ring_cure` and `postcure_repair` have
17
+ never been written up. The new test carries those three in a named list so the
18
+ existing debt does not block the suite, fails on any *new* undocumented section, and
19
+ fails again if one of the three is documented and left on the list.
20
+
21
+ - **`htpolynet piercings` reports any bond threaded through a ring in a finished
22
+ network.** Since 2.11.4 a ring cure can *refuse* to create a threading, and there was
23
+ no way to ask whether one is there. That asymmetry is the reason this exists: a
24
+ preventive check whose effect cannot be measured with the same tool is hard to trust,
25
+ and every number that justified those filters came from scripts outside the package.
26
+ Nothing about it is chemistry-specific --- any network built by dragging monomers
27
+ together can thread a bond through a ring.
28
+
29
+ It takes a top and gro pair like `make-viz`, reports each piercing with the ring's
30
+ composition, whether the piercing bond belongs to a residue of the ring, the offset of
31
+ the crossing from the ring centre in nm and as a fraction of the ring radius, the
32
+ angle to the ring normal, and the bond length; it correlates those against bonds too
33
+ long to be bonds, which in measured data are the same set. `-json` writes the
34
+ findings out. It exits 1 when it finds any, so it can gate a pipeline.
35
+
36
+ The geometry moved to `htpolynet.geometry.piercing`, shared with the ring cure's own
37
+ filters so that a measurement and the thing it measures cannot drift apart.
38
+
39
+ **Validated against 12 independently measured builds** (8 affected, 10 piercings):
40
+ counts agree on all 12, including the four clean ones, and both interlocked cases are
41
+ found with both halves. Bond lengths agree to the last digit, offsets within
42
+ 0.001 A, angles within 0.03 degrees. Four of those piercings are in the test suite as
43
+ fixtures, atom-for-atom.
44
+
45
+ That comparison found two defects in the reference data rather than in this code ---
46
+ atom indices off by one, and a fraction divided by a mean rather than a maximum
47
+ centre-to-vertex distance --- both since corrected upstream. The index error was
48
+ findable only by testing whether the reported ring was a closed cycle in the topology,
49
+ which is the check worth keeping in mind when two implementations are compared: agree
50
+ with the data, not with the other detector.
51
+
52
+ The angle is reported as `angle_from_normal`, and **0 degrees means the bond runs
53
+ straight through**, perpendicular to the ring plane. The report says so in a legend,
54
+ because the obvious reading of such a field is the opposite one.
55
+
56
+ Documented in the user guide, in the subcommand table and with a section of its own,
57
+ alongside a note that a threaded ring is a topological defect rather than a strain
58
+ relaxation removes: if one is found in a finished build, rebuilding with the ring-cure
59
+ filters on is the remedy and there is no post-hoc repair.
60
+
61
+ **Image before you average.** Every ring atom is brought into one periodic image
62
+ before the centroid is taken. Without that, a ring straddling a boundary gets a
63
+ centroid in the middle of the box and a triangle fan spanning the cell: measured here
64
+ on a 2 nm box, a 0.14 nm ring reads as 0.938 nm about a centre a full box-half away,
65
+ which reports a piercing for nearly everything nearby. A detector written without it
66
+ found 212 piercings in an uncured melt, where the answer is zero by construction, and
67
+ about 15% of rings straddle a boundary in a real system. The test suite covers that
68
+ case, its converse, over-long piercing bonds of 2.4 to 3.2 A, composition classified
69
+ on the whole ring rather than on a residue count or a truncated printout, and two
70
+ interlocked rings.
71
+
72
+
10
73
  ## [2.11.6] - 2026-09-27
11
74
 
12
75
  ### Added
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: htpolynet
3
- Version: 2.11.6
3
+ Version: 2.12.0
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/
@@ -1414,6 +1414,22 @@ Coverage as of the last measurement: **38.8%** overall.
1414
1414
 
1415
1415
  ## Configuration
1416
1416
 
1417
+ - **Three config sections have no user documentation**: `ncpu`, `ring_cure` and
1418
+ `postcure_repair`. `docs/source/user-guide/configs/configs-for-run.rst` opens by
1419
+ saying a run config has "at most ten distinct sections"; the schema has fourteen. A
1420
+ user can write any of the three and get no guidance at all, and `ring_cure` is the
1421
+ worst of them --- about fifteen settings, several added during 2.11.x, including two
1422
+ threading filters that change which rings form.
1423
+
1424
+ `tests/unit/test_config_docs_coverage.py` now fails if a *new* section is added
1425
+ undocumented, and carries these three in a named `UNDOCUMENTED` list so the existing
1426
+ debt does not block the suite while a new lapse does. The test also fails if one of
1427
+ them is documented and left on the list, so the list cannot outlive the debt.
1428
+
1429
+ Writing `ring_cure` up properly is worth doing once its settings stop moving; doing it
1430
+ now would document a moving target. `postcure_repair` and `ncpu` are small and could
1431
+ go at any time.
1432
+
1417
1433
  - **Move config handling onto ycleptic.** Approved by Cameron 2026-09-08.
1418
1434
  `core/configuration.py` (85 lines) reads YAML/JSON and `.get()`s eleven
1419
1435
  known top-level sections into attributes with **no validation at all**: an
@@ -22,6 +22,11 @@ htpolynet.analysis
22
22
  :undoc-members:
23
23
  :show-inheritance:
24
24
 
25
+ .. automodule:: htpolynet.analysis.piercings
26
+ :members:
27
+ :undoc-members:
28
+ :show-inheritance:
29
+
25
30
  .. automodule:: htpolynet.analysis.postsim
26
31
  :members:
27
32
  :undoc-members:
@@ -207,6 +212,11 @@ htpolynet.geometry
207
212
  :undoc-members:
208
213
  :show-inheritance:
209
214
 
215
+ .. automodule:: htpolynet.geometry.piercing
216
+ :members:
217
+ :undoc-members:
218
+ :show-inheritance:
219
+
210
220
  htpolynet.repair
211
221
  ----------------
212
222
 
@@ -21,6 +21,7 @@ Subcommand Description
21
21
  ``analyze`` Perform ``gmx``-style analyses of trajectories generated by post-build MD simulations
22
22
  ``gen-slurm-script`` Emit a SLURM batch script that runs ``htpolynet run`` for a given config
23
23
  ``make-viz`` Regenerate VMD visualization files (``.viz.psf`` + ``.viz.tcl``) from an existing ``top`` + ``gro`` pair
24
+ ``piercings`` Report any bond threaded through a ring in an existing ``top`` + ``gro`` pair
24
25
  ``setup-claude`` Install htpolynet's Claude Code skill so an agent can drive htpolynet
25
26
  ==================== ========================
26
27
 
@@ -514,6 +515,57 @@ The main ``.viz.tcl`` sources this file when it exists, so the macros are availa
514
515
 
515
516
  The residue-level view is untouched — selections like ``resname TBO`` or ``resname IPD`` still work — the constituent macros are an *additive* layer.
516
517
 
518
+ ``htpolynet piercings``
519
+ !!!!!!!!!!!!!!!!!!!!!!!
520
+
521
+ A crosslinking cure drags monomers together, and a bond can end up passing *through* a
522
+ ring --- a phenyl, a triazine, any covalent ring in the system. The monomer is then
523
+ threaded and cannot relax out: escaping needs a bond to break, not a barrier to be
524
+ crossed. Such a bond is usually found stretched far past any credible length, and it
525
+ survives minimization and annealing unchanged.
526
+
527
+ Since 2.11.4 a ring cure can *refuse* to create one: ``reject_threaded_rings`` declines
528
+ a ring that would close around an existing bond, and ``reject_new_threading`` declines
529
+ one whose closure dragged a monomer's own bond through a ring already present. Both are
530
+ ``ring_cure`` settings and both default to true. ``piercings`` is how you check whether
531
+ one is there anyway, in any ``top`` + ``gro`` pair:
532
+
533
+ .. code-block:: console
534
+
535
+ $ htpolynet piercings -h
536
+ usage: htpolynet piercings [-h] [-top TOP] [-gro GRO] [-max-ring MAX_RING] [-json JSON]
537
+
538
+ options:
539
+ -h, --help show this help message and exit
540
+ -top TOP input gromacs topology file (default: final.top)
541
+ -gro GRO input gromacs coordinate file (default: final.gro)
542
+ -max-ring MAX_RING largest ring to consider when the topology carries no ring list
543
+ (default: 8)
544
+ -json JSON also write the findings to this JSON file
545
+
546
+ Each piercing is reported with the ring's composition as a formula (``C3N3`` for a
547
+ triazine, ``C6`` for a phenyl), whether the piercing bond belongs to a residue that is
548
+ part of the ring, the offset of the crossing point from the ring centre both in
549
+ Angstroms and as a fraction of the ring radius, the angle between the bond and the ring
550
+ normal, and the bond length. **An angle of 0 degrees means the bond runs straight
551
+ through the ring**, perpendicular to its plane; the report says so in a legend, because
552
+ the obvious reading of such a number is the opposite one.
553
+
554
+ The command exits 1 when it finds anything, so it can gate a pipeline:
555
+
556
+ .. code-block:: console
557
+
558
+ $ htpolynet piercings -top final.top -gro final.gro || echo "threaded rings found"
559
+
560
+ It reuses the ring list htpolynet already carries when there is one. For a ``top`` that
561
+ has none, it finds the smallest ring through each bond, up to ``-max-ring`` atoms.
562
+
563
+ .. note::
564
+
565
+ A threaded ring is a topological defect, not a strain that relaxation removes. If
566
+ you find one in a finished build, rebuilding with the ring-cure filters enabled is
567
+ the remedy; there is no post-hoc repair for it.
568
+
517
569
  ``htpolynet setup-claude``
518
570
  !!!!!!!!!!!!!!!!!!!!!!!!!!
519
571
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "htpolynet"
7
- version = "2.11.6"
7
+ version = "2.12.0"
8
8
  authors = [
9
9
  { name="Cameron F Abrams", email="cfa22@drexel.edu" },
10
10
  ]
@@ -0,0 +1,226 @@
1
+ """Finds bonds threaded through rings in a finished network.
2
+
3
+ htpolynet can refuse to *create* a threading during a ring cure, and until now it could
4
+ not *tell you whether one is there*. That asymmetry is the reason this exists: a
5
+ preventive check whose effect cannot be measured with the same tool is hard to trust,
6
+ and the numbers that justified those filters all came from scripts outside the package.
7
+
8
+ Nothing here is specific to cyanate esters. Any network built by dragging monomers
9
+ together can thread a bond through a ring, and htpolynet builds those by construction.
10
+
11
+ The geometry lives in :mod:`htpolynet.geometry.piercing`, shared with the ring cure's own
12
+ filters so a measurement and the thing it measures cannot drift apart.
13
+
14
+ Author: Cameron F. Abrams <cfa22@drexel.edu>
15
+ """
16
+ import logging
17
+
18
+ import networkx as nx
19
+ import numpy as np
20
+
21
+ from scipy.spatial import cKDTree
22
+
23
+ from ..core.topology import _element_of
24
+ from ..geometry.piercing import pierces_ring, ring_frame
25
+
26
+ logger = logging.getLogger(__name__)
27
+
28
+
29
+ def _bounded_path(G, u, v, max_depth):
30
+ """Shortest path from u to v of at most `max_depth` edges, or None."""
31
+ if u not in G or v not in G:
32
+ return None
33
+ prev, frontier = {u: None}, [u]
34
+ for _ in range(max_depth):
35
+ nxt = []
36
+ for a in frontier:
37
+ for b in G[a]:
38
+ if b in prev:
39
+ continue
40
+ prev[b] = a
41
+ if b == v:
42
+ path, cur = [], v
43
+ while cur is not None:
44
+ path.append(cur)
45
+ cur = prev[cur]
46
+ return path[::-1]
47
+ nxt.append(b)
48
+ if not nxt:
49
+ return None
50
+ frontier = nxt
51
+ return None
52
+
53
+
54
+ def detect_rings(bonds, max_size=8):
55
+ """Smallest ring through each bond, for a topology with no ring list of its own.
56
+
57
+ A build made by htpolynet carries its rings already; this is the fallback for a bare
58
+ top/gro pair. Enumerating all chordless cycles is not an option --- on a percolated
59
+ network it does not finish in reasonable time --- so this takes the shortest
60
+ alternative path between each bonded pair, which gives the smallest ring through
61
+ that bond and nothing larger.
62
+
63
+ Args:
64
+ bonds (pandas.DataFrame): with ai and aj columns
65
+ max_size (int): largest ring to look for
66
+
67
+ Returns:
68
+ list: rings, each a list of atom indices in cyclic order
69
+ """
70
+ G = nx.Graph()
71
+ G.add_edges_from((int(r.ai), int(r.aj)) for r in bonds.itertuples())
72
+ seen, out = set(), []
73
+ for u, v in list(G.edges()):
74
+ G.remove_edge(u, v)
75
+ # depth-limited on purpose: an unbounded search on a percolated network walks
76
+ # the whole component for every bond that is not in a small ring, which is most
77
+ # of them
78
+ path = _bounded_path(G, u, v, max_size - 1)
79
+ G.add_edge(u, v)
80
+ if path is None:
81
+ continue
82
+ key = frozenset(path)
83
+ if key in seen:
84
+ continue
85
+ seen.add(key)
86
+ out.append([int(x) for x in path])
87
+ return out
88
+
89
+
90
+ def ring_composition(ring, element_of):
91
+ """A ring's composition as a formula string, heaviest-count first.
92
+
93
+ Deliberately general: a triazine reads ``C3N3`` and a benzene ``C6`` without this
94
+ module knowing either name. Classify on the whole ring --- keying on residue count
95
+ or on a truncated printout are both ways this has been got wrong.
96
+ """
97
+ counts = {}
98
+ for i in ring:
99
+ e = element_of.get(int(i), '?')
100
+ counts[e] = counts.get(e, 0) + 1
101
+ return ''.join(f'{e}{counts[e]}' for e in sorted(counts, key=lambda x: (-counts[x], x)))
102
+
103
+
104
+ def find_piercings(TC, max_ring=8, margin=0.3):
105
+ """Every bond that passes through a ring.
106
+
107
+ Args:
108
+ TC (TopoCoord): the system, with coordinates loaded
109
+ max_ring (int): largest ring to consider when detecting rings
110
+ margin (float): how far beyond a ring's radius to look for bonds, in nm
111
+
112
+ Returns:
113
+ list: one dict per piercing, with the ring, its composition, the bond, whether
114
+ the bond belongs to a residue of the ring, and the geometry of the crossing
115
+ """
116
+ A = TC.Coordinates.A
117
+ positions = {int(r.globalIdx): np.array([r.posX, r.posY, r.posZ]) for r in A.itertuples()}
118
+ box = np.asarray(TC.Coordinates.box.diagonal(), dtype=float)
119
+ at = TC.Topology.D['atoms']
120
+ element_of = {int(r.nr): _element_of(r.atom, r.type) for r in at.itertuples()}
121
+ resnr_of = {int(r.nr): int(r.resnr) for r in at.itertuples()}
122
+ bonds = TC.Topology.D['bonds']
123
+
124
+ rings = [[int(x) for x in r.idx] for r in (getattr(TC.Topology, 'rings', None) or [])]
125
+ rings = [r for r in rings if 3 <= len(r) <= max_ring]
126
+ if not rings:
127
+ logger.info('No ring list on this topology; detecting rings from the bond graph')
128
+ rings = detect_rings(bonds, max_size=max_ring)
129
+ logger.info(f'Scanning {len(rings)} ring(s) against {bonds.shape[0]} bond(s)')
130
+
131
+ ids = np.fromiter(positions.keys(), dtype=int, count=len(positions))
132
+ pts = np.array([positions[i] for i in ids], dtype=float)
133
+ tree = cKDTree(np.mod(pts, box), boxsize=box)
134
+ bonds_of = {}
135
+ for r in bonds.itertuples():
136
+ ai, aj = int(r.ai), int(r.aj)
137
+ bonds_of.setdefault(ai, []).append((ai, aj))
138
+ bonds_of.setdefault(aj, []).append((ai, aj))
139
+
140
+ out = []
141
+ for ring in rings:
142
+ frame = ring_frame(ring, positions, box)
143
+ if frame is None:
144
+ continue
145
+ _, O, _, radius = frame
146
+ near = tree.query_ball_point(np.mod(O, box), radius + margin)
147
+ ring_set, seen = set(ring), set()
148
+ for j in near:
149
+ a = int(ids[j])
150
+ if a in ring_set:
151
+ continue
152
+ for bond in bonds_of.get(a, ()):
153
+ key = (min(bond), max(bond))
154
+ if key in seen:
155
+ continue
156
+ seen.add(key)
157
+ hit = pierces_ring(ring, bond, positions, box)
158
+ if hit is None:
159
+ continue
160
+ ring_res = {resnr_of.get(i) for i in ring}
161
+ out.append({'ring': ring, 'composition': ring_composition(ring, element_of),
162
+ 'bond': key, 'self': resnr_of.get(key[0]) in ring_res
163
+ or resnr_of.get(key[1]) in ring_res,
164
+ **{k: v for k, v in hit.items() if k != 'point'}})
165
+ return out
166
+
167
+
168
+ def format_report(piercings, overlong=0.2):
169
+ """A human-readable summary, correlating piercings with over-long bonds."""
170
+ if not piercings:
171
+ return 'No bond passes through a ring in this system.'
172
+ lines = [f'{len(piercings)} bond(s) pass through a ring:', '']
173
+ by_comp = {}
174
+ for p in piercings:
175
+ by_comp[p['composition']] = by_comp.get(p['composition'], 0) + 1
176
+ lines.append(' by ring composition: '
177
+ + ', '.join(f'{k} {v}' for k, v in sorted(by_comp.items())))
178
+ n_self = sum(1 for p in piercings if p['self'])
179
+ lines.append(f' {n_self} by a bond of a residue in the ring, '
180
+ f'{len(piercings) - n_self} by a foreign residue')
181
+ n_long = sum(1 for p in piercings if p['length'] > overlong)
182
+ lines.append(f' {n_long} of {len(piercings)} piercing bond(s) are longer than '
183
+ f'{overlong} nm, which is longer than any real bond')
184
+ lines.append('')
185
+ lines.append(' (from-normal 0 deg means the bond runs straight through the ring)')
186
+ lines.append('')
187
+ lines.append(' ring composition bond offset frac from-norm length')
188
+ for p in sorted(piercings, key=lambda x: -x['length']):
189
+ r = ','.join(str(x) for x in p['ring'][:3]) + '...'
190
+ lines.append(f' {r:<13} {p["composition"]:<12} '
191
+ f'{p["bond"][0]}-{p["bond"][1]:<10} '
192
+ f'{p["offset"] * 10:6.2f} {p["offset_frac"]:5.2f} '
193
+ f'{p["angle_from_normal"]:9.1f} {p["length"] * 10:6.2f} (A, deg)')
194
+ return '\n'.join(lines)
195
+
196
+
197
+ def piercings(args):
198
+ """CLI handler for ``htpolynet piercings``.
199
+
200
+ Args:
201
+ args (argparse.Namespace): parsed arguments with ``.top``, ``.gro``,
202
+ ``.max_ring``, and optional ``.json``
203
+ """
204
+ import json
205
+ import os
206
+
207
+ from ..core.topocoord import TopoCoord
208
+
209
+ logging.basicConfig(level=logging.INFO, format='%(message)s')
210
+ for f in (args.top, args.gro):
211
+ if not os.path.exists(f):
212
+ logger.error(f'{f} not found')
213
+ raise SystemExit(1)
214
+ try:
215
+ TC = TopoCoord(topfilename=args.top, grofilename=args.gro)
216
+ found = find_piercings(TC, max_ring=args.max_ring)
217
+ except Exception as e:
218
+ logger.error(f'Piercing analysis failed: {e}')
219
+ raise SystemExit(1)
220
+ print(format_report(found))
221
+ if getattr(args, 'json', None):
222
+ with open(args.json, 'w') as f:
223
+ json.dump([{k: (list(v) if isinstance(v, tuple) else v)
224
+ for k, v in p.items()} for p in found], f, indent=2)
225
+ logger.info(f'Wrote {args.json}')
226
+ raise SystemExit(1 if found else 0)
@@ -25,6 +25,7 @@ from .utils.banner import banner_message
25
25
  from .utils.inputcheck import input_check
26
26
  from .utils.logsetup import setup_logging
27
27
  from .utils.stringthings import my_logger
28
+ from .analysis.piercings import piercings
28
29
  from .utils.vmd_viz import make_viz
29
30
 
30
31
  logger = logging.getLogger(__name__)
@@ -292,6 +293,7 @@ def cli():
292
293
  ('analyze', analyze, "perform 'gmx <command>' style analyses specified in the config file"),
293
294
  ('gen-slurm-script', gen_slurm_script, 'generate a SLURM submission script for running htpolynet on a cluster'),
294
295
  ('make-viz', make_viz, 'regenerate VMD viz files (.viz.psf + .viz.tcl) from an existing gromacs top + gro pair'),
296
+ ('piercings', piercings, 'report any bond threaded through a ring in a gromacs top + gro pair; exits 1 if any are found'),
295
297
  ('setup-claude', setup_claude, "install htpolynet's Claude Code skill so an agent can drive htpolynet"),
296
298
  ]
297
299
 
@@ -327,6 +329,11 @@ def cli():
327
329
  cp['make-viz'].add_argument('-grx', type=str, default=None, help='input htpolynet .grx (default: auto-detect <gro-stem>.grx; needed for the constituent-selection macros)')
328
330
  cp['make-viz'].add_argument('-prefix', type=str, default=None, help='output basename; the .viz.psf, .viz.tcl, and .viz.macros.tcl are written next to the input gro (default: stem of -gro)')
329
331
 
332
+ cp['piercings'].add_argument('-top', type=str, default='final.top', help='input gromacs topology file (default: final.top)')
333
+ cp['piercings'].add_argument('-gro', type=str, default='final.gro', help='input gromacs coordinate file (default: final.gro)')
334
+ cp['piercings'].add_argument('-max-ring', dest='max_ring', type=int, default=8, help='largest ring to consider when the topology carries no ring list (default: 8)')
335
+ cp['piercings'].add_argument('-json', type=str, default=None, help='also write the findings to this JSON file')
336
+
330
337
  cp['setup-claude'].add_argument('--skills-dir', type=str, default='~/.claude/skills',
331
338
  help='skills directory to install into (default: %(default)s); use ./.claude/skills to scope the skill to one project')
332
339
  cp['setup-claude'].add_argument('--force', default=False, action='store_true', help='overwrite an existing installed skill')
@@ -17,6 +17,8 @@ import pandas as pd
17
17
 
18
18
  from scipy.spatial import cKDTree
19
19
 
20
+ from ..geometry.piercing import segment_pierces_triangle
21
+
20
22
  logger = logging.getLogger(__name__)
21
23
 
22
24
 
@@ -155,26 +157,6 @@ def candidate_triples(sites, positions, radius, box, same_molecule=False, same_r
155
157
  return out
156
158
 
157
159
 
158
- def _segment_pierces_triangle(p0, p1, a, b, c, eps=1e-12):
159
- """Moller-Trumbore, restricted to a segment rather than an infinite ray."""
160
- e1, e2, d = b - a, c - a, p1 - p0
161
- h = np.cross(d, e2)
162
- det = float(np.dot(e1, h))
163
- if abs(det) < eps:
164
- return False
165
- inv = 1.0 / det
166
- s = p0 - a
167
- u = inv * float(np.dot(s, h))
168
- if u < 0.0 or u > 1.0:
169
- return False
170
- q = np.cross(s, e1)
171
- v = inv * float(np.dot(d, q))
172
- if v < 0.0 or u + v > 1.0:
173
- return False
174
- t = inv * float(np.dot(e2, q))
175
- return 0.0 < t < 1.0
176
-
177
-
178
160
  def ring_threading_bonds(ring, positions, bonds_of, box, margin=0.3):
179
161
  """Existing bonds that pass through the loop a candidate ring would close.
180
162
 
@@ -232,7 +214,7 @@ def ring_threading_bonds(ring, positions, bonds_of, box, margin=0.3):
232
214
  p1 = p0 + _mic(np.asarray(positions[aj], dtype=float)
233
215
  - np.asarray(positions[ai], dtype=float), box)
234
216
  for k in range(len(P)):
235
- if _segment_pierces_triangle(p0, p1, O, P[k], P[(k + 1) % len(P)]):
217
+ if segment_pierces_triangle(p0, p1, O, P[k], P[(k + 1) % len(P)]) is not None:
236
218
  out.append((ai, aj))
237
219
  break
238
220
  return out
@@ -283,7 +265,7 @@ def rings_threaded_by(bond_pairs, ring_atom_lists, positions, box, margin=0.3):
283
265
  p1 = p0 + _mic(np.asarray(positions[aj], dtype=float)
284
266
  - np.asarray(positions[ai], dtype=float), box)
285
267
  for k in range(len(P)):
286
- if _segment_pierces_triangle(p0, p1, O, P[k], P[(k + 1) % len(P)]):
268
+ if segment_pierces_triangle(p0, p1, O, P[k], P[(k + 1) % len(P)]) is not None:
287
269
  out.add((key, (min(ai, aj), max(ai, aj))))
288
270
  break
289
271
  return out
@@ -0,0 +1,120 @@
1
+ """Whether a bond passes through a ring.
2
+
3
+ One question asked in three places: the ring cure asks it forward (would this new ring
4
+ close around a bond?) and backward (did dragging these monomers push a bond through a
5
+ ring already there?), and the analysis asks it of a finished network. The geometry is
6
+ the same each time and lives here so those three cannot drift apart.
7
+
8
+ A ring is treated as a fan of triangles from its centroid rather than as a plane,
9
+ because the thing being tested is not always flat: at candidate time in a ring cure it
10
+ is three reactive groups a search radius apart, and even a real ring puckers.
11
+
12
+ **Image before you average.** Every ring atom is brought into the same periodic image as
13
+ an anchor atom before the centroid is taken. A centroid of raw wrapped coordinates puts
14
+ the centre of any boundary-straddling ring in the middle of the box and its triangle fan
15
+ across the whole cell, which reports a piercing for nearly everything nearby. About 15%
16
+ of rings straddle a boundary in a typical crosslinked system, so this is the normal case
17
+ rather than a corner one: one detector written without it reported 212 piercings in an
18
+ uncured melt, where the true answer is zero by construction.
19
+
20
+ Author: Cameron F. Abrams <cfa22@drexel.edu>
21
+ """
22
+ import numpy as np
23
+
24
+
25
+ def mic(r, box):
26
+ """Minimum-image displacement."""
27
+ box = np.asarray(box, dtype=float)
28
+ return r - np.round(r / box) * box
29
+
30
+
31
+ def segment_pierces_triangle(p0, p1, a, b, c, eps=1e-12):
32
+ """Moller-Trumbore, restricted to a segment rather than an infinite ray.
33
+
34
+ Returns:
35
+ float or None: the fraction along p0->p1 at which it crosses, or None
36
+ """
37
+ e1, e2, d = b - a, c - a, p1 - p0
38
+ h = np.cross(d, e2)
39
+ det = float(np.dot(e1, h))
40
+ if abs(det) < eps:
41
+ return None
42
+ inv = 1.0 / det
43
+ s = p0 - a
44
+ u = inv * float(np.dot(s, h))
45
+ if u < 0.0 or u > 1.0:
46
+ return None
47
+ q = np.cross(s, e1)
48
+ v = inv * float(np.dot(d, q))
49
+ if v < 0.0 or u + v > 1.0:
50
+ return None
51
+ t = inv * float(np.dot(e2, q))
52
+ return t if 0.0 < t < 1.0 else None
53
+
54
+
55
+ def ring_frame(ring, positions, box):
56
+ """The ring's own coordinate frame, imaged so it does not straddle a boundary.
57
+
58
+ Args:
59
+ ring (list): atom indices in cyclic order
60
+ positions (dict): atom index -> position, in nm
61
+ box (array-like): box diagonal, in nm
62
+
63
+ Returns:
64
+ tuple: (points, centroid, unit normal, radius) or None if any atom is missing
65
+ """
66
+ if any(i not in positions for i in ring):
67
+ return None
68
+ anchor = np.asarray(positions[ring[0]], dtype=float)
69
+ P = np.array([anchor + mic(np.asarray(positions[i], dtype=float) - anchor, box)
70
+ for i in ring])
71
+ O = P.mean(axis=0)
72
+ # normal from the averaged cross products of successive centre-to-vertex vectors;
73
+ # sign is arbitrary, which is fine because every use here takes an absolute angle
74
+ V = P - O
75
+ n = np.zeros(3)
76
+ for k in range(len(V)):
77
+ n = n + np.cross(V[k], V[(k + 1) % len(V)])
78
+ norm = np.linalg.norm(n)
79
+ n = n / norm if norm > 1e-12 else np.array([0.0, 0.0, 1.0])
80
+ return P, O, n, float(np.linalg.norm(V, axis=1).max())
81
+
82
+
83
+ def pierces_ring(ring, bond, positions, box):
84
+ """Whether `bond` passes through `ring`, and where.
85
+
86
+ Args:
87
+ ring (list): the ring's atom indices in cyclic order
88
+ bond (tuple): (ai, aj); a bond sharing an atom with the ring never counts
89
+ positions (dict): atom index -> position, in nm
90
+ box (array-like): box diagonal, in nm
91
+
92
+ Returns:
93
+ dict or None: ``point``, ``offset`` from the ring centre in nm, ``offset_frac``
94
+ of the ring radius, ``angle`` of the bond to the ring normal in degrees, and
95
+ ``length`` of the bond in nm
96
+ """
97
+ ai, aj = int(bond[0]), int(bond[1])
98
+ if ai in ring or aj in ring:
99
+ return None
100
+ frame = ring_frame([int(x) for x in ring], positions, box)
101
+ if frame is None or ai not in positions or aj not in positions:
102
+ return None
103
+ P, O, n, radius = frame
104
+ anchor = np.asarray(positions[int(ring[0])], dtype=float)
105
+ p0 = anchor + mic(np.asarray(positions[ai], dtype=float) - anchor, box)
106
+ # the far end is imaged against the near end, so the bond stays one segment
107
+ d = mic(np.asarray(positions[aj], dtype=float) - np.asarray(positions[ai], dtype=float), box)
108
+ p1 = p0 + d
109
+ for k in range(len(P)):
110
+ t = segment_pierces_triangle(p0, p1, O, P[k], P[(k + 1) % len(P)])
111
+ if t is not None:
112
+ point = p0 + t * (p1 - p0)
113
+ offset = float(np.linalg.norm(point - O))
114
+ length = float(np.linalg.norm(d))
115
+ cos = abs(float(np.dot(d / length, n))) if length > 0 else 0.0
116
+ return {'point': point, 'offset': offset,
117
+ 'offset_frac': offset / radius if radius > 0 else float('nan'),
118
+ 'angle_from_normal': float(np.degrees(np.arccos(min(1.0, cos)))),
119
+ 'length': length}
120
+ return None