sci-form-wasm 1.0.0 → 2.1.0

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.
@@ -166,6 +166,29 @@ class LiveSimulation {
166
166
  if (Symbol.dispose) LiveSimulation.prototype[Symbol.dispose] = LiveSimulation.prototype.free;
167
167
  exports.LiveSimulation = LiveSimulation;
168
168
 
169
+ /**
170
+ * List every NMR-active isotope registered for an element.
171
+ * @param {number} element
172
+ * @returns {string}
173
+ */
174
+ function active_nmr_isotopes(element) {
175
+ let deferred1_0;
176
+ let deferred1_1;
177
+ try {
178
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
179
+ wasm.active_nmr_isotopes(retptr, element);
180
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
181
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
182
+ deferred1_0 = r0;
183
+ deferred1_1 = r1;
184
+ return getStringFromWasm0(r0, r1);
185
+ } finally {
186
+ wasm.__wbindgen_add_to_stack_pointer(16);
187
+ wasm.__wbindgen_export(deferred1_0, deferred1_1, 1);
188
+ }
189
+ }
190
+ exports.active_nmr_isotopes = active_nmr_isotopes;
191
+
169
192
  /**
170
193
  * List all 230 space groups as `[number, symbol]` pairs.
171
194
  * @returns {string}
@@ -645,7 +668,7 @@ exports.alpha_gsm_interpolate = alpha_gsm_interpolate;
645
668
  *
646
669
  * Returns JSON: `{ "alpha_modules": ["dft", "reaxff", …],
647
670
  * "stability": "alpha — experimental, …",
648
- * "version": "1.0.0" }`
671
+ * "version": "2.0.0" }`
649
672
  * @returns {string}
650
673
  */
651
674
  function alpha_modules_info() {
@@ -2374,6 +2397,37 @@ function compute_aevs_tm(elements_json, coords_flat_json) {
2374
2397
  }
2375
2398
  exports.compute_aevs_tm = compute_aevs_tm;
2376
2399
 
2400
+ /**
2401
+ * Run the all-nuclide NMR driver from a JSON GiaoNmrConfig.
2402
+ * @param {string} elements
2403
+ * @param {string} coords_flat
2404
+ * @param {string} config_json
2405
+ * @returns {string}
2406
+ */
2407
+ function compute_all_nmr(elements, coords_flat, config_json) {
2408
+ let deferred4_0;
2409
+ let deferred4_1;
2410
+ try {
2411
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2412
+ const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
2413
+ const len0 = WASM_VECTOR_LEN;
2414
+ const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
2415
+ const len1 = WASM_VECTOR_LEN;
2416
+ const ptr2 = passStringToWasm0(config_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
2417
+ const len2 = WASM_VECTOR_LEN;
2418
+ wasm.compute_all_nmr(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
2419
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
2420
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
2421
+ deferred4_0 = r0;
2422
+ deferred4_1 = r1;
2423
+ return getStringFromWasm0(r0, r1);
2424
+ } finally {
2425
+ wasm.__wbindgen_add_to_stack_pointer(16);
2426
+ wasm.__wbindgen_export(deferred4_0, deferred4_1, 1);
2427
+ }
2428
+ }
2429
+ exports.compute_all_nmr = compute_all_nmr;
2430
+
2377
2431
  /**
2378
2432
  * Compute ANI neural-network potential energy.
2379
2433
  * @param {string} elements_json
@@ -3113,6 +3167,37 @@ function compute_ensemble_j_couplings(smiles, conformer_coords_json, energies_kc
3113
3167
  }
3114
3168
  exports.compute_ensemble_j_couplings = compute_ensemble_j_couplings;
3115
3169
 
3170
+ /**
3171
+ * Isotropic EPR hyperfine coupling. `nucleus = 0` evaluates all known nuclei.
3172
+ * @param {string} elements
3173
+ * @param {string} coords_flat
3174
+ * @param {number} nucleus
3175
+ * @param {number} charge
3176
+ * @param {number} multiplicity
3177
+ * @returns {string}
3178
+ */
3179
+ function compute_epr_hyperfine(elements, coords_flat, nucleus, charge, multiplicity) {
3180
+ let deferred3_0;
3181
+ let deferred3_1;
3182
+ try {
3183
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3184
+ const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
3185
+ const len0 = WASM_VECTOR_LEN;
3186
+ const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
3187
+ const len1 = WASM_VECTOR_LEN;
3188
+ wasm.compute_epr_hyperfine(retptr, ptr0, len0, ptr1, len1, nucleus, charge, multiplicity);
3189
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3190
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3191
+ deferred3_0 = r0;
3192
+ deferred3_1 = r1;
3193
+ return getStringFromWasm0(r0, r1);
3194
+ } finally {
3195
+ wasm.__wbindgen_add_to_stack_pointer(16);
3196
+ wasm.__wbindgen_export(deferred3_0, deferred3_1, 1);
3197
+ }
3198
+ }
3199
+ exports.compute_epr_hyperfine = compute_epr_hyperfine;
3200
+
3116
3201
  /**
3117
3202
  * Compute the full electrostatic potential grid as JSON.
3118
3203
  * @param {string} elements
@@ -3389,6 +3474,37 @@ function compute_gb_solvation(elements, coords_flat, charges, solvent_dielectric
3389
3474
  }
3390
3475
  exports.compute_gb_solvation = compute_gb_solvation;
3391
3476
 
3477
+ /**
3478
+ * GCMC adsorption isotherm from JSON framework, guest and config payloads.
3479
+ * @param {string} framework_json
3480
+ * @param {string} guest_json
3481
+ * @param {string} config_json
3482
+ * @returns {string}
3483
+ */
3484
+ function compute_gcmc_isotherm(framework_json, guest_json, config_json) {
3485
+ let deferred4_0;
3486
+ let deferred4_1;
3487
+ try {
3488
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3489
+ const ptr0 = passStringToWasm0(framework_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
3490
+ const len0 = WASM_VECTOR_LEN;
3491
+ const ptr1 = passStringToWasm0(guest_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
3492
+ const len1 = WASM_VECTOR_LEN;
3493
+ const ptr2 = passStringToWasm0(config_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
3494
+ const len2 = WASM_VECTOR_LEN;
3495
+ wasm.compute_gcmc_isotherm(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
3496
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3497
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3498
+ deferred4_0 = r0;
3499
+ deferred4_1 = r1;
3500
+ return getStringFromWasm0(r0, r1);
3501
+ } finally {
3502
+ wasm.__wbindgen_add_to_stack_pointer(16);
3503
+ wasm.__wbindgen_export(deferred4_0, deferred4_1, 1);
3504
+ }
3505
+ }
3506
+ exports.compute_gcmc_isotherm = compute_gcmc_isotherm;
3507
+
3392
3508
  /**
3393
3509
  * Compute Gouy-Chapman-Stern profile (compact + diffuse).
3394
3510
  *
@@ -4239,6 +4355,34 @@ function compute_molecular_descriptors(smiles) {
4239
4355
  }
4240
4356
  exports.compute_molecular_descriptors = compute_molecular_descriptors;
4241
4357
 
4358
+ /**
4359
+ * Conventional closed-shell MP2 correlation energy.
4360
+ * @param {string} elements
4361
+ * @param {string} coords_flat
4362
+ * @returns {string}
4363
+ */
4364
+ function compute_mp2_energy(elements, coords_flat) {
4365
+ let deferred3_0;
4366
+ let deferred3_1;
4367
+ try {
4368
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4369
+ const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4370
+ const len0 = WASM_VECTOR_LEN;
4371
+ const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4372
+ const len1 = WASM_VECTOR_LEN;
4373
+ wasm.compute_mp2_energy(retptr, ptr0, len0, ptr1, len1);
4374
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
4375
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
4376
+ deferred3_0 = r0;
4377
+ deferred3_1 = r1;
4378
+ return getStringFromWasm0(r0, r1);
4379
+ } finally {
4380
+ wasm.__wbindgen_add_to_stack_pointer(16);
4381
+ wasm.__wbindgen_export(deferred3_0, deferred3_1, 1);
4382
+ }
4383
+ }
4384
+ exports.compute_mp2_energy = compute_mp2_energy;
4385
+
4242
4386
  /**
4243
4387
  * Build a simplified NEB path with a configurable energy backend.
4244
4388
  *
@@ -4423,6 +4567,38 @@ function compute_orbital_mesh(elements_json, coords_flat_json, method, mo_index,
4423
4567
  }
4424
4568
  exports.compute_orbital_mesh = compute_orbital_mesh;
4425
4569
 
4570
+ /**
4571
+ * Restricted closed-shell PBE0 single point. Returns JSON `DftResult`.
4572
+ *
4573
+ * Same as `alpha_compute_dft(elements, coords, "pbe0")` with an explicit
4574
+ * iteration cap; open-shell systems return an error.
4575
+ * @param {string} elements
4576
+ * @param {string} coords_flat
4577
+ * @param {number} max_iterations
4578
+ * @returns {string}
4579
+ */
4580
+ function compute_pbe0_energy(elements, coords_flat, max_iterations) {
4581
+ let deferred3_0;
4582
+ let deferred3_1;
4583
+ try {
4584
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4585
+ const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4586
+ const len0 = WASM_VECTOR_LEN;
4587
+ const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4588
+ const len1 = WASM_VECTOR_LEN;
4589
+ wasm.compute_pbe0_energy(retptr, ptr0, len0, ptr1, len1, max_iterations);
4590
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
4591
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
4592
+ deferred3_0 = r0;
4593
+ deferred3_1 = r1;
4594
+ return getStringFromWasm0(r0, r1);
4595
+ } finally {
4596
+ wasm.__wbindgen_add_to_stack_pointer(16);
4597
+ wasm.__wbindgen_export(deferred3_0, deferred3_1, 1);
4598
+ }
4599
+ }
4600
+ exports.compute_pbe0_energy = compute_pbe0_energy;
4601
+
4426
4602
  /**
4427
4603
  * Alias of [`compute_periodic_dos`], the name of the Rust root function.
4428
4604
  *
@@ -4530,6 +4706,75 @@ function compute_phase_portrait_chart(network_json, n_steps) {
4530
4706
  }
4531
4707
  exports.compute_phase_portrait_chart = compute_phase_portrait_chart;
4532
4708
 
4709
+ /**
4710
+ * Absolute pKa from an explicit acid/conjugate-base pair.
4711
+ * @param {string} acid_smiles
4712
+ * @param {string} base_smiles
4713
+ * @param {string} method_name
4714
+ * @returns {string}
4715
+ */
4716
+ function compute_pka(acid_smiles, base_smiles, method_name) {
4717
+ let deferred4_0;
4718
+ let deferred4_1;
4719
+ try {
4720
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4721
+ const ptr0 = passStringToWasm0(acid_smiles, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4722
+ const len0 = WASM_VECTOR_LEN;
4723
+ const ptr1 = passStringToWasm0(base_smiles, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4724
+ const len1 = WASM_VECTOR_LEN;
4725
+ const ptr2 = passStringToWasm0(method_name, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4726
+ const len2 = WASM_VECTOR_LEN;
4727
+ wasm.compute_pka(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
4728
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
4729
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
4730
+ deferred4_0 = r0;
4731
+ deferred4_1 = r1;
4732
+ return getStringFromWasm0(r0, r1);
4733
+ } finally {
4734
+ wasm.__wbindgen_add_to_stack_pointer(16);
4735
+ wasm.__wbindgen_export(deferred4_0, deferred4_1, 1);
4736
+ }
4737
+ }
4738
+ exports.compute_pka = compute_pka;
4739
+
4740
+ /**
4741
+ * Relative pKa against a reference acid with a known experimental value.
4742
+ * @param {string} acid_smiles
4743
+ * @param {string} base_smiles
4744
+ * @param {string} reference_acid
4745
+ * @param {string} reference_base
4746
+ * @param {number} reference_pka
4747
+ * @param {string} method_name
4748
+ * @returns {string}
4749
+ */
4750
+ function compute_pka_relative(acid_smiles, base_smiles, reference_acid, reference_base, reference_pka, method_name) {
4751
+ let deferred6_0;
4752
+ let deferred6_1;
4753
+ try {
4754
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4755
+ const ptr0 = passStringToWasm0(acid_smiles, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4756
+ const len0 = WASM_VECTOR_LEN;
4757
+ const ptr1 = passStringToWasm0(base_smiles, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4758
+ const len1 = WASM_VECTOR_LEN;
4759
+ const ptr2 = passStringToWasm0(reference_acid, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4760
+ const len2 = WASM_VECTOR_LEN;
4761
+ const ptr3 = passStringToWasm0(reference_base, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4762
+ const len3 = WASM_VECTOR_LEN;
4763
+ const ptr4 = passStringToWasm0(method_name, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4764
+ const len4 = WASM_VECTOR_LEN;
4765
+ wasm.compute_pka_relative(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, reference_pka, ptr4, len4);
4766
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
4767
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
4768
+ deferred6_0 = r0;
4769
+ deferred6_1 = r1;
4770
+ return getStringFromWasm0(r0, r1);
4771
+ } finally {
4772
+ wasm.__wbindgen_add_to_stack_pointer(16);
4773
+ wasm.__wbindgen_export(deferred6_0, deferred6_1, 1);
4774
+ }
4775
+ }
4776
+ exports.compute_pka_relative = compute_pka_relative;
4777
+
4533
4778
  /**
4534
4779
  * Run a PM3 semi-empirical calculation.
4535
4780
  * @param {string} elements_json
@@ -4614,6 +4859,66 @@ function compute_population(elements, coords_flat) {
4614
4859
  }
4615
4860
  exports.compute_population = compute_population;
4616
4861
 
4862
+ /**
4863
+ * Mechanical-embedding QM/MM energy from serialized system/config payloads.
4864
+ * @param {string} system_json
4865
+ * @param {string} config_json
4866
+ * @returns {string}
4867
+ */
4868
+ function compute_qmmm_energy(system_json, config_json) {
4869
+ let deferred3_0;
4870
+ let deferred3_1;
4871
+ try {
4872
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4873
+ const ptr0 = passStringToWasm0(system_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4874
+ const len0 = WASM_VECTOR_LEN;
4875
+ const ptr1 = passStringToWasm0(config_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4876
+ const len1 = WASM_VECTOR_LEN;
4877
+ wasm.compute_qmmm_energy(retptr, ptr0, len0, ptr1, len1);
4878
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
4879
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
4880
+ deferred3_0 = r0;
4881
+ deferred3_1 = r1;
4882
+ return getStringFromWasm0(r0, r1);
4883
+ } finally {
4884
+ wasm.__wbindgen_add_to_stack_pointer(16);
4885
+ wasm.__wbindgen_export(deferred3_0, deferred3_1, 1);
4886
+ }
4887
+ }
4888
+ exports.compute_qmmm_energy = compute_qmmm_energy;
4889
+
4890
+ /**
4891
+ * Raman activities from the response polarizability and UFF modes.
4892
+ * @param {string} smiles
4893
+ * @param {string} elements
4894
+ * @param {string} coords_flat
4895
+ * @param {number} step_angstrom
4896
+ * @returns {string}
4897
+ */
4898
+ function compute_raman_spectrum(smiles, elements, coords_flat, step_angstrom) {
4899
+ let deferred4_0;
4900
+ let deferred4_1;
4901
+ try {
4902
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4903
+ const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4904
+ const len0 = WASM_VECTOR_LEN;
4905
+ const ptr1 = passStringToWasm0(elements, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4906
+ const len1 = WASM_VECTOR_LEN;
4907
+ const ptr2 = passStringToWasm0(coords_flat, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4908
+ const len2 = WASM_VECTOR_LEN;
4909
+ wasm.compute_raman_spectrum(retptr, ptr0, len0, ptr1, len1, ptr2, len2, step_angstrom);
4910
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
4911
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
4912
+ deferred4_0 = r0;
4913
+ deferred4_1 = r1;
4914
+ return getStringFromWasm0(r0, r1);
4915
+ } finally {
4916
+ wasm.__wbindgen_add_to_stack_pointer(16);
4917
+ wasm.__wbindgen_export(deferred4_0, deferred4_1, 1);
4918
+ }
4919
+ }
4920
+ exports.compute_raman_spectrum = compute_raman_spectrum;
4921
+
4617
4922
  /**
4618
4923
  * Compute radial distribution function (RDF) descriptors.
4619
4924
  *
@@ -4760,30 +5065,101 @@ function compute_reactivity_ranking(elements, coords_flat) {
4760
5065
  exports.compute_reactivity_ranking = compute_reactivity_ranking;
4761
5066
 
4762
5067
  /**
4763
- * Compute RMSD between two coordinate sets after Kabsch alignment.
4764
- *
4765
- * Returns JSON `{"rmsd": 0.123456}` on success, or the canonical
4766
- * `{"error": "..."}` payload when the two coordinate sets cannot be
4767
- * compared (different lengths, or a length that is not a multiple of 3).
4768
- * A `NaN` RMSD is never emitted — it is not valid JSON (blocker C-C4).
4769
- * @param {string} coords
4770
- * @param {string} reference
5068
+ * Absolute redox potential from an explicit oxidised/reduced pair.
5069
+ * @param {string} oxidized_smiles
5070
+ * @param {string} reduced_smiles
5071
+ * @param {number} n_electrons
5072
+ * @param {string} method_name
4771
5073
  * @returns {string}
4772
5074
  */
4773
- function compute_rmsd(coords, reference) {
4774
- let deferred3_0;
4775
- let deferred3_1;
5075
+ function compute_redox_potential(oxidized_smiles, reduced_smiles, n_electrons, method_name) {
5076
+ let deferred4_0;
5077
+ let deferred4_1;
4776
5078
  try {
4777
5079
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4778
- const ptr0 = passStringToWasm0(coords, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
5080
+ const ptr0 = passStringToWasm0(oxidized_smiles, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4779
5081
  const len0 = WASM_VECTOR_LEN;
4780
- const ptr1 = passStringToWasm0(reference, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
5082
+ const ptr1 = passStringToWasm0(reduced_smiles, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
4781
5083
  const len1 = WASM_VECTOR_LEN;
4782
- wasm.compute_rmsd(retptr, ptr0, len0, ptr1, len1);
5084
+ const ptr2 = passStringToWasm0(method_name, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
5085
+ const len2 = WASM_VECTOR_LEN;
5086
+ wasm.compute_redox_potential(retptr, ptr0, len0, ptr1, len1, n_electrons, ptr2, len2);
4783
5087
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
4784
5088
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
4785
- deferred3_0 = r0;
4786
- deferred3_1 = r1;
5089
+ deferred4_0 = r0;
5090
+ deferred4_1 = r1;
5091
+ return getStringFromWasm0(r0, r1);
5092
+ } finally {
5093
+ wasm.__wbindgen_add_to_stack_pointer(16);
5094
+ wasm.__wbindgen_export(deferred4_0, deferred4_1, 1);
5095
+ }
5096
+ }
5097
+ exports.compute_redox_potential = compute_redox_potential;
5098
+
5099
+ /**
5100
+ * Relative redox potential against a reference couple with a known value.
5101
+ * @param {string} oxidized_smiles
5102
+ * @param {string} reduced_smiles
5103
+ * @param {number} n_electrons
5104
+ * @param {string} reference_oxidized
5105
+ * @param {string} reference_reduced
5106
+ * @param {number} reference_potential_v
5107
+ * @param {string} method_name
5108
+ * @returns {string}
5109
+ */
5110
+ function compute_redox_potential_relative(oxidized_smiles, reduced_smiles, n_electrons, reference_oxidized, reference_reduced, reference_potential_v, method_name) {
5111
+ let deferred6_0;
5112
+ let deferred6_1;
5113
+ try {
5114
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
5115
+ const ptr0 = passStringToWasm0(oxidized_smiles, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
5116
+ const len0 = WASM_VECTOR_LEN;
5117
+ const ptr1 = passStringToWasm0(reduced_smiles, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
5118
+ const len1 = WASM_VECTOR_LEN;
5119
+ const ptr2 = passStringToWasm0(reference_oxidized, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
5120
+ const len2 = WASM_VECTOR_LEN;
5121
+ const ptr3 = passStringToWasm0(reference_reduced, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
5122
+ const len3 = WASM_VECTOR_LEN;
5123
+ const ptr4 = passStringToWasm0(method_name, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
5124
+ const len4 = WASM_VECTOR_LEN;
5125
+ wasm.compute_redox_potential_relative(retptr, ptr0, len0, ptr1, len1, n_electrons, ptr2, len2, ptr3, len3, reference_potential_v, ptr4, len4);
5126
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
5127
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
5128
+ deferred6_0 = r0;
5129
+ deferred6_1 = r1;
5130
+ return getStringFromWasm0(r0, r1);
5131
+ } finally {
5132
+ wasm.__wbindgen_add_to_stack_pointer(16);
5133
+ wasm.__wbindgen_export(deferred6_0, deferred6_1, 1);
5134
+ }
5135
+ }
5136
+ exports.compute_redox_potential_relative = compute_redox_potential_relative;
5137
+
5138
+ /**
5139
+ * Compute RMSD between two coordinate sets after Kabsch alignment.
5140
+ *
5141
+ * Returns JSON `{"rmsd": 0.123456}` on success, or the canonical
5142
+ * `{"error": "..."}` payload when the two coordinate sets cannot be
5143
+ * compared (different lengths, or a length that is not a multiple of 3).
5144
+ * A `NaN` RMSD is never emitted — it is not valid JSON (blocker C-C4).
5145
+ * @param {string} coords
5146
+ * @param {string} reference
5147
+ * @returns {string}
5148
+ */
5149
+ function compute_rmsd(coords, reference) {
5150
+ let deferred3_0;
5151
+ let deferred3_1;
5152
+ try {
5153
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
5154
+ const ptr0 = passStringToWasm0(coords, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
5155
+ const len0 = WASM_VECTOR_LEN;
5156
+ const ptr1 = passStringToWasm0(reference, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
5157
+ const len1 = WASM_VECTOR_LEN;
5158
+ wasm.compute_rmsd(retptr, ptr0, len0, ptr1, len1);
5159
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
5160
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
5161
+ deferred3_0 = r0;
5162
+ deferred3_1 = r1;
4787
5163
  return getStringFromWasm0(r0, r1);
4788
5164
  } finally {
4789
5165
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -4819,6 +5195,38 @@ function compute_rmsd_matrix(conformers_json) {
4819
5195
  }
4820
5196
  exports.compute_rmsd_matrix = compute_rmsd_matrix;
4821
5197
 
5198
+ /**
5199
+ * ROA screening intensities from Raman activities and the VCD magnetic term.
5200
+ * @param {string} smiles
5201
+ * @param {string} elements
5202
+ * @param {string} coords_flat
5203
+ * @param {number} min_frequency_cm1
5204
+ * @returns {string}
5205
+ */
5206
+ function compute_roa_spectrum(smiles, elements, coords_flat, min_frequency_cm1) {
5207
+ let deferred4_0;
5208
+ let deferred4_1;
5209
+ try {
5210
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
5211
+ const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
5212
+ const len0 = WASM_VECTOR_LEN;
5213
+ const ptr1 = passStringToWasm0(elements, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
5214
+ const len1 = WASM_VECTOR_LEN;
5215
+ const ptr2 = passStringToWasm0(coords_flat, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
5216
+ const len2 = WASM_VECTOR_LEN;
5217
+ wasm.compute_roa_spectrum(retptr, ptr0, len0, ptr1, len1, ptr2, len2, min_frequency_cm1);
5218
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
5219
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
5220
+ deferred4_0 = r0;
5221
+ deferred4_1 = r1;
5222
+ return getStringFromWasm0(r0, r1);
5223
+ } finally {
5224
+ wasm.__wbindgen_add_to_stack_pointer(16);
5225
+ wasm.__wbindgen_export(deferred4_0, deferred4_1, 1);
5226
+ }
5227
+ }
5228
+ exports.compute_roa_spectrum = compute_roa_spectrum;
5229
+
4822
5230
  /**
4823
5231
  * Run a Restricted Open-shell Hartree-Fock (ROHF) calculation.
4824
5232
  *
@@ -5295,6 +5703,38 @@ function compute_uv_vis_spectrum(elements, coords_flat, sigma, e_min, e_max, n_p
5295
5703
  }
5296
5704
  exports.compute_uv_vis_spectrum = compute_uv_vis_spectrum;
5297
5705
 
5706
+ /**
5707
+ * VCD rotational strengths with the nuclear charge-current screening model.
5708
+ * @param {string} smiles
5709
+ * @param {string} elements
5710
+ * @param {string} coords_flat
5711
+ * @param {number} min_frequency_cm1
5712
+ * @returns {string}
5713
+ */
5714
+ function compute_vcd_spectrum(smiles, elements, coords_flat, min_frequency_cm1) {
5715
+ let deferred4_0;
5716
+ let deferred4_1;
5717
+ try {
5718
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
5719
+ const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
5720
+ const len0 = WASM_VECTOR_LEN;
5721
+ const ptr1 = passStringToWasm0(elements, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
5722
+ const len1 = WASM_VECTOR_LEN;
5723
+ const ptr2 = passStringToWasm0(coords_flat, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
5724
+ const len2 = WASM_VECTOR_LEN;
5725
+ wasm.compute_vcd_spectrum(retptr, ptr0, len0, ptr1, len1, ptr2, len2, min_frequency_cm1);
5726
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
5727
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
5728
+ deferred4_0 = r0;
5729
+ deferred4_1 = r1;
5730
+ return getStringFromWasm0(r0, r1);
5731
+ } finally {
5732
+ wasm.__wbindgen_add_to_stack_pointer(16);
5733
+ wasm.__wbindgen_export(deferred4_0, deferred4_1, 1);
5734
+ }
5735
+ }
5736
+ exports.compute_vcd_spectrum = compute_vcd_spectrum;
5737
+
5298
5738
  /**
5299
5739
  * Perform vibrational analysis via numerical Hessian.
5300
5740
  * @param {string} elements_json
@@ -5392,6 +5832,39 @@ function compute_whim(elements_json, coords_flat_json, weighting) {
5392
5832
  }
5393
5833
  exports.compute_whim = compute_whim;
5394
5834
 
5835
+ /**
5836
+ * Koopmans core-level XPS binding energies.
5837
+ * @param {string} elements
5838
+ * @param {string} coords_flat
5839
+ * @param {string} elements_filter_json
5840
+ * @param {number} charge
5841
+ * @param {number} multiplicity
5842
+ * @returns {string}
5843
+ */
5844
+ function compute_xps_binding_energies(elements, coords_flat, elements_filter_json, charge, multiplicity) {
5845
+ let deferred4_0;
5846
+ let deferred4_1;
5847
+ try {
5848
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
5849
+ const ptr0 = passStringToWasm0(elements, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
5850
+ const len0 = WASM_VECTOR_LEN;
5851
+ const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
5852
+ const len1 = WASM_VECTOR_LEN;
5853
+ const ptr2 = passStringToWasm0(elements_filter_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
5854
+ const len2 = WASM_VECTOR_LEN;
5855
+ wasm.compute_xps_binding_energies(retptr, ptr0, len0, ptr1, len1, ptr2, len2, charge, multiplicity);
5856
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
5857
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
5858
+ deferred4_0 = r0;
5859
+ deferred4_1 = r1;
5860
+ return getStringFromWasm0(r0, r1);
5861
+ } finally {
5862
+ wasm.__wbindgen_add_to_stack_pointer(16);
5863
+ wasm.__wbindgen_export(deferred4_0, deferred4_1, 1);
5864
+ }
5865
+ }
5866
+ exports.compute_xps_binding_energies = compute_xps_binding_energies;
5867
+
5395
5868
  /**
5396
5869
  * Run an xTB tight-binding calculation.
5397
5870
  * @param {string} elements_json
@@ -5448,6 +5921,35 @@ function compute_xtb_gradient(elements_json, coords_flat_json) {
5448
5921
  }
5449
5922
  exports.compute_xtb_gradient = compute_xtb_gradient;
5450
5923
 
5924
+ /**
5925
+ * Fit a split-conformal calibration radius.
5926
+ * @param {string} predictions_json
5927
+ * @param {string} targets_json
5928
+ * @param {number} coverage
5929
+ * @returns {string}
5930
+ */
5931
+ function conformal_calibrate(predictions_json, targets_json, coverage) {
5932
+ let deferred3_0;
5933
+ let deferred3_1;
5934
+ try {
5935
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
5936
+ const ptr0 = passStringToWasm0(predictions_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
5937
+ const len0 = WASM_VECTOR_LEN;
5938
+ const ptr1 = passStringToWasm0(targets_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
5939
+ const len1 = WASM_VECTOR_LEN;
5940
+ wasm.conformal_calibrate(retptr, ptr0, len0, ptr1, len1, coverage);
5941
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
5942
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
5943
+ deferred3_0 = r0;
5944
+ deferred3_1 = r1;
5945
+ return getStringFromWasm0(r0, r1);
5946
+ } finally {
5947
+ wasm.__wbindgen_add_to_stack_pointer(16);
5948
+ wasm.__wbindgen_export(deferred3_0, deferred3_1, 1);
5949
+ }
5950
+ }
5951
+ exports.conformal_calibrate = conformal_calibrate;
5952
+
5451
5953
  /**
5452
5954
  * Create a unit cell and return parameters + volume as JSON.
5453
5955
  * @param {number} a
@@ -5510,6 +6012,31 @@ function detect_hapticity(elements_json, coords_flat_json, bonds_json) {
5510
6012
  }
5511
6013
  exports.detect_hapticity = detect_hapticity;
5512
6014
 
6015
+ /**
6016
+ * Rule-based reaction-network discovery from a JSON TemplateNetworkConfig.
6017
+ * @param {string} config_json
6018
+ * @returns {string}
6019
+ */
6020
+ function discover_reaction_network(config_json) {
6021
+ let deferred2_0;
6022
+ let deferred2_1;
6023
+ try {
6024
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
6025
+ const ptr0 = passStringToWasm0(config_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
6026
+ const len0 = WASM_VECTOR_LEN;
6027
+ wasm.discover_reaction_network(retptr, ptr0, len0);
6028
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
6029
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
6030
+ deferred2_0 = r0;
6031
+ deferred2_1 = r1;
6032
+ return getStringFromWasm0(r0, r1);
6033
+ } finally {
6034
+ wasm.__wbindgen_add_to_stack_pointer(16);
6035
+ wasm.__wbindgen_export(deferred2_0, deferred2_1, 1);
6036
+ }
6037
+ }
6038
+ exports.discover_reaction_network = discover_reaction_network;
6039
+
5513
6040
  /**
5514
6041
  * Run an EHT calculation on a molecule.
5515
6042
  *
@@ -5955,6 +6482,37 @@ function embed_seed64(smiles, seed) {
5955
6482
  }
5956
6483
  exports.embed_seed64 = embed_seed64;
5957
6484
 
6485
+ /**
6486
+ * Estimate an alchemical free-energy difference from JSON samples.
6487
+ * @param {string} samples_json
6488
+ * @param {string} estimator
6489
+ * @param {string} config_json
6490
+ * @returns {string}
6491
+ */
6492
+ function estimate_free_energy(samples_json, estimator, config_json) {
6493
+ let deferred4_0;
6494
+ let deferred4_1;
6495
+ try {
6496
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
6497
+ const ptr0 = passStringToWasm0(samples_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
6498
+ const len0 = WASM_VECTOR_LEN;
6499
+ const ptr1 = passStringToWasm0(estimator, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
6500
+ const len1 = WASM_VECTOR_LEN;
6501
+ const ptr2 = passStringToWasm0(config_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
6502
+ const len2 = WASM_VECTOR_LEN;
6503
+ wasm.estimate_free_energy(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
6504
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
6505
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
6506
+ deferred4_0 = r0;
6507
+ deferred4_1 = r1;
6508
+ return getStringFromWasm0(r0, r1);
6509
+ } finally {
6510
+ wasm.__wbindgen_add_to_stack_pointer(16);
6511
+ wasm.__wbindgen_export(deferred4_0, deferred4_1, 1);
6512
+ }
6513
+ }
6514
+ exports.estimate_free_energy = estimate_free_energy;
6515
+
5958
6516
  /**
5959
6517
  * Estimate optimal number of Web Workers for a batch size.
5960
6518
  * @param {number} n_items
@@ -6659,6 +7217,214 @@ function predict_nmr_shifts_for_nucleus(smiles, nucleus) {
6659
7217
  }
6660
7218
  exports.predict_nmr_shifts_for_nucleus = predict_nmr_shifts_for_nucleus;
6661
7219
 
7220
+ /**
7221
+ * Refine a barrier with GSM from flat coordinate arrays.
7222
+ * @param {string} smiles
7223
+ * @param {string} reactant_coords
7224
+ * @param {string} product_coords
7225
+ * @param {string} method
7226
+ * @param {string} config_json
7227
+ * @returns {string}
7228
+ */
7229
+ function refine_barrier_with_gsm(smiles, reactant_coords, product_coords, method, config_json) {
7230
+ let deferred6_0;
7231
+ let deferred6_1;
7232
+ try {
7233
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
7234
+ const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
7235
+ const len0 = WASM_VECTOR_LEN;
7236
+ const ptr1 = passStringToWasm0(reactant_coords, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
7237
+ const len1 = WASM_VECTOR_LEN;
7238
+ const ptr2 = passStringToWasm0(product_coords, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
7239
+ const len2 = WASM_VECTOR_LEN;
7240
+ const ptr3 = passStringToWasm0(method, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
7241
+ const len3 = WASM_VECTOR_LEN;
7242
+ const ptr4 = passStringToWasm0(config_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
7243
+ const len4 = WASM_VECTOR_LEN;
7244
+ wasm.refine_barrier_with_gsm(retptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
7245
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
7246
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
7247
+ deferred6_0 = r0;
7248
+ deferred6_1 = r1;
7249
+ return getStringFromWasm0(r0, r1);
7250
+ } finally {
7251
+ wasm.__wbindgen_add_to_stack_pointer(16);
7252
+ wasm.__wbindgen_export(deferred6_0, deferred6_1, 1);
7253
+ }
7254
+ }
7255
+ exports.refine_barrier_with_gsm = refine_barrier_with_gsm;
7256
+
7257
+ /**
7258
+ * Reweight a biased 1D CV trace from JSON.
7259
+ * @param {string} trace_json
7260
+ * @param {string} config_json
7261
+ * @returns {string}
7262
+ */
7263
+ function reweight_free_energy(trace_json, config_json) {
7264
+ let deferred3_0;
7265
+ let deferred3_1;
7266
+ try {
7267
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
7268
+ const ptr0 = passStringToWasm0(trace_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
7269
+ const len0 = WASM_VECTOR_LEN;
7270
+ const ptr1 = passStringToWasm0(config_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
7271
+ const len1 = WASM_VECTOR_LEN;
7272
+ wasm.reweight_free_energy(retptr, ptr0, len0, ptr1, len1);
7273
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
7274
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
7275
+ deferred3_0 = r0;
7276
+ deferred3_1 = r1;
7277
+ return getStringFromWasm0(r0, r1);
7278
+ } finally {
7279
+ wasm.__wbindgen_add_to_stack_pointer(16);
7280
+ wasm.__wbindgen_export(deferred3_0, deferred3_1, 1);
7281
+ }
7282
+ }
7283
+ exports.reweight_free_energy = reweight_free_energy;
7284
+
7285
+ /**
7286
+ * Reweight a 2D OPES trace from JSON.
7287
+ * @param {string} trace_json
7288
+ * @param {string} config_json
7289
+ * @returns {string}
7290
+ */
7291
+ function reweight_free_energy_2d(trace_json, config_json) {
7292
+ let deferred3_0;
7293
+ let deferred3_1;
7294
+ try {
7295
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
7296
+ const ptr0 = passStringToWasm0(trace_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
7297
+ const len0 = WASM_VECTOR_LEN;
7298
+ const ptr1 = passStringToWasm0(config_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
7299
+ const len1 = WASM_VECTOR_LEN;
7300
+ wasm.reweight_free_energy_2d(retptr, ptr0, len0, ptr1, len1);
7301
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
7302
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
7303
+ deferred3_0 = r0;
7304
+ deferred3_1 = r1;
7305
+ return getStringFromWasm0(r0, r1);
7306
+ } finally {
7307
+ wasm.__wbindgen_add_to_stack_pointer(16);
7308
+ wasm.__wbindgen_export(deferred3_0, deferred3_1, 1);
7309
+ }
7310
+ }
7311
+ exports.reweight_free_energy_2d = reweight_free_energy_2d;
7312
+
7313
+ /**
7314
+ * Block-averaged reweighting of a correlated 1D CV trace from JSON.
7315
+ * @param {string} trace_json
7316
+ * @param {string} config_json
7317
+ * @returns {string}
7318
+ */
7319
+ function reweight_free_energy_correlated(trace_json, config_json) {
7320
+ let deferred3_0;
7321
+ let deferred3_1;
7322
+ try {
7323
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
7324
+ const ptr0 = passStringToWasm0(trace_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
7325
+ const len0 = WASM_VECTOR_LEN;
7326
+ const ptr1 = passStringToWasm0(config_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
7327
+ const len1 = WASM_VECTOR_LEN;
7328
+ wasm.reweight_free_energy_correlated(retptr, ptr0, len0, ptr1, len1);
7329
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
7330
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
7331
+ deferred3_0 = r0;
7332
+ deferred3_1 = r1;
7333
+ return getStringFromWasm0(r0, r1);
7334
+ } finally {
7335
+ wasm.__wbindgen_add_to_stack_pointer(16);
7336
+ wasm.__wbindgen_export(deferred3_0, deferred3_1, 1);
7337
+ }
7338
+ }
7339
+ exports.reweight_free_energy_correlated = reweight_free_energy_correlated;
7340
+
7341
+ /**
7342
+ * Gillespie kinetic Monte Carlo from a JSON KmcConfig.
7343
+ * @param {string} config_json
7344
+ * @returns {string}
7345
+ */
7346
+ function run_kinetic_monte_carlo(config_json) {
7347
+ let deferred2_0;
7348
+ let deferred2_1;
7349
+ try {
7350
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
7351
+ const ptr0 = passStringToWasm0(config_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
7352
+ const len0 = WASM_VECTOR_LEN;
7353
+ wasm.run_kinetic_monte_carlo(retptr, ptr0, len0);
7354
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
7355
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
7356
+ deferred2_0 = r0;
7357
+ deferred2_1 = r1;
7358
+ return getStringFromWasm0(r0, r1);
7359
+ } finally {
7360
+ wasm.__wbindgen_add_to_stack_pointer(16);
7361
+ wasm.__wbindgen_export(deferred2_0, deferred2_1, 1);
7362
+ }
7363
+ }
7364
+ exports.run_kinetic_monte_carlo = run_kinetic_monte_carlo;
7365
+
7366
+ /**
7367
+ * Well-tempered metadynamics on a UFF molecule from a JSON config.
7368
+ * @param {string} smiles
7369
+ * @param {string} coords_flat
7370
+ * @param {string} config_json
7371
+ * @returns {string}
7372
+ */
7373
+ function run_uff_metadynamics(smiles, coords_flat, config_json) {
7374
+ let deferred4_0;
7375
+ let deferred4_1;
7376
+ try {
7377
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
7378
+ const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
7379
+ const len0 = WASM_VECTOR_LEN;
7380
+ const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
7381
+ const len1 = WASM_VECTOR_LEN;
7382
+ const ptr2 = passStringToWasm0(config_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
7383
+ const len2 = WASM_VECTOR_LEN;
7384
+ wasm.run_uff_metadynamics(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
7385
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
7386
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
7387
+ deferred4_0 = r0;
7388
+ deferred4_1 = r1;
7389
+ return getStringFromWasm0(r0, r1);
7390
+ } finally {
7391
+ wasm.__wbindgen_add_to_stack_pointer(16);
7392
+ wasm.__wbindgen_export(deferred4_0, deferred4_1, 1);
7393
+ }
7394
+ }
7395
+ exports.run_uff_metadynamics = run_uff_metadynamics;
7396
+
7397
+ /**
7398
+ * OPES-style enhanced sampling on a UFF molecule from a JSON config.
7399
+ * @param {string} smiles
7400
+ * @param {string} coords_flat
7401
+ * @param {string} config_json
7402
+ * @returns {string}
7403
+ */
7404
+ function run_uff_opes(smiles, coords_flat, config_json) {
7405
+ let deferred4_0;
7406
+ let deferred4_1;
7407
+ try {
7408
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
7409
+ const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
7410
+ const len0 = WASM_VECTOR_LEN;
7411
+ const ptr1 = passStringToWasm0(coords_flat, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
7412
+ const len1 = WASM_VECTOR_LEN;
7413
+ const ptr2 = passStringToWasm0(config_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
7414
+ const len2 = WASM_VECTOR_LEN;
7415
+ wasm.run_uff_opes(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
7416
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
7417
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
7418
+ deferred4_0 = r0;
7419
+ deferred4_1 = r1;
7420
+ return getStringFromWasm0(r0, r1);
7421
+ } finally {
7422
+ wasm.__wbindgen_add_to_stack_pointer(16);
7423
+ wasm.__wbindgen_export(deferred4_0, deferred4_1, 1);
7424
+ }
7425
+ }
7426
+ exports.run_uff_opes = run_uff_opes;
7427
+
6662
7428
  /**
6663
7429
  * Search conformers by sampling, torsion refinement, and UFF ranking.
6664
7430
  *
@@ -6722,6 +7488,37 @@ function search_conformers_with_uff_seed64(smiles, n_samples, seed, rmsd_thresho
6722
7488
  }
6723
7489
  exports.search_conformers_with_uff_seed64 = search_conformers_with_uff_seed64;
6724
7490
 
7491
+ /**
7492
+ * Solve 3D-RISM from grid arrays and a JSON config.
7493
+ * @param {string} beta_u
7494
+ * @param {string} susceptibility
7495
+ * @param {string} config_json
7496
+ * @returns {string}
7497
+ */
7498
+ function solve_3d_rism(beta_u, susceptibility, config_json) {
7499
+ let deferred4_0;
7500
+ let deferred4_1;
7501
+ try {
7502
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
7503
+ const ptr0 = passStringToWasm0(beta_u, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
7504
+ const len0 = WASM_VECTOR_LEN;
7505
+ const ptr1 = passStringToWasm0(susceptibility, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
7506
+ const len1 = WASM_VECTOR_LEN;
7507
+ const ptr2 = passStringToWasm0(config_json, wasm.__wbindgen_export2, wasm.__wbindgen_export3);
7508
+ const len2 = WASM_VECTOR_LEN;
7509
+ wasm.solve_3d_rism(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
7510
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
7511
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
7512
+ deferred4_0 = r0;
7513
+ deferred4_1 = r1;
7514
+ return getStringFromWasm0(r0, r1);
7515
+ } finally {
7516
+ wasm.__wbindgen_add_to_stack_pointer(16);
7517
+ wasm.__wbindgen_export(deferred4_0, deferred4_1, 1);
7518
+ }
7519
+ }
7520
+ exports.solve_3d_rism = solve_3d_rism;
7521
+
6725
7522
  /**
6726
7523
  * Solve the extended Hückel problem for a geometry.
6727
7524
  *