MultiOptPy 1.20.2__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.
Files changed (246) hide show
  1. multioptpy/Calculator/__init__.py +0 -0
  2. multioptpy/Calculator/ase_calculation_tools.py +424 -0
  3. multioptpy/Calculator/ase_tools/__init__.py +0 -0
  4. multioptpy/Calculator/ase_tools/fairchem.py +28 -0
  5. multioptpy/Calculator/ase_tools/gamess.py +19 -0
  6. multioptpy/Calculator/ase_tools/gaussian.py +165 -0
  7. multioptpy/Calculator/ase_tools/mace.py +28 -0
  8. multioptpy/Calculator/ase_tools/mopac.py +19 -0
  9. multioptpy/Calculator/ase_tools/nwchem.py +31 -0
  10. multioptpy/Calculator/ase_tools/orca.py +22 -0
  11. multioptpy/Calculator/ase_tools/pygfn0.py +37 -0
  12. multioptpy/Calculator/dxtb_calculation_tools.py +344 -0
  13. multioptpy/Calculator/emt_calculation_tools.py +458 -0
  14. multioptpy/Calculator/gpaw_calculation_tools.py +183 -0
  15. multioptpy/Calculator/lj_calculation_tools.py +314 -0
  16. multioptpy/Calculator/psi4_calculation_tools.py +334 -0
  17. multioptpy/Calculator/pwscf_calculation_tools.py +189 -0
  18. multioptpy/Calculator/pyscf_calculation_tools.py +327 -0
  19. multioptpy/Calculator/sqm1_calculation_tools.py +611 -0
  20. multioptpy/Calculator/sqm2_calculation_tools.py +376 -0
  21. multioptpy/Calculator/tblite_calculation_tools.py +352 -0
  22. multioptpy/Calculator/tersoff_calculation_tools.py +818 -0
  23. multioptpy/Constraint/__init__.py +0 -0
  24. multioptpy/Constraint/constraint_condition.py +834 -0
  25. multioptpy/Coordinate/__init__.py +0 -0
  26. multioptpy/Coordinate/polar_coordinate.py +199 -0
  27. multioptpy/Coordinate/redundant_coordinate.py +638 -0
  28. multioptpy/IRC/__init__.py +0 -0
  29. multioptpy/IRC/converge_criteria.py +28 -0
  30. multioptpy/IRC/dvv.py +544 -0
  31. multioptpy/IRC/euler.py +439 -0
  32. multioptpy/IRC/hpc.py +564 -0
  33. multioptpy/IRC/lqa.py +540 -0
  34. multioptpy/IRC/modekill.py +662 -0
  35. multioptpy/IRC/rk4.py +579 -0
  36. multioptpy/Interpolation/__init__.py +0 -0
  37. multioptpy/Interpolation/adaptive_interpolation.py +283 -0
  38. multioptpy/Interpolation/binomial_interpolation.py +179 -0
  39. multioptpy/Interpolation/geodesic_interpolation.py +785 -0
  40. multioptpy/Interpolation/interpolation.py +156 -0
  41. multioptpy/Interpolation/linear_interpolation.py +473 -0
  42. multioptpy/Interpolation/savitzky_golay_interpolation.py +252 -0
  43. multioptpy/Interpolation/spline_interpolation.py +353 -0
  44. multioptpy/MD/__init__.py +0 -0
  45. multioptpy/MD/thermostat.py +185 -0
  46. multioptpy/MEP/__init__.py +0 -0
  47. multioptpy/MEP/pathopt_bneb_force.py +443 -0
  48. multioptpy/MEP/pathopt_dmf_force.py +448 -0
  49. multioptpy/MEP/pathopt_dneb_force.py +130 -0
  50. multioptpy/MEP/pathopt_ewbneb_force.py +207 -0
  51. multioptpy/MEP/pathopt_gpneb_force.py +512 -0
  52. multioptpy/MEP/pathopt_lup_force.py +113 -0
  53. multioptpy/MEP/pathopt_neb_force.py +225 -0
  54. multioptpy/MEP/pathopt_nesb_force.py +205 -0
  55. multioptpy/MEP/pathopt_om_force.py +153 -0
  56. multioptpy/MEP/pathopt_qsm_force.py +174 -0
  57. multioptpy/MEP/pathopt_qsmv2_force.py +304 -0
  58. multioptpy/ModelFunction/__init__.py +7 -0
  59. multioptpy/ModelFunction/avoiding_model_function.py +29 -0
  60. multioptpy/ModelFunction/binary_image_ts_search_model_function.py +47 -0
  61. multioptpy/ModelFunction/conical_model_function.py +26 -0
  62. multioptpy/ModelFunction/opt_meci.py +50 -0
  63. multioptpy/ModelFunction/opt_mesx.py +47 -0
  64. multioptpy/ModelFunction/opt_mesx_2.py +49 -0
  65. multioptpy/ModelFunction/seam_model_function.py +27 -0
  66. multioptpy/ModelHessian/__init__.py +0 -0
  67. multioptpy/ModelHessian/approx_hessian.py +147 -0
  68. multioptpy/ModelHessian/calc_params.py +227 -0
  69. multioptpy/ModelHessian/fischer.py +236 -0
  70. multioptpy/ModelHessian/fischerd3.py +360 -0
  71. multioptpy/ModelHessian/fischerd4.py +398 -0
  72. multioptpy/ModelHessian/gfn0xtb.py +633 -0
  73. multioptpy/ModelHessian/gfnff.py +709 -0
  74. multioptpy/ModelHessian/lindh.py +165 -0
  75. multioptpy/ModelHessian/lindh2007d2.py +707 -0
  76. multioptpy/ModelHessian/lindh2007d3.py +822 -0
  77. multioptpy/ModelHessian/lindh2007d4.py +1030 -0
  78. multioptpy/ModelHessian/morse.py +106 -0
  79. multioptpy/ModelHessian/schlegel.py +144 -0
  80. multioptpy/ModelHessian/schlegeld3.py +322 -0
  81. multioptpy/ModelHessian/schlegeld4.py +559 -0
  82. multioptpy/ModelHessian/shortrange.py +346 -0
  83. multioptpy/ModelHessian/swartd2.py +496 -0
  84. multioptpy/ModelHessian/swartd3.py +706 -0
  85. multioptpy/ModelHessian/swartd4.py +918 -0
  86. multioptpy/ModelHessian/tshess.py +40 -0
  87. multioptpy/Optimizer/QHAdam.py +61 -0
  88. multioptpy/Optimizer/__init__.py +0 -0
  89. multioptpy/Optimizer/abc_fire.py +83 -0
  90. multioptpy/Optimizer/adabelief.py +58 -0
  91. multioptpy/Optimizer/adabound.py +68 -0
  92. multioptpy/Optimizer/adadelta.py +65 -0
  93. multioptpy/Optimizer/adaderivative.py +56 -0
  94. multioptpy/Optimizer/adadiff.py +68 -0
  95. multioptpy/Optimizer/adafactor.py +70 -0
  96. multioptpy/Optimizer/adam.py +65 -0
  97. multioptpy/Optimizer/adamax.py +62 -0
  98. multioptpy/Optimizer/adamod.py +83 -0
  99. multioptpy/Optimizer/adamw.py +65 -0
  100. multioptpy/Optimizer/adiis.py +523 -0
  101. multioptpy/Optimizer/afire_neb.py +282 -0
  102. multioptpy/Optimizer/block_hessian_update.py +709 -0
  103. multioptpy/Optimizer/c2diis.py +491 -0
  104. multioptpy/Optimizer/component_wise_scaling.py +405 -0
  105. multioptpy/Optimizer/conjugate_gradient.py +82 -0
  106. multioptpy/Optimizer/conjugate_gradient_neb.py +345 -0
  107. multioptpy/Optimizer/coordinate_locking.py +405 -0
  108. multioptpy/Optimizer/dic_rsirfo.py +1015 -0
  109. multioptpy/Optimizer/ediis.py +417 -0
  110. multioptpy/Optimizer/eve.py +76 -0
  111. multioptpy/Optimizer/fastadabelief.py +61 -0
  112. multioptpy/Optimizer/fire.py +77 -0
  113. multioptpy/Optimizer/fire2.py +249 -0
  114. multioptpy/Optimizer/fire_neb.py +92 -0
  115. multioptpy/Optimizer/gan_step.py +486 -0
  116. multioptpy/Optimizer/gdiis.py +609 -0
  117. multioptpy/Optimizer/gediis.py +203 -0
  118. multioptpy/Optimizer/geodesic_step.py +433 -0
  119. multioptpy/Optimizer/gpmin.py +633 -0
  120. multioptpy/Optimizer/gpr_step.py +364 -0
  121. multioptpy/Optimizer/gradientdescent.py +78 -0
  122. multioptpy/Optimizer/gradientdescent_neb.py +52 -0
  123. multioptpy/Optimizer/hessian_update.py +433 -0
  124. multioptpy/Optimizer/hybrid_rfo.py +998 -0
  125. multioptpy/Optimizer/kdiis.py +625 -0
  126. multioptpy/Optimizer/lars.py +21 -0
  127. multioptpy/Optimizer/lbfgs.py +253 -0
  128. multioptpy/Optimizer/lbfgs_neb.py +355 -0
  129. multioptpy/Optimizer/linesearch.py +236 -0
  130. multioptpy/Optimizer/lookahead.py +40 -0
  131. multioptpy/Optimizer/nadam.py +64 -0
  132. multioptpy/Optimizer/newton.py +200 -0
  133. multioptpy/Optimizer/prodigy.py +70 -0
  134. multioptpy/Optimizer/purtubation.py +16 -0
  135. multioptpy/Optimizer/quickmin_neb.py +245 -0
  136. multioptpy/Optimizer/radam.py +75 -0
  137. multioptpy/Optimizer/rfo_neb.py +302 -0
  138. multioptpy/Optimizer/ric_rfo.py +842 -0
  139. multioptpy/Optimizer/rl_step.py +627 -0
  140. multioptpy/Optimizer/rmspropgrave.py +65 -0
  141. multioptpy/Optimizer/rsirfo.py +1647 -0
  142. multioptpy/Optimizer/rsprfo.py +1056 -0
  143. multioptpy/Optimizer/sadam.py +60 -0
  144. multioptpy/Optimizer/samsgrad.py +63 -0
  145. multioptpy/Optimizer/tr_lbfgs.py +678 -0
  146. multioptpy/Optimizer/trim.py +273 -0
  147. multioptpy/Optimizer/trust_radius.py +207 -0
  148. multioptpy/Optimizer/trust_radius_neb.py +121 -0
  149. multioptpy/Optimizer/yogi.py +60 -0
  150. multioptpy/OtherMethod/__init__.py +0 -0
  151. multioptpy/OtherMethod/addf.py +1150 -0
  152. multioptpy/OtherMethod/dimer.py +895 -0
  153. multioptpy/OtherMethod/elastic_image_pair.py +629 -0
  154. multioptpy/OtherMethod/modelfunction.py +456 -0
  155. multioptpy/OtherMethod/newton_traj.py +454 -0
  156. multioptpy/OtherMethod/twopshs.py +1095 -0
  157. multioptpy/PESAnalyzer/__init__.py +0 -0
  158. multioptpy/PESAnalyzer/calc_irc_curvature.py +125 -0
  159. multioptpy/PESAnalyzer/cmds_analysis.py +152 -0
  160. multioptpy/PESAnalyzer/koopman_analysis.py +268 -0
  161. multioptpy/PESAnalyzer/pca_analysis.py +314 -0
  162. multioptpy/Parameters/__init__.py +0 -0
  163. multioptpy/Parameters/atomic_mass.py +20 -0
  164. multioptpy/Parameters/atomic_number.py +22 -0
  165. multioptpy/Parameters/covalent_radii.py +44 -0
  166. multioptpy/Parameters/d2.py +61 -0
  167. multioptpy/Parameters/d3.py +63 -0
  168. multioptpy/Parameters/d4.py +103 -0
  169. multioptpy/Parameters/dreiding.py +34 -0
  170. multioptpy/Parameters/gfn0xtb_param.py +137 -0
  171. multioptpy/Parameters/gfnff_param.py +315 -0
  172. multioptpy/Parameters/gnb.py +104 -0
  173. multioptpy/Parameters/parameter.py +22 -0
  174. multioptpy/Parameters/uff.py +72 -0
  175. multioptpy/Parameters/unit_values.py +20 -0
  176. multioptpy/Potential/AFIR_potential.py +55 -0
  177. multioptpy/Potential/LJ_repulsive_potential.py +345 -0
  178. multioptpy/Potential/__init__.py +0 -0
  179. multioptpy/Potential/anharmonic_keep_potential.py +28 -0
  180. multioptpy/Potential/asym_elllipsoidal_potential.py +718 -0
  181. multioptpy/Potential/electrostatic_potential.py +69 -0
  182. multioptpy/Potential/flux_potential.py +30 -0
  183. multioptpy/Potential/gaussian_potential.py +101 -0
  184. multioptpy/Potential/idpp.py +516 -0
  185. multioptpy/Potential/keep_angle_potential.py +146 -0
  186. multioptpy/Potential/keep_dihedral_angle_potential.py +105 -0
  187. multioptpy/Potential/keep_outofplain_angle_potential.py +70 -0
  188. multioptpy/Potential/keep_potential.py +99 -0
  189. multioptpy/Potential/mechano_force_potential.py +74 -0
  190. multioptpy/Potential/nanoreactor_potential.py +52 -0
  191. multioptpy/Potential/potential.py +896 -0
  192. multioptpy/Potential/spacer_model_potential.py +221 -0
  193. multioptpy/Potential/switching_potential.py +258 -0
  194. multioptpy/Potential/universal_potential.py +34 -0
  195. multioptpy/Potential/value_range_potential.py +36 -0
  196. multioptpy/Potential/void_point_potential.py +25 -0
  197. multioptpy/SQM/__init__.py +0 -0
  198. multioptpy/SQM/sqm1/__init__.py +0 -0
  199. multioptpy/SQM/sqm1/sqm1_core.py +1792 -0
  200. multioptpy/SQM/sqm2/__init__.py +0 -0
  201. multioptpy/SQM/sqm2/calc_tools.py +95 -0
  202. multioptpy/SQM/sqm2/sqm2_basis.py +850 -0
  203. multioptpy/SQM/sqm2/sqm2_bond.py +119 -0
  204. multioptpy/SQM/sqm2/sqm2_core.py +303 -0
  205. multioptpy/SQM/sqm2/sqm2_data.py +1229 -0
  206. multioptpy/SQM/sqm2/sqm2_disp.py +65 -0
  207. multioptpy/SQM/sqm2/sqm2_eeq.py +243 -0
  208. multioptpy/SQM/sqm2/sqm2_overlapint.py +704 -0
  209. multioptpy/SQM/sqm2/sqm2_qm.py +578 -0
  210. multioptpy/SQM/sqm2/sqm2_rep.py +66 -0
  211. multioptpy/SQM/sqm2/sqm2_srb.py +70 -0
  212. multioptpy/Thermo/__init__.py +0 -0
  213. multioptpy/Thermo/normal_mode_analyzer.py +865 -0
  214. multioptpy/Utils/__init__.py +0 -0
  215. multioptpy/Utils/bond_connectivity.py +264 -0
  216. multioptpy/Utils/calc_tools.py +884 -0
  217. multioptpy/Utils/oniom.py +96 -0
  218. multioptpy/Utils/pbc.py +48 -0
  219. multioptpy/Utils/riemann_curvature.py +208 -0
  220. multioptpy/Utils/symmetry_analyzer.py +482 -0
  221. multioptpy/Visualization/__init__.py +0 -0
  222. multioptpy/Visualization/visualization.py +156 -0
  223. multioptpy/WFAnalyzer/MO_analysis.py +104 -0
  224. multioptpy/WFAnalyzer/__init__.py +0 -0
  225. multioptpy/Wrapper/__init__.py +0 -0
  226. multioptpy/Wrapper/autots.py +1239 -0
  227. multioptpy/Wrapper/ieip_wrapper.py +93 -0
  228. multioptpy/Wrapper/md_wrapper.py +92 -0
  229. multioptpy/Wrapper/neb_wrapper.py +94 -0
  230. multioptpy/Wrapper/optimize_wrapper.py +76 -0
  231. multioptpy/__init__.py +5 -0
  232. multioptpy/entrypoints.py +916 -0
  233. multioptpy/fileio.py +660 -0
  234. multioptpy/ieip.py +340 -0
  235. multioptpy/interface.py +1086 -0
  236. multioptpy/irc.py +529 -0
  237. multioptpy/moleculardynamics.py +432 -0
  238. multioptpy/neb.py +1267 -0
  239. multioptpy/optimization.py +1553 -0
  240. multioptpy/optimizer.py +709 -0
  241. multioptpy-1.20.2.dist-info/METADATA +438 -0
  242. multioptpy-1.20.2.dist-info/RECORD +246 -0
  243. multioptpy-1.20.2.dist-info/WHEEL +5 -0
  244. multioptpy-1.20.2.dist-info/entry_points.txt +9 -0
  245. multioptpy-1.20.2.dist-info/licenses/LICENSE +674 -0
  246. multioptpy-1.20.2.dist-info/top_level.txt +1 -0
@@ -0,0 +1,438 @@
1
+ Metadata-Version: 2.4
2
+ Name: MultiOptPy
3
+ Version: 1.20.2
4
+ Summary: Multifunctional geometry optimization tools for quantum chemical calculations.
5
+ Author-email: ss0832 <highlighty876@gmail.com>
6
+ License: GPLv3
7
+ Requires-Python: >=3.12
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Requires-Dist: numpy~=2.2.0
11
+ Requires-Dist: scipy>=1.13.0
12
+ Requires-Dist: matplotlib~=3.10.0
13
+ Requires-Dist: torch~=2.6.0
14
+ Requires-Dist: pyscf~=2.9.0
15
+ Requires-Dist: tblite~=0.4.0
16
+ Requires-Dist: ase~=3.26.0
17
+ Requires-Dist: fairchem-core~=2.7.0
18
+ Requires-Dist: sympy~=1.13.0
19
+ Dynamic: license-file
20
+
21
+ # MultiOptPy
22
+
23
+
24
+ [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1wpW8YO8r9gq20GACyzdaEsFK4Va1JQs4?usp=sharing) (Test 1, only use GFN2-xTB)
25
+
26
+
27
+ [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1lfvyd7lv6ChjRC7xfPdrBZtGME4gakhz?usp=sharing) (Test 2, GFN2-xTB + PySCF(HF/STO-3G))
28
+
29
+
30
+ [![Buy Me A Coffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-ffdd00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black)](https://buymeacoffee.com/ss0832)
31
+
32
+
33
+ If this tool helped your studies, education, or saved your time, I'd appreciate a coffee!
34
+ Your support serves as a great encouragement for this personal project and fuels my next journey.
35
+ I also welcome contributions, bug reports, and pull requests to improve this tool.
36
+
37
+ Note on Contributions: While bug reports and pull requests are welcome, please note that this is a personal project maintained in my spare time. Responses to issues and PRs may be delayed or not guaranteed. I appreciate your patience and understanding.
38
+
39
+ Multifunctional geometry optimization tools for quantum chemical calculations
40
+
41
+ This program implements many geometry optimization methods in Python for learning purposes.
42
+
43
+ This program can also automatically calculate the transition-state structure from a single equilibrium geometry.
44
+
45
+ **Notice:** This program has NOT been experimentally validated in laboratory settings. I release this code to enable community contributions and collaborative development. Use at your own discretion and validate results independently.
46
+
47
+ (Caution: Using Japanese to explain) Instructions on how to use:
48
+ - https://ss0832.github.io/
49
+ - https://ss0832.github.io/posts/20251130_mop_usage_menschutkin_reaction_uma_en/ (In English, auto-translated)
50
+
51
+ ## Features
52
+
53
+ - It is intended to be used in a linux environment.
54
+ - It can be used not only with AFIR functions, but also with other bias potentials.
55
+
56
+ ## Quick Start (for Linux)
57
+ ```
58
+ # Below is an example showing how to use GFN2-xTB to calculate a transition-state structure.
59
+ # These commands are intended for users who want a straightforward, ready-to-run setup on Linux.
60
+
61
+ ## 1. Download and install Anaconda:
62
+ cd ~
63
+ wget https://repo.anaconda.com/archive/Anaconda3-2025.06-1-Linux-x86_64.sh
64
+ bash Anaconda3-2025.06-1-Linux-x86_64.sh
65
+ source .bashrc
66
+ # if the conda command is not available, you need to manually add Anaconda to your PATH:
67
+ # (example command) echo 'export PATH="$HOME/anaconda3/bin:$PATH"' >> ~/.bashrc
68
+ source ~/.bashrc
69
+
70
+ ## 2. Create and activate a conda environment:
71
+ conda create -n test_mop python=3.12.7
72
+ conda activate test_mop
73
+
74
+ ## 3. Download and install MultiOptPy:
75
+ wget https://github.com/ss0832/MultiOptPy/archive/refs/tags/v1.20.0.zip
76
+ unzip v1.20.0.zip
77
+ cd MultiOptPy-1.20.0
78
+ pip install -r requirements.txt
79
+
80
+ ## 4. Copy the test configuration file and run the AutoTS workflow:
81
+ cp test/config_autots_run_xtb_test.json .
82
+ python run_autots.py aldol_rxn.xyz -cfg config_autots_run_xtb_test.json
83
+
84
+
85
+ # Installation via environment.yml (Linux / conda-forge)
86
+
87
+ ## 1. Download and install MultiOptPy:
88
+ git clone -b stable-v1.0 https://github.com/ss0832/MultiOptPy.git
89
+ cd MultiOptPy
90
+
91
+ ## 2. Create and activate a conda environment:
92
+ conda env create -f environment.yml
93
+ conda activate test_mop
94
+
95
+ ## 3. Copy the test configuration file and run the AutoTS workflow:
96
+ cp test/config_autots_run_xtb_test.json .
97
+ python run_autots.py aldol_rxn.xyz -cfg config_autots_run_xtb_test.json
98
+
99
+ # Installation via pip (Linux)
100
+ conda create -n <env-name> python=3.12 pip
101
+ conda activate <env-name>
102
+ pip install git+https://github.com/ss0832/MultiOptPy.git@v1.20.2
103
+
104
+ ## 💻 Command Line Interface (CLI) Functionality (v1.20.2)
105
+ # The following eight core functionalities are available as direct executable commands in your terminal after installation:
106
+ # optmain (Logic from optmain.py):
107
+ # Function: Executes the Core Geometry Optimization functionality.
108
+ # nebmain (Logic from nebmain.py):
109
+ # Function: Executes the Nudged Elastic Band (NEB) path optimization tool for transition state searches.
110
+ # confsearch (Logic from conformation_search.py):
111
+ # Function: Utilizes the comprehensive Conformational Search routine.
112
+ # run_autots (Logic from run_autots.py):
113
+ # Function: Launches the Automated Transition State (AutoTS) workflow.
114
+ # mdmain (Logic from mdmain.py):
115
+ # Function: Initiates Molecular Dynamics (MD) simulation functionality.
116
+ # relaxedscan (Logic from relaxed_scan.py):
117
+ # Function: Executes the Relaxed Potential Energy Surface (PES) Scanning functionality.
118
+ # orientsearch (Logic from orientation_search.py):
119
+ # Function: Executes the molecular Orientation Sampling and Search utility.
120
+
121
+ ```
122
+
123
+ ## Required Modules
124
+ ```
125
+ cd <directory of repository files>
126
+ pip install -r requirements.txt
127
+ ```
128
+ - psi4 (Official page:https://psicode.org/) or PySCF
129
+ - numpy
130
+ - matplotlib
131
+ - scipy
132
+ - pytorch (for calculating derivatives)
133
+
134
+ Optional
135
+
136
+ - tblite (If you use extended tight binding (xTB) method, this module is required.)
137
+ - dxtb (same as above)
138
+ - ASE
139
+
140
+ ## References
141
+
142
+ References are given in the source code.
143
+
144
+ ## Usage
145
+
146
+ After downloading the repository using git clone or similar commands, move to the generated directory and run the following:
147
+
148
+ ```
149
+ python optmain.py SN2.xyz -ma 150 1 6 -pyscf -elec 0 -spin 0 -opt rsirfo_block_fsb -modelhess
150
+ ```
151
+ ```
152
+ python optmain.py aldol_rxn.xyz -ma 95 1 5 50 3 11 -pyscf -elec 0 -spin 0 -opt rsirfo_block_fsb -modelhess
153
+ ```
154
+ For SADDLE calculation
155
+ ```
156
+ python optmain.py aldol_rxn_PT.xyz -xtb GFN2-xTB -opt RSIRFO_bofill -order 1 -fc 5
157
+ ```
158
+
159
+ For NEB method
160
+
161
+ ```
162
+ python nebmain.py aldol_rxn -xtb GFN2-xTB -ns 50 -adpred 1 -nd 0.5
163
+ ```
164
+
165
+ For iEIP method
166
+
167
+ ```
168
+ python ieipmain.py ieip_test -xtb GFN2-xTB
169
+ ```
170
+ For Molecular Dynamics (MD)
171
+
172
+ ```
173
+ python mdmain.py aldol_rxn_PT.xyz -xtb GFN2-xTB -temp 298 -traj 1 -time 100000
174
+ ```
175
+ (Default deterministic algorithm for MD is Nosé–Hoover thermostat.)
176
+
177
+ For orientation search
178
+ ```
179
+ python orientation_search.py aldol_rxn.xyz -part 1-4 -ma 95 1 5 50 3 11 -nsample 5 -xtb GFN2-xTB
180
+ ```
181
+ For conformation search
182
+ ```
183
+ python conformation_search.py s8_for_confomation_search_test.xyz -xtb GFN2-xTB -ns 2000
184
+ ```
185
+ For relaxed scan (Similar to functions implemented in Gaussian)
186
+ ```
187
+ python relaxed_scan.py SN2.xyz -nsample 8 -scan bond 1,2 1.3,2.6 -elec -1 -spin 0 -pyscf
188
+ ```
189
+ ## Options
190
+ (optmain.py)
191
+
192
+ **`-opt`**
193
+
194
+ Specify the algorithm to be used for structural optimization.
195
+
196
+ example 1) `-opt FIRE`.
197
+
198
+ Perform structural optimization using the FIRE method.
199
+
200
+
201
+ Available optimization methods:
202
+
203
+ Recommended optimization methods:
204
+
205
+ - FIRE (Robust method)
206
+ - TR_LBFGS (Limited-memory BFGS method with trust radius method, Faster convergence than FIRE without Hessian)
207
+ - rsirfo_block_fsb
208
+ - rsirfo_block_bofill (for calculation of saddle point)
209
+
210
+ `-ma`
211
+
212
+ Add the potential by AFIR function.
213
+ Energy (kJ/mol) Atom 1 or fragment 1 to which potential is added Atom 2 or fragment 2 to which potential is added.
214
+
215
+ Example 1) `-ma 195 1 5`
216
+
217
+ Apply a potential of 195 kJ/mol (pushing force) to the first atom and the fifth atom as a pair.
218
+
219
+ Example 2) `-ma 195 1 5 195 3 11`
220
+
221
+ Multiply the potential of 195 kJ/mol (pushing force) by the pair of the first atom and the fifth atom. Then multiply the potential of 195 kJ/mol (pushing force) by the pair of the third atom and the eleventh atom.
222
+
223
+ Example 3) `-ma -195 1-3 5,6`
224
+
225
+ Multiply the potential of -195 kJ/mol (pulling force) by the fragment consisting of the 1st-3rd atoms paired with the fragments consisting of the 5th and 6th atoms.
226
+
227
+
228
+ `-bs`
229
+
230
+ Specifies the basis function. The default is 6-31G*.
231
+
232
+ Example 1) `-bs 6-31G*`
233
+
234
+ Calculate using 6-31G* as the basis function.
235
+
236
+ Example 2) `-bs sto-3g`
237
+
238
+ Calculate using STO-3G as the basis function.
239
+
240
+ `-func`
241
+
242
+ Specify the functionals in the DFT (specify the calculation method). The default is b3lyp.
243
+
244
+ Example 1) `-func b3lyp`
245
+
246
+ Calculate using B3LYP as the functional.
247
+
248
+ Example 2) `-func hf`
249
+
250
+ Calculate using the Hartree-Fock method.
251
+
252
+ `-sub_bs`
253
+
254
+ Specify a specific basis function for a given atom.
255
+
256
+ Example 1) `-sub_bs I LanL2DZ`
257
+
258
+ Assign the basis function LanL2DZ to the iodine atom, and if -bs is the default, assign 6-31G* to non-iodine atoms for calculation.
259
+
260
+ `-ns`
261
+
262
+ Specifies the maximum number of times the gradient is calculated for structural optimization. The default is a maximum of 300 calculations.
263
+
264
+ Example 1) `-ns 400`
265
+
266
+ Calculate gradient up to 400 iterations.
267
+
268
+
269
+
270
+ `-core`
271
+
272
+ Specify the number of CPU cores to be used in the calculation. By default, 8 cores are used. (Adjust according to your own environment.)
273
+
274
+ Example 1) `-core 4`
275
+
276
+ Calculate using 4 CPU cores.
277
+
278
+ `-mem`
279
+
280
+ Specify the memory to be used for calculations. The default is 1GB. (Adjust according to your own environment.)
281
+
282
+ Example 1) `-mem 2GB`
283
+
284
+ Calculate using 2GB of memory.
285
+
286
+ `-d`
287
+
288
+ Specifies the size of the step width after gradient calculation. The larger the value, the faster the convergence, but it is not possible to follow carefully on the potential hypersurface.
289
+
290
+ Example 1) `-d 0.05`
291
+
292
+
293
+
294
+ `-kp`
295
+
296
+ Multiply the potential calculated from the following equation (a potential based on the harmonic approximation) by the two atom pairs. This is used when you want to fix the distance between atoms to some extent.
297
+
298
+ $V(r) = 0.5k(r - r_0)^2$
299
+
300
+ `spring const. k (a.u.) keep distance [$ r_0] (ang.) atom1,atom2 ...`
301
+
302
+ Example 1) `-kp 2.0 1.0 1,2`
303
+
304
+ Apply harmonic approximation potentials to the 1st and 2nd atoms with spring constant 2.0 a.u. and equilibrium distance 1.0 Å.
305
+
306
+ `-akp`
307
+
308
+ The potential (based on anharmonic approximation, Morse potential) calculated from the following equation is applied to two atomic pairs. This is used when you want to fix the distance between atoms to some extent. Unlike -kp, the depth of the potential is adjustable.
309
+
310
+ $V(r) = D_e [1 - exp(- \sqrt(\frac{k}{2D_e})(r - r_0))]^2$
311
+
312
+ `potential well depth (a.u.) spring const.(a.u.) keep distance (ang.) atom1,atom2 ...`
313
+
314
+ Example 1) `-ukp 2.0 2.0 1.0 1,2`
315
+
316
+ Anharmonic approximate potential (Mohs potential) is applied to the first and second atoms as equilibrium distance 1.0 Å with a potential depth of 2.0 a.u. and a spring constant of 2.0 a.u.
317
+
318
+ `-ka`
319
+
320
+ The potential calculated from the following equation (potential based on the harmonic approximation) is applied to a group of three atoms, which is used when you want to fix the angle (bond angle) between the three atoms to some extent.
321
+
322
+ $V(\theta) = 0.5k(\theta - \theta_0)^2$
323
+
324
+ `spring const.(a.u.) keep angle (degrees) atom1,atom2,atom3`
325
+
326
+ Example 1) `-ka 2.0 60 1,2,3`
327
+
328
+ Assuming a spring constant of 2.0 a.u. and an equilibrium angle of 60 degrees, apply a potential so that the angle between the first, second, and third atoms approaches 60 degrees.
329
+
330
+ `-kda`
331
+
332
+ The potential (based on the harmonic approximation) calculated from the following equation is applied to a group of 4 atoms to fix the dihedral angle of the 4 atoms to a certain degree.
333
+
334
+ $V(\phi) = 0.5k(\phi - \phi_0)^2$
335
+
336
+ `spring const.(a.u.) keep dihedral angle (degrees) atom1,atom2,atom3,atom4 ...`
337
+
338
+ Example 1) `-kda 2.0 60 1,2,3,4`
339
+
340
+ With a spring constant of 2.0 a.u. and an equilibrium angle of 60 degrees, apply a potential so that the dihedral angles of the planes formed by the 1st, 2nd, and 3rd atoms and the 2nd, 3rd, and 4th atoms approach 60 degrees.
341
+
342
+ `-xtb`
343
+
344
+ Use extended tight binding method. (It is required tblite (python module).)
345
+
346
+ Example 1) `-xtb GFN2-xTB`
347
+
348
+ Use GFN2-xTB method to optimize molecular structure.
349
+
350
+ - Other options are experimental.
351
+
352
+
353
+ ## Author
354
+
355
+ Author of this program is ss0832.
356
+
357
+ ## License
358
+
359
+ GNU Affero General Public License v3.0
360
+
361
+
362
+ ## Contact
363
+
364
+ highlighty876[at]gmail.com
365
+
366
+ ## Citation
367
+
368
+ ss0832. (2025). MultiOptPy: Multifunctional geometry optimization tools for quantum chemical calculations (v1.20.1). Zenodo. https://doi.org/10.5281/zenodo.17831065
369
+
370
+
371
+ ## Setting Up an Environment for Using NNP(UMA) on Windows 11
372
+
373
+ ### 1. Install Anaconda
374
+
375
+ Download and install **Anaconda3-2025.06-1-Windows-x86_64.exe** from:
376
+
377
+ [https://repo.anaconda.com/archive/](https://repo.anaconda.com/archive/)
378
+
379
+ ### 2. Launch the Anaconda PowerShell Prompt
380
+
381
+ Open **"Anaconda PowerShell Prompt"** from the Windows Start menu.
382
+
383
+ ### 3. Create a New Virtual Environment
384
+
385
+ ```
386
+ conda create -n <env_name> python=3.12.7
387
+ ```
388
+
389
+ ### 4. Activate the Environment
390
+
391
+ ```
392
+ conda activate <env_name>
393
+ ```
394
+
395
+ ### 5. Install Required Libraries
396
+
397
+ ```
398
+ pip install ase==3.26.0 fairchem-core==2.7.1 torch==2.6.0
399
+ ```
400
+
401
+ * **fairchem-core**: Required for running NNP models provided by FAIR Chemistry.
402
+ * **ase**: Interface for passing molecular structures to the NNP.
403
+ * **torch**: PyTorch library for neural network execution.
404
+
405
+ ---
406
+
407
+ ## Setting Up the Model File (.pt) for Your NNP Library
408
+
409
+ ### 1. Download the Model File
410
+
411
+ Download **uma-s-1p1.pt** from the following page:
412
+
413
+ [https://huggingface.co/facebook/UMA](https://huggingface.co/facebook/UMA)
414
+
415
+ (Ensure that you have permission to use the file.)
416
+
417
+ ### 2. Add the Model Path to MultiOptPy
418
+
419
+ Open the file `software_path.conf` inside the **MultiOptPy-v1.20.0-rc.4** directory.
420
+
421
+ Add the following line using the absolute path to the model file:
422
+
423
+ ```
424
+ uma-s-1p1::<absolute_path_to/uma-s-1p1.pt>
425
+ ```
426
+
427
+ This enables **MultiOptPy-v1.20.0-rc.4** to use the **uma-s-1p1 NNP model**.
428
+
429
+ ### references of UMA
430
+ - arXiv preprint arXiv:2505.08762 (2025).
431
+ - https://github.com/facebookresearch/fairchem
432
+
433
+ ## Create environment for Win11 / UMA(NNP) using conda
434
+
435
+ ```
436
+ conda env create -f environment_win11uma.yml
437
+ conda activate test_mop_win11_uma
438
+ ```