@@ -150,6 +150,7 @@ def __init__(
150
150
max_scf_cycles : int = 100 ,
151
151
geom_opt_max_cycles : int = 200 ,
152
152
plot_cubes : bool = False ,
153
+ output_wavefunction : bool = False ,
153
154
nbo_params : dict | None = None ,
154
155
geom_opt : dict | None = None ,
155
156
cdft_constraints : list [list [dict ]] | None = None ,
@@ -229,6 +230,8 @@ def __init__(
229
230
max_scf_cycles (int): Maximum number of SCF iterations. (Default: 100)
230
231
geom_opt_max_cycles (int): Maximum number of geometry optimization iterations. (Default: 200)
231
232
plot_cubes (bool): Whether to write CUBE files of the electron density. (Default: False)
233
+ output_wavefunction (bool): Whether to write a wavefunction (*.wfn) file of the electron density
234
+ (Default: False)
232
235
nbo_params (dict): A dict containing the desired NBO params. Note that a key:value pair of
233
236
"version":7 will trigger NBO7 analysis. Otherwise, NBO5 analysis will be performed,
234
237
including if an empty dict is passed. Besides a key of "version", all other key:value
@@ -368,6 +371,7 @@ def __init__(
368
371
self .max_scf_cycles = max_scf_cycles
369
372
self .geom_opt_max_cycles = geom_opt_max_cycles
370
373
self .plot_cubes = plot_cubes
374
+ self .output_wavefunction = output_wavefunction
371
375
self .nbo_params = nbo_params
372
376
self .geom_opt = geom_opt
373
377
self .cdft_constraints = cdft_constraints
@@ -430,6 +434,10 @@ def __init__(
430
434
if self .job_type .lower () in ["opt" , "ts" , "pes_scan" ]:
431
435
rem ["geom_opt_max_cycles" ] = str (self .geom_opt_max_cycles )
432
436
437
+ # To keep things simpler on the analysis side, don't give user option to change *.wfn file name
438
+ if self .output_wavefunction :
439
+ rem ["write_wfn" ] = "wavefunction"
440
+
433
441
solvent_def = 0
434
442
for a in [self .pcm_dielectric , self .isosvp_dielectric , self .smd_solvent , self .cmirs_solvent ]:
435
443
if a is not None :
@@ -644,6 +652,7 @@ def __init__(
644
652
custom_smd : str | None = None ,
645
653
max_scf_cycles : int = 100 ,
646
654
plot_cubes : bool = False ,
655
+ output_wavefunction : bool = False ,
647
656
nbo_params : dict | None = None ,
648
657
vdw_mode : Literal ["atomic" , "sequential" ] = "atomic" ,
649
658
cdft_constraints : list [list [dict ]] | None = None ,
@@ -713,6 +722,8 @@ def __init__(
713
722
Refer to the QChem manual for further details.
714
723
max_scf_cycles (int): Maximum number of SCF iterations. (Default: 100)
715
724
plot_cubes (bool): Whether to write CUBE files of the electron density. (Default: False)
725
+ output_wavefunction (bool): Whether to write a wavefunction (*.wfn) file of the electron density
726
+ (Default: False)
716
727
cdft_constraints (list of lists of dicts):
717
728
A list of lists of dictionaries, where each dictionary represents a charge
718
729
constraint in the cdft section of the QChem input file.
@@ -842,6 +853,7 @@ def __init__(
842
853
qchem_version = qchem_version ,
843
854
max_scf_cycles = self .max_scf_cycles ,
844
855
plot_cubes = plot_cubes ,
856
+ output_wavefunction = output_wavefunction ,
845
857
nbo_params = nbo_params ,
846
858
vdw_mode = vdw_mode ,
847
859
cdft_constraints = cdft_constraints ,
@@ -868,6 +880,7 @@ def __init__(
868
880
custom_smd : str | None = None ,
869
881
max_scf_cycles : int = 100 ,
870
882
plot_cubes : bool = False ,
883
+ output_wavefunction : bool = False ,
871
884
nbo_params : dict | None = None ,
872
885
opt_variables : dict [str , list ] | None = None ,
873
886
geom_opt_max_cycles : int = 200 ,
@@ -940,6 +953,8 @@ def __init__(
940
953
explicitly requested by passing in a dictionary (empty or otherwise) for this input parameter.
941
954
(Default: False)
942
955
plot_cubes (bool): Whether to write CUBE files of the electron density. (Default: False)
956
+ output_wavefunction (bool): Whether to write a wavefunction (*.wfn) file of the electron density
957
+ (Default: False)
943
958
vdw_mode ('atomic' | 'sequential'): Method of specifying custom van der Waals radii. Applies
944
959
only if you are using overwrite_inputs to add a $van_der_waals section to the input.
945
960
In 'atomic' mode (default), dict keys represent the atomic number associated with each
@@ -1053,6 +1068,7 @@ def __init__(
1053
1068
max_scf_cycles = self .max_scf_cycles ,
1054
1069
geom_opt_max_cycles = self .geom_opt_max_cycles ,
1055
1070
plot_cubes = plot_cubes ,
1071
+ output_wavefunction = output_wavefunction ,
1056
1072
nbo_params = nbo_params ,
1057
1073
geom_opt = geom_opt ,
1058
1074
cdft_constraints = cdft_constraints ,
@@ -1077,6 +1093,7 @@ def __init__(
1077
1093
custom_smd : str | None = None ,
1078
1094
max_scf_cycles : int = 100 ,
1079
1095
plot_cubes : bool = False ,
1096
+ output_wavefunction : bool = False ,
1080
1097
nbo_params : dict | None = None ,
1081
1098
opt_variables : dict [str , list ] | None = None ,
1082
1099
geom_opt_max_cycles : int = 200 ,
@@ -1146,6 +1163,8 @@ def __init__(
1146
1163
explicitly requested by passing in a dictionary (empty or otherwise) for this input parameter.
1147
1164
(Default: False)
1148
1165
plot_cubes (bool): Whether to write CUBE files of the electron density. (Default: False)
1166
+ output_wavefunction (bool): Whether to write a wavefunction (*.wfn) file of the electron density
1167
+ (Default: False)
1149
1168
overwrite_inputs (dict): Dictionary of QChem input sections to add or overwrite variables.
1150
1169
The currently available sections (keys) are rem, pcm,
1151
1170
solvent, smx, opt, scan, van_der_waals, and plots. The value of each key is a
@@ -1187,6 +1206,7 @@ def __init__(
1187
1206
max_scf_cycles = self .max_scf_cycles ,
1188
1207
geom_opt_max_cycles = self .geom_opt_max_cycles ,
1189
1208
plot_cubes = plot_cubes ,
1209
+ output_wavefunction = output_wavefunction ,
1190
1210
nbo_params = nbo_params ,
1191
1211
geom_opt = geom_opt ,
1192
1212
overwrite_inputs = overwrite_inputs ,
@@ -1211,6 +1231,7 @@ def __init__(
1211
1231
custom_smd : str | None = None ,
1212
1232
max_scf_cycles : int = 100 ,
1213
1233
plot_cubes : bool = False ,
1234
+ output_wavefunction : bool = False ,
1214
1235
nbo_params : dict | None = None ,
1215
1236
vdw_mode : Literal ["atomic" , "sequential" ] = "atomic" ,
1216
1237
cdft_constraints : list [list [dict ]] | None = None ,
@@ -1271,6 +1292,8 @@ def __init__(
1271
1292
Refer to the QChem manual for further details.
1272
1293
max_scf_cycles (int): Maximum number of SCF iterations. (Default: 100)
1273
1294
plot_cubes (bool): Whether to write CUBE files of the electron density. (Default: False)
1295
+ output_wavefunction (bool): Whether to write a wavefunction (*.wfn) file of the electron density
1296
+ (Default: False)
1274
1297
vdw_mode ('atomic' | 'sequential'): Method of specifying custom van der Waals radii. Applies
1275
1298
only if you are using overwrite_inputs to add a $van_der_waals section to the input.
1276
1299
In 'atomic' mode (default), dict keys represent the atomic number associated with each
@@ -1376,6 +1399,7 @@ def __init__(
1376
1399
qchem_version = qchem_version ,
1377
1400
max_scf_cycles = self .max_scf_cycles ,
1378
1401
plot_cubes = plot_cubes ,
1402
+ output_wavefunction = output_wavefunction ,
1379
1403
nbo_params = nbo_params ,
1380
1404
vdw_mode = vdw_mode ,
1381
1405
cdft_constraints = cdft_constraints ,
@@ -1400,6 +1424,7 @@ def __init__(
1400
1424
custom_smd : str | None = None ,
1401
1425
max_scf_cycles : int = 100 ,
1402
1426
plot_cubes : bool = False ,
1427
+ output_wavefunction : bool = False ,
1403
1428
nbo_params : dict | None = None ,
1404
1429
vdw_mode : Literal ["atomic" , "sequential" ] = "atomic" ,
1405
1430
cdft_constraints : list [list [dict ]] | None = None ,
@@ -1460,6 +1485,8 @@ def __init__(
1460
1485
Refer to the QChem manual for further details.
1461
1486
max_scf_cycles (int): Maximum number of SCF iterations. (Default: 100)
1462
1487
plot_cubes (bool): Whether to write CUBE files of the electron density. (Default: False)
1488
+ output_wavefunction (bool): Whether to write a wavefunction (*.wfn) file of the electron density
1489
+ (Default: False)
1463
1490
vdw_mode ('atomic' | 'sequential'): Method of specifying custom van der Waals radii. Applies
1464
1491
only if you are using overwrite_inputs to add a $van_der_waals section to the input.
1465
1492
In 'atomic' mode (default), dict keys represent the atomic number associated with each
@@ -1565,6 +1592,7 @@ def __init__(
1565
1592
qchem_version = qchem_version ,
1566
1593
max_scf_cycles = self .max_scf_cycles ,
1567
1594
plot_cubes = plot_cubes ,
1595
+ output_wavefunction = output_wavefunction ,
1568
1596
nbo_params = nbo_params ,
1569
1597
vdw_mode = vdw_mode ,
1570
1598
cdft_constraints = cdft_constraints ,
@@ -1597,6 +1625,7 @@ def __init__(
1597
1625
custom_smd : str | None = None ,
1598
1626
max_scf_cycles : int = 100 ,
1599
1627
plot_cubes : bool = False ,
1628
+ output_wavefunction : bool = False ,
1600
1629
nbo_params : dict | None = None ,
1601
1630
opt_variables : dict [str , list ] | None = None ,
1602
1631
scan_variables : dict [str , list ] | None = None ,
@@ -1670,6 +1699,8 @@ def __init__(
1670
1699
Refer to the QChem manual for further details.
1671
1700
max_scf_cycles (int): Maximum number of SCF iterations. (Default: 100)
1672
1701
plot_cubes (bool): Whether to write CUBE files of the electron density. (Default: False)
1702
+ output_wavefunction (bool): Whether to write a wavefunction (*.wfn) file of the electron density
1703
+ (Default: False)
1673
1704
overwrite_inputs (dict): Dictionary of QChem input sections to add or overwrite variables.
1674
1705
The currently available sections (keys) are rem, pcm,
1675
1706
solvent, smx, opt, scan, van_der_waals, and plots. The value of each key is a
@@ -1714,6 +1745,7 @@ def __init__(
1714
1745
qchem_version = qchem_version ,
1715
1746
max_scf_cycles = self .max_scf_cycles ,
1716
1747
plot_cubes = plot_cubes ,
1748
+ output_wavefunction = output_wavefunction ,
1717
1749
nbo_params = nbo_params ,
1718
1750
overwrite_inputs = overwrite_inputs ,
1719
1751
vdw_mode = vdw_mode ,
0 commit comments