sci-form-wasm 0.15.1 → 1.0.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.
- package/README.md +69 -15
- package/alpha/index.d.ts +349 -142
- package/alpha/index.js +26 -0
- package/beta/index.d.ts +69 -85
- package/cjs/alpha/index.d.ts +411 -0
- package/cjs/alpha/index.js +2 -0
- package/cjs/beta/index.d.ts +103 -0
- package/cjs/beta/index.js +2 -0
- package/cjs/package.json +3 -0
- package/cjs/sci_form_wasm.d.ts +1872 -0
- package/cjs/sci_form_wasm.js +7576 -0
- package/cjs/sci_form_wasm_bg.wasm +0 -0
- package/cjs/sci_form_wasm_bg.wasm.d.ts +256 -0
- package/package.json +27 -2
- package/sci_form_wasm.d.ts +1242 -150
- package/sci_form_wasm.js +5030 -1492
- package/sci_form_wasm_bg.wasm +0 -0
|
@@ -0,0 +1,1872 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Persistent live simulation state accessible from JavaScript.
|
|
6
|
+
*
|
|
7
|
+
* The browser creates one instance via `live_simulation_create`, then calls
|
|
8
|
+
* `live_simulation_step` and reads the flat coordinate buffer each
|
|
9
|
+
* animation frame.
|
|
10
|
+
*/
|
|
11
|
+
export class LiveSimulation {
|
|
12
|
+
free(): void;
|
|
13
|
+
[Symbol.dispose](): void;
|
|
14
|
+
/**
|
|
15
|
+
* Apply a harmonic steering force pulling atom `atom_index` toward `(tx, ty, tz)`.
|
|
16
|
+
*/
|
|
17
|
+
apply_steering_force(atom_index: number, tx: number, ty: number, tz: number, spring_k: number): void;
|
|
18
|
+
/**
|
|
19
|
+
* Apply a Berendsen thermostat coupling towards `target_temp` K.
|
|
20
|
+
*/
|
|
21
|
+
apply_thermostat(target_temp: number, tau_fs: number, dt_fs: number): void;
|
|
22
|
+
/**
|
|
23
|
+
* Clear all accumulated steering forces (call before next IMD frame).
|
|
24
|
+
*/
|
|
25
|
+
clear_steering(): void;
|
|
26
|
+
/**
|
|
27
|
+
* Return current kinetic energy.
|
|
28
|
+
*/
|
|
29
|
+
kinetic_energy(): number;
|
|
30
|
+
/**
|
|
31
|
+
* Create a new live simulation from SMILES, flat coordinates, and backend name.
|
|
32
|
+
*
|
|
33
|
+
* `backend`: `"uff"` | `"pm3"` | `"xtb"`.
|
|
34
|
+
*/
|
|
35
|
+
constructor(smiles: string, coords_flat: string, backend: string);
|
|
36
|
+
/**
|
|
37
|
+
* Get the number of atoms.
|
|
38
|
+
*/
|
|
39
|
+
num_atoms(): number;
|
|
40
|
+
/**
|
|
41
|
+
* Return current flat positions as a JSON array.
|
|
42
|
+
*/
|
|
43
|
+
positions_json(): string;
|
|
44
|
+
/**
|
|
45
|
+
* Sync internal buffers and return a pointer to the flat positions array.
|
|
46
|
+
*
|
|
47
|
+
* The caller (JS side) can construct a `Float64Array` view over WASM memory
|
|
48
|
+
* at this pointer, with length = `num_atoms * 3`.
|
|
49
|
+
*/
|
|
50
|
+
positions_ptr(): number;
|
|
51
|
+
/**
|
|
52
|
+
* Return current potential energy (from last force computation).
|
|
53
|
+
*/
|
|
54
|
+
potential_energy(): number;
|
|
55
|
+
/**
|
|
56
|
+
* Set velocities from a Maxwell-Boltzmann distribution at `temperature` K.
|
|
57
|
+
*/
|
|
58
|
+
set_temperature(temperature: number, seed: bigint): void;
|
|
59
|
+
/**
|
|
60
|
+
* Advance the simulation by `n_steps` with time step `dt_fs` (femtoseconds).
|
|
61
|
+
*/
|
|
62
|
+
step(n_steps: number, dt_fs: number): void;
|
|
63
|
+
/**
|
|
64
|
+
* Return simulation step count.
|
|
65
|
+
*/
|
|
66
|
+
step_count(): number;
|
|
67
|
+
/**
|
|
68
|
+
* Return current kinetic temperature in Kelvin.
|
|
69
|
+
*/
|
|
70
|
+
temperature(): number;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* List all 230 space groups as `[number, symbol]` pairs.
|
|
75
|
+
*/
|
|
76
|
+
export function all_space_groups(): string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Compute the Boys function F_n(x).
|
|
80
|
+
*
|
|
81
|
+
* Returns JSON: `{ "value": 0.9846 }`
|
|
82
|
+
*/
|
|
83
|
+
export function alpha_boys_function(n: number, x: number): string;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Compute Atomic Environment Vectors (AEVs) for each atom.
|
|
87
|
+
*
|
|
88
|
+
* Uses default symmetry function parameters unless `params_json` is provided.
|
|
89
|
+
*
|
|
90
|
+
* Returns JSON: `{ "n_atoms": 5, "aev_length": 384, "aevs": [[...], [...]] }`
|
|
91
|
+
*/
|
|
92
|
+
export function alpha_compute_aevs(elements_json: string, coords_flat_json: string, params_json: string): string;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Run a Kohn-Sham DFT single-point calculation.
|
|
96
|
+
*
|
|
97
|
+
* `method`: `"svwn"` (LDA) | `"pbe"` (GGA, default).
|
|
98
|
+
*
|
|
99
|
+
* Returns JSON `DftResult`:
|
|
100
|
+
* ```json
|
|
101
|
+
* { "energy": -1.12, "homo_energy": -0.5, "lumo_energy": 0.1, "gap": 0.6,
|
|
102
|
+
* "converged": true, "n_basis": 5, "scf_iterations": 12,
|
|
103
|
+
* "mulliken_charges": [...], "orbital_energies": [...],
|
|
104
|
+
* "nuclear_repulsion": 0.72, "xc_energy": -0.3 }
|
|
105
|
+
* ```
|
|
106
|
+
*/
|
|
107
|
+
export function alpha_compute_dft(elements_json: string, coords_flat_json: string, method: string): string;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Solve EEM charges for a molecule using the ReaxFF charge model.
|
|
111
|
+
*
|
|
112
|
+
* Returns JSON: `{ "charges": [...], "total_charge": 0.0 }`
|
|
113
|
+
*/
|
|
114
|
+
export function alpha_compute_eem_charges(elements_json: string, coords_flat_json: string): string;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Compute MLFF energy and forces using pre-configured element networks.
|
|
118
|
+
*
|
|
119
|
+
* `config_json` is a JSON object matching `MlffConfig`:
|
|
120
|
+
* ```json
|
|
121
|
+
* {
|
|
122
|
+
* "aev_params": { "radial_cutoff": 6.0, "angular_cutoff": 3.5, ... },
|
|
123
|
+
* "element_nets": {
|
|
124
|
+
* "1": { "layers": [[...weights...]], "biases": [[...]] },
|
|
125
|
+
* "6": { ... }
|
|
126
|
+
* }
|
|
127
|
+
* }
|
|
128
|
+
* ```
|
|
129
|
+
*
|
|
130
|
+
* Returns JSON: `{ "energy": -1.23, "atomic_energies": [...], "forces": [...] }`
|
|
131
|
+
*/
|
|
132
|
+
export function alpha_compute_mlff(elements_json: string, coords_flat_json: string, config_json: string): string;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Compute ReaxFF energy components for a molecule (no gradient).
|
|
136
|
+
*
|
|
137
|
+
* Returns JSON with keys `bonded`, `coulomb`, `van_der_waals`, `total`.
|
|
138
|
+
*/
|
|
139
|
+
export function alpha_compute_reaxff_energy(elements_json: string, coords_flat_json: string): string;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Compute ReaxFF energy and gradient for a molecule.
|
|
143
|
+
*
|
|
144
|
+
* Returns JSON:
|
|
145
|
+
* ```json
|
|
146
|
+
* { "energy_kcal_mol": 12.3,
|
|
147
|
+
* "gradient": [gx0, gy0, gz0, gx1, gy1, gz1, ...] }
|
|
148
|
+
* ```
|
|
149
|
+
*/
|
|
150
|
+
export function alpha_compute_reaxff_gradient(elements_json: string, coords_flat_json: string): string;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Compute a single (ss|ss) two-electron repulsion integral using Obara-Saika.
|
|
154
|
+
*
|
|
155
|
+
* `shell_a_json` / `shell_b_json` / `shell_c_json` / `shell_d_json` are JSON
|
|
156
|
+
* objects `{ "alpha": 1.0, "center": [x, y, z] }`.
|
|
157
|
+
*
|
|
158
|
+
* Returns JSON: `{ "eri": 4.37 }`
|
|
159
|
+
*/
|
|
160
|
+
export function alpha_eri_ssss(shell_a_json: string, shell_b_json: string, shell_c_json: string, shell_d_json: string): string;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Plan which GSM backends are available for a molecule.
|
|
164
|
+
*/
|
|
165
|
+
export function alpha_gsm_backend_plan(smiles: string): string;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Compare one or more GSM backends on the same geometry.
|
|
169
|
+
*
|
|
170
|
+
* `methods_json` can be `[]` to evaluate the full backend list.
|
|
171
|
+
*/
|
|
172
|
+
export function alpha_gsm_compare_backends(smiles: string, coords_flat_json: string, methods_json: string): string;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Grow the reaction string and find the transition state node between
|
|
176
|
+
* reactant and product geometries using UFF energy.
|
|
177
|
+
*
|
|
178
|
+
* Returns JSON `GsmResult`:
|
|
179
|
+
* ```json
|
|
180
|
+
* { "ts_coords": [...], "ts_energy": 12.3,
|
|
181
|
+
* "path_energies": [...], "n_nodes": 5, "converged": true }
|
|
182
|
+
* ```
|
|
183
|
+
*/
|
|
184
|
+
export function alpha_gsm_find_ts(smiles: string, reactant_coords_json: string, product_coords_json: string, config_json: string): string;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Grow the reaction string and find the transition state node between
|
|
188
|
+
* reactant and product geometries using the selected backend.
|
|
189
|
+
*/
|
|
190
|
+
export function alpha_gsm_find_ts_with_method(smiles: string, reactant_coords_json: string, product_coords_json: string, config_json: string, method: string): string;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Interpolate a node along the reaction path at parameter t ∈ [0, 1].
|
|
194
|
+
*
|
|
195
|
+
* `reactant_json` / `product_json` — flat coordinate arrays.
|
|
196
|
+
*
|
|
197
|
+
* Returns JSON: `{ "coords": [...] }`
|
|
198
|
+
*/
|
|
199
|
+
export function alpha_gsm_interpolate(reactant_json: string, product_json: string, t: number): string;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Return alpha module metadata.
|
|
203
|
+
*
|
|
204
|
+
* The module list is derived from the features the binary was compiled
|
|
205
|
+
* with, so it always describes what the package actually contains.
|
|
206
|
+
*
|
|
207
|
+
* Returns JSON: `{ "alpha_modules": ["dft", "reaxff", …],
|
|
208
|
+
* "stability": "alpha — experimental, …",
|
|
209
|
+
* "version": "1.0.0" }`
|
|
210
|
+
*/
|
|
211
|
+
export function alpha_modules_info(): string;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* EHT band structure along a k-path (`eht::band_structure::compute_band_structure`).
|
|
215
|
+
*/
|
|
216
|
+
export function alpha_periodic_band_structure_eht(elements_json: string, coords_flat_json: string, lattice_json: string, config_json: string, n_electrons: number): string;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Bloch phase for a fractional k-point and a lattice translation.
|
|
220
|
+
*
|
|
221
|
+
* @param k_fractional_json JSON `[kx, ky, kz]`
|
|
222
|
+
* @param translation_json JSON `[tx, ty, tz]`
|
|
223
|
+
* @returns JSON Bloch phase
|
|
224
|
+
*/
|
|
225
|
+
export function alpha_periodic_bloch_phase(k_fractional_json: string, translation_json: string): string;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Brillouin-zone weighted integral of a scalar field.
|
|
229
|
+
*
|
|
230
|
+
* @param values_json JSON array of scalars
|
|
231
|
+
* @param weights_json JSON array of k-point weights
|
|
232
|
+
* @returns the weighted integral
|
|
233
|
+
*/
|
|
234
|
+
export function alpha_periodic_bz_integrate_scalar(values_json: string, weights_json: string): number;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Brillouin-zone weighted integral of a vector field.
|
|
238
|
+
*
|
|
239
|
+
* @param vectors_json JSON array of `[x, y, z]`
|
|
240
|
+
* @param weights_json JSON array of k-point weights
|
|
241
|
+
* @returns JSON `[x, y, z]` integral
|
|
242
|
+
*/
|
|
243
|
+
export function alpha_periodic_bz_integrate_vector(vectors_json: string, weights_json: string): string;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Trace the Fermi-surface contour of real-space operator blocks in `kz = 0`.
|
|
247
|
+
*
|
|
248
|
+
* @param blocks_json JSON array of `{ "matrix": [[…]], "translation": [i, j, k] }`
|
|
249
|
+
* @param fermi_energy_ev Fermi energy in eV (`null`/`undefined` = median estimate)
|
|
250
|
+
* @param n_kx Number of kx samples (≥ 2)
|
|
251
|
+
* @param n_ky Number of ky samples (≥ 2)
|
|
252
|
+
* @returns JSON `FermiSurfaceContour`
|
|
253
|
+
*/
|
|
254
|
+
export function alpha_periodic_fermi_surface_from_bands(blocks_json: string, fermi_energy_ev: number | null | undefined, n_kx: number, n_ky: number): string;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Interpolate the default high-symmetry k-path (`Γ → X → M → Γ`).
|
|
258
|
+
*
|
|
259
|
+
* @param n_points_per_segment Intervals per high-symmetry segment (≥ 1)
|
|
260
|
+
* @returns JSON `KPathStandard`
|
|
261
|
+
*/
|
|
262
|
+
export function alpha_periodic_kpath_standard(n_points_per_segment: number): string;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Build a Monkhorst-Pack (or gamma-centred) k-mesh.
|
|
266
|
+
*
|
|
267
|
+
* @param config_json JSON `KMeshConfig` or `"{}"`
|
|
268
|
+
* @returns JSON k-mesh
|
|
269
|
+
*/
|
|
270
|
+
export function alpha_periodic_monkhorst_pack(config_json: string): string;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Validate the electron count implied by a periodic DOS result.
|
|
274
|
+
*
|
|
275
|
+
* @param dos_json JSON `PeriodicKpmDosResult`
|
|
276
|
+
* @param fermi_energy_ev Fermi energy in eV
|
|
277
|
+
* @param expected_electrons Expected number of electrons
|
|
278
|
+
* @returns the number of electrons found
|
|
279
|
+
*/
|
|
280
|
+
export function alpha_periodic_validate_electron_count(dos_json: string, fermi_energy_ev: number, expected_electrons: number): number;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Validate that the k-mesh weights sum to one.
|
|
284
|
+
*
|
|
285
|
+
* @param kmesh_json JSON `KMesh`
|
|
286
|
+
* @param tol Tolerance
|
|
287
|
+
* @returns `true` when the weights are normalised within `tol`
|
|
288
|
+
*/
|
|
289
|
+
export function alpha_periodic_validate_kmesh_weights(kmesh_json: string, tol: number): boolean;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Refine a single dihedral torsion to a target angle using CGA.
|
|
293
|
+
*
|
|
294
|
+
* `smiles` — SMILES string for bond connectivity.
|
|
295
|
+
* `torsion_indices_json` — 4 atom indices [i, j, k, l].
|
|
296
|
+
* `target_angle_rad` — target dihedral angle in radians.
|
|
297
|
+
*
|
|
298
|
+
* Returns JSON: `{ "coords": [...] }`
|
|
299
|
+
*/
|
|
300
|
+
export function alpha_refine_torsion_cga(elements_json: string, coords_flat_json: string, smiles: string, torsion_indices_json: string, target_angle_rad: number): string;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Build an Arrhenius chart from a JSON array of `ElementaryRateResult`.
|
|
304
|
+
*
|
|
305
|
+
* @param results_json JSON array of `ElementaryRateResult`
|
|
306
|
+
* @returns JSON chart payload
|
|
307
|
+
*/
|
|
308
|
+
export function alpha_render_arrhenius_chart(results_json: string): string;
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Build a band-structure chart from a `BandStructureAdapterResult` JSON payload.
|
|
312
|
+
*
|
|
313
|
+
* @param bs_json JSON `BandStructureAdapterResult`
|
|
314
|
+
* @returns JSON chart payload
|
|
315
|
+
*/
|
|
316
|
+
export function alpha_render_band_structure_chart(bs_json: string): string;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Build a capacitance-scan chart from a `CpmEdlScanResult` JSON payload.
|
|
320
|
+
*
|
|
321
|
+
* @param scan_json JSON `CpmEdlScanResult`
|
|
322
|
+
* @returns JSON chart payload
|
|
323
|
+
*/
|
|
324
|
+
export function alpha_render_capacitance_scan_chart(scan_json: string): string;
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Build an EDL profile chart from an `EdlProfileResult` JSON payload.
|
|
328
|
+
*
|
|
329
|
+
* @param profile_json JSON `EdlProfileResult`
|
|
330
|
+
* @returns JSON chart payload
|
|
331
|
+
*/
|
|
332
|
+
export function alpha_render_edl_profile_chart(profile_json: string): string;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Build GSM path trajectory frames from coords + energies JSON payloads.
|
|
336
|
+
*
|
|
337
|
+
* @param coords_json JSON array of flat coordinate frames
|
|
338
|
+
* @param energies_json JSON array of frame energies
|
|
339
|
+
* @returns JSON array of trajectory frames
|
|
340
|
+
*/
|
|
341
|
+
export function alpha_render_gsm_path_trajectory(coords_json: string, energies_json: string): string;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Build a microkinetic population chart from a `MicrokineticTrace` JSON payload.
|
|
345
|
+
*
|
|
346
|
+
* @param trace_json JSON `MicrokineticTrace`
|
|
347
|
+
* @returns JSON chart payload
|
|
348
|
+
*/
|
|
349
|
+
export function alpha_render_microkinetic_population_chart(trace_json: string): string;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Pack a chart payload into the columnar transport format.
|
|
353
|
+
*
|
|
354
|
+
* @param chart_json JSON `ChartPayload`
|
|
355
|
+
* @returns JSON packed batch
|
|
356
|
+
*/
|
|
357
|
+
export function alpha_render_pack_chart_payload(chart_json: string): string;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Build a periodic-DOS chart from a `PeriodicKpmDosResult` JSON payload.
|
|
361
|
+
*
|
|
362
|
+
* @param dos_json JSON `PeriodicKpmDosResult`
|
|
363
|
+
* @returns JSON chart payload
|
|
364
|
+
*/
|
|
365
|
+
export function alpha_render_periodic_dos_chart(dos_json: string): string;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Verify a chart payload survives a pack/unpack round trip.
|
|
369
|
+
*
|
|
370
|
+
* @param chart_json JSON `ChartPayload`
|
|
371
|
+
* @param tol Comparison tolerance
|
|
372
|
+
* @returns `true` when the round trip is lossless within `tol`
|
|
373
|
+
*/
|
|
374
|
+
export function alpha_render_verify_chart_round_trip(chart_json: string, tol: number): boolean;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Apply a CGA dihedral rotation to a sub-tree of atoms.
|
|
378
|
+
*
|
|
379
|
+
* `coords_flat_json` — flat [x0,y0,z0,...] for all atoms.
|
|
380
|
+
* `subtree_indices_json` — atom indices to rotate.
|
|
381
|
+
* `axis_a_json` / `axis_b_json` — the two atoms defining the rotation axis ([x,y,z]).
|
|
382
|
+
* `angle_rad` — rotation angle in radians.
|
|
383
|
+
*
|
|
384
|
+
* Returns JSON: `{ "coords": [x0,y0,z0,...] }`
|
|
385
|
+
*/
|
|
386
|
+
export function alpha_rotate_dihedral_cga(coords_flat_json: string, subtree_indices_json: string, axis_a_json: string, axis_b_json: string, angle_rad: number): string;
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Compute Schwarz pre-screening bound Q_ab = √〈ab|ab〉.
|
|
390
|
+
*
|
|
391
|
+
* Returns JSON: `{ "schwarz_bound": 0.8432 }`.
|
|
392
|
+
*/
|
|
393
|
+
export function alpha_schwarz_bound(alpha: number, center_a_json: string, beta: number, center_b_json: string): string;
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* Embed a molecule from pairwise distance constraints using Semidefinite Relaxation.
|
|
397
|
+
*
|
|
398
|
+
* `distance_pairs_json` — array of `[[i, j, d_ij], ...]` where d_ij is in Å.
|
|
399
|
+
* `n_atoms` — total number of atoms.
|
|
400
|
+
* `config_json` — optional SdrConfig JSON or `{}` for defaults.
|
|
401
|
+
*
|
|
402
|
+
* Returns JSON `SdrResult`:
|
|
403
|
+
* ```json
|
|
404
|
+
* { "coords": [...], "residual": 0.001, "converged": true, "iterations": 45 }
|
|
405
|
+
* ```
|
|
406
|
+
*/
|
|
407
|
+
export function alpha_sdr_embed(distance_pairs_json: string, n_atoms: number, config_json: string): string;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Analyze aromaticity and graph-level stereocenters from SMILES.
|
|
411
|
+
*/
|
|
412
|
+
export function analyze_graph_features(smiles: string): string;
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* Alias of [`analyze_gsm_mbh_htst_step`], the name of the Rust root function.
|
|
416
|
+
*
|
|
417
|
+
* The `_wasm` suffix existed only to avoid a name clash inside the flat
|
|
418
|
+
* WASM namespace; the canonical name is exported as well (blocker C-H1).
|
|
419
|
+
*/
|
|
420
|
+
export function analyze_gsm_mbh_htst_step(smiles: string, reactant_coords_json: string, product_coords_json: string, method: string, temperature_k: number, pressure_bar: number): string;
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Analyze one GSM + MBH + HTST coupled elementary step.
|
|
424
|
+
*/
|
|
425
|
+
export function analyze_gsm_mbh_htst_step_wasm(smiles: string, reactant_coords_json: string, product_coords_json: string, method: string, temperature_k: number, pressure_bar: number): string;
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* Analyze stereochemistry: detect R/S stereocenters and E/Z double bonds.
|
|
429
|
+
*
|
|
430
|
+
* `coords_flat` is a JSON array of flat coordinates (may be empty `"[]"` for topology-only).
|
|
431
|
+
* Returns JSON `StereoAnalysis`.
|
|
432
|
+
*/
|
|
433
|
+
export function analyze_stereo(smiles: string, coords_flat: string): string;
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* Apply a SMIRKS reaction transform to a molecule.
|
|
437
|
+
*
|
|
438
|
+
* Returns JSON `SmirksResult`:
|
|
439
|
+
* ```json
|
|
440
|
+
* {
|
|
441
|
+
* "products": ["[C](=O)[O-]"],
|
|
442
|
+
* "atom_mapping": {0: 0, 1: 1},
|
|
443
|
+
* "n_transforms": 1,
|
|
444
|
+
* "success": true,
|
|
445
|
+
* "messages": []
|
|
446
|
+
* }
|
|
447
|
+
* ```
|
|
448
|
+
*/
|
|
449
|
+
export function apply_smirks(smirks: string, smiles: string): string;
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* Assemble a framework crystal structure.
|
|
453
|
+
*
|
|
454
|
+
* `topology`: "pcu", "dia", or "sql".
|
|
455
|
+
* `metal`: atomic number of the metal center.
|
|
456
|
+
* `geometry`: "linear", "tetrahedral", "octahedral", "square_planar", "trigonal".
|
|
457
|
+
* `lattice_a`: cubic lattice parameter in Å.
|
|
458
|
+
* `supercell`: replication factor (1 = no replication).
|
|
459
|
+
*/
|
|
460
|
+
export function assemble_framework(topology: string, metal: number, geometry: string, lattice_a: number, supercell: number): string;
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* Alias of [`assemble_periodic_operators`], the name of the Rust root function.
|
|
464
|
+
*
|
|
465
|
+
* The `_wasm` suffix existed only to avoid a name clash inside the flat
|
|
466
|
+
* WASM namespace; the canonical name is exported as well (blocker C-H1).
|
|
467
|
+
*/
|
|
468
|
+
export function assemble_periodic_operators(hamiltonian_blocks_json: string, overlap_blocks_json: string, grid_json: string, centering: string): string;
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Assemble periodic Hamiltonians and overlaps for every k-point of a mesh.
|
|
472
|
+
*/
|
|
473
|
+
export function assemble_periodic_operators_wasm(hamiltonian_blocks_json: string, overlap_blocks_json: string, grid_json: string, centering: string): string;
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* Assign IR peaks to functional groups using standard group-frequency tables.
|
|
477
|
+
*
|
|
478
|
+
* `frequencies_json` / `intensities_json`: JSON arrays of numbers.
|
|
479
|
+
* `elements_json`: JSON array of atomic numbers.
|
|
480
|
+
* `mode_displacements_json`: JSON array of modes, each an array of `[x,y,z]`
|
|
481
|
+
* triples; pass `""` to skip the normal-mode refinement.
|
|
482
|
+
*/
|
|
483
|
+
export function assign_peaks(frequencies_json: string, intensities_json: string, elements_json: string, mode_displacements_json: string): string;
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Compute constant-potential charges using the CPM model.
|
|
487
|
+
*
|
|
488
|
+
* `potential` — target electrode potential in eV.
|
|
489
|
+
*
|
|
490
|
+
* Returns JSON: `{ "charges": [...], "total_charge": 0.5, "energy": -1.2 }`
|
|
491
|
+
*/
|
|
492
|
+
export function beta_compute_cpm_charges(elements_json: string, coords_flat_json: string, potential: number): string;
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* Compute EHT Density of States using the Kernel Polynomial Method (O(N)).
|
|
496
|
+
*
|
|
497
|
+
* Builds the EHT Hamiltonian internally from geometry, then runs KPM.
|
|
498
|
+
*
|
|
499
|
+
* `config_json` fields (all optional):
|
|
500
|
+
* - `order` (int, default 100): Chebyshev expansion order
|
|
501
|
+
* - `n_points` (int, default 200): Energy grid points
|
|
502
|
+
* - `e_min` (float): Override spectral minimum
|
|
503
|
+
* - `e_max` (float): Override spectral maximum
|
|
504
|
+
* - `temperature` (float, default 0): Electronic temperature in K
|
|
505
|
+
*
|
|
506
|
+
* Returns JSON `KpmDosResult`:
|
|
507
|
+
* ```json
|
|
508
|
+
* { "energies": [...], "total_dos": [...], "e_min": -30.0, "e_max": 5.0,
|
|
509
|
+
* "order": 100 }
|
|
510
|
+
* ```
|
|
511
|
+
*/
|
|
512
|
+
export function beta_compute_kpm_dos(elements_json: string, coords_flat_json: string, config_json: string): string;
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* Compute EHT Mulliken populations using KPM (O(N) stochastic trace).
|
|
516
|
+
*
|
|
517
|
+
* Returns JSON: `{ "mulliken_charges": [...], "orbital_populations": [...] }`
|
|
518
|
+
*/
|
|
519
|
+
export function beta_compute_kpm_mulliken(elements_json: string, coords_flat_json: string): string;
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* Compute vibrational frequencies using Mobile Block Hessian (reduced DOF).
|
|
523
|
+
*
|
|
524
|
+
* Uses UFF as the energy evaluator internally.
|
|
525
|
+
*
|
|
526
|
+
* Returns JSON `MbhResult`:
|
|
527
|
+
* ```json
|
|
528
|
+
* { "frequencies": [...], "n_blocks": 3, "n_flexible": 2,
|
|
529
|
+
* "n_dof_reduced": 12, "n_dof_full": 24, "speedup": 2.0 }
|
|
530
|
+
* ```
|
|
531
|
+
*/
|
|
532
|
+
export function beta_compute_mbh_frequencies(elements_json: string, coords_flat_json: string, smiles: string): string;
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Return beta module metadata.
|
|
536
|
+
*
|
|
537
|
+
* Returns JSON: `{ "beta_modules": ["kpm", "mbh", "randnla", "riemannian", "cpm"] }`
|
|
538
|
+
*/
|
|
539
|
+
export function beta_modules_info(): string;
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* Compute Riemannian distance between two PSD matrices.
|
|
543
|
+
*
|
|
544
|
+
* `matrix_a_json` / `matrix_b_json` — flat row-major arrays with `dim` dimension.
|
|
545
|
+
*
|
|
546
|
+
* Returns JSON: `{ "distance": 0.12 }`
|
|
547
|
+
*/
|
|
548
|
+
export function beta_psd_distance(matrix_a_json: string, matrix_b_json: string, dim: number): string;
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* Project a symmetric matrix onto the PSD (positive semidefinite) cone.
|
|
552
|
+
*
|
|
553
|
+
* `matrix_json` — flat row-major array with `dim` dimension.
|
|
554
|
+
*
|
|
555
|
+
* Returns JSON: `{ "matrix": [...flat psd projection...], "was_psd": false }`
|
|
556
|
+
*/
|
|
557
|
+
export function beta_psd_projection(matrix_json: string, dim: number): string;
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* Solve EHT with a randomized Nyström eigensolver instead of O(N³) exact diag.
|
|
561
|
+
*
|
|
562
|
+
* `config_json` fields (all optional):
|
|
563
|
+
* - `sketch_size` (int): Nyström rank k. Default: √N
|
|
564
|
+
* - `seed` (int, default 42)
|
|
565
|
+
* - `max_error` (float, default 0.001): Max relative residual before fallback
|
|
566
|
+
* - `fallback_enabled` (bool, default true)
|
|
567
|
+
*
|
|
568
|
+
* Returns JSON:
|
|
569
|
+
* ```json
|
|
570
|
+
* { "orbital_energies": [...], "homo_index": 4, "homo_energy": -0.5,
|
|
571
|
+
* "lumo_energy": 0.1, "gap": 0.6,
|
|
572
|
+
* "k": 12, "residual_error": 0.0003, "used_fallback": false }
|
|
573
|
+
* ```
|
|
574
|
+
*/
|
|
575
|
+
export function beta_solve_eht_randnla(elements_json: string, coords_flat_json: string, config_json: string): string;
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Alias of [`bloch_phase`], the name of the Rust root function.
|
|
579
|
+
*
|
|
580
|
+
* The `_wasm` suffix existed only to avoid a name clash inside the flat
|
|
581
|
+
* WASM namespace; the canonical name is exported as well (blocker C-H1).
|
|
582
|
+
*/
|
|
583
|
+
export function bloch_phase(k_x: number, k_y: number, k_z: number, t_x: number, t_y: number, t_z: number): string;
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* Compute the Bloch phase factor for a lattice translation.
|
|
587
|
+
*/
|
|
588
|
+
export function bloch_phase_wasm(k_x: number, k_y: number, k_z: number, t_x: number, t_y: number, t_z: number): string;
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* Alias of [`build_bloch_hamiltonian`], the name of the Rust root function.
|
|
592
|
+
*
|
|
593
|
+
* The `_wasm` suffix existed only to avoid a name clash inside the flat
|
|
594
|
+
* WASM namespace; the canonical name is exported as well (blocker C-H1).
|
|
595
|
+
*/
|
|
596
|
+
export function build_bloch_hamiltonian(blocks_json: string, k_x: number, k_y: number, k_z: number): string;
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Build the Bloch Hamiltonian `H(k)` from real-space operator blocks.
|
|
600
|
+
*/
|
|
601
|
+
export function build_bloch_hamiltonian_wasm(blocks_json: string, k_x: number, k_y: number, k_z: number): string;
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* Build a periodic molecular graph from fractional coordinates and a unit cell.
|
|
605
|
+
*
|
|
606
|
+
* `cell_json`: JSON array `[a, b, c, alpha, beta, gamma]` (Å, degrees).
|
|
607
|
+
* `bond_tolerance`: extra bonding tolerance in Å (0 = default 0.3).
|
|
608
|
+
*/
|
|
609
|
+
export function build_periodic_molecule(elements_json: string, frac_coords_json: string, cell_json: string, bond_tolerance: number): string;
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* Butina clustering on conformers (flat coordinate arrays in JSON).
|
|
613
|
+
*
|
|
614
|
+
* `conformers_json`: JSON array of arrays, e.g. `[[x0,y0,z0,...], [x0,y0,z0,...]]`.
|
|
615
|
+
* Returns JSON `ClusterResult`.
|
|
616
|
+
*/
|
|
617
|
+
export function butina_cluster(conformers_json: string, rmsd_cutoff: number): string;
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Alias of [`bz_integrate_scalar`], the name of the Rust root function.
|
|
621
|
+
*
|
|
622
|
+
* The `_wasm` suffix existed only to avoid a name clash inside the flat
|
|
623
|
+
* WASM namespace; the canonical name is exported as well (blocker C-H1).
|
|
624
|
+
*/
|
|
625
|
+
export function bz_integrate_scalar(values_json: string, weights_json: string): string;
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* Integrate a scalar observable over the Brillouin zone.
|
|
629
|
+
*/
|
|
630
|
+
export function bz_integrate_scalar_wasm(values_json: string, weights_json: string): string;
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* Alias of [`bz_integrate_vector`], the name of the Rust root function.
|
|
634
|
+
*
|
|
635
|
+
* The `_wasm` suffix existed only to avoid a name clash inside the flat
|
|
636
|
+
* WASM namespace; the canonical name is exported as well (blocker C-H1).
|
|
637
|
+
*/
|
|
638
|
+
export function bz_integrate_vector(vectors_json: string, weights_json: string): string;
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* Integrate a vector observable over the Brillouin zone.
|
|
642
|
+
*/
|
|
643
|
+
export function bz_integrate_vector_wasm(vectors_json: string, weights_json: string): string;
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* Alias of [`chart_from_json`], the name of the Rust root function.
|
|
647
|
+
*
|
|
648
|
+
* The `_wasm` suffix existed only to avoid a name clash inside the flat
|
|
649
|
+
* WASM namespace; the canonical name is exported as well (blocker C-H1).
|
|
650
|
+
*/
|
|
651
|
+
export function chart_from_json(json_str: string): string;
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* Deserialize a chart payload (wrapper or bare chart) to chart JSON.
|
|
655
|
+
*/
|
|
656
|
+
export function chart_from_json_wasm(json_str: string): string;
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* Alias of [`chart_to_json`], the name of the Rust root function.
|
|
660
|
+
*
|
|
661
|
+
* The `_wasm` suffix existed only to avoid a name clash inside the flat
|
|
662
|
+
* WASM namespace; the canonical name is exported as well (blocker C-H1).
|
|
663
|
+
*/
|
|
664
|
+
export function chart_to_json(chart_json: string): string;
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* Serialize a chart payload to the canonical wrapper JSON.
|
|
668
|
+
*/
|
|
669
|
+
export function chart_to_json_wasm(chart_json: string): string;
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* Compare available methods on the same system/geometry.
|
|
673
|
+
*/
|
|
674
|
+
export function compare_methods(smiles: string, elements: string, coords_flat: string, allow_experimental_eht: boolean): string;
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* Compute ANI-TM atomic environment vectors (24-element extended set).
|
|
678
|
+
*
|
|
679
|
+
* Uses the built-in transition-metal AEV parameter set.
|
|
680
|
+
*/
|
|
681
|
+
export function compute_aevs_tm(elements_json: string, coords_flat_json: string): string;
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* Compute ANI neural-network potential energy.
|
|
685
|
+
*/
|
|
686
|
+
export function compute_ani(elements_json: string, coords_flat_json: string): string;
|
|
687
|
+
|
|
688
|
+
/**
|
|
689
|
+
* Build an Arrhenius chart from temperature-rate pairs.
|
|
690
|
+
*
|
|
691
|
+
* The chart is the core Arrhenius projection `ln(k)` vs `1000/T`; the
|
|
692
|
+
* supplied forward rates are used verbatim.
|
|
693
|
+
*/
|
|
694
|
+
export function compute_arrhenius_chart(temperatures_json: string, rates_json: string): string;
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* Build a band-structure chart from a periodic EHT calculation.
|
|
698
|
+
*
|
|
699
|
+
* `elements_json` are atomic numbers, `coords_json` the flat Cartesian
|
|
700
|
+
* coordinates of the unit cell and `lattice_json` the nine lattice-vector
|
|
701
|
+
* components.
|
|
702
|
+
*/
|
|
703
|
+
export function compute_band_structure_chart(elements_json: string, coords_json: string, lattice_json: string, n_kpoints_per_segment: number): string;
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* Compute Wiberg-like and Mayer-like bond orders.
|
|
707
|
+
*/
|
|
708
|
+
export function compute_bond_orders(elements: string, coords_flat: string): string;
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* Build a capacitance scan chart (visualization payload).
|
|
712
|
+
*
|
|
713
|
+
* The interfacial charge is obtained by integrating the computed charge
|
|
714
|
+
* density of every EDL profile in the scan.
|
|
715
|
+
*
|
|
716
|
+
* Returns JSON ChartPayload with potential vs capacitance series.
|
|
717
|
+
*/
|
|
718
|
+
export function compute_capacitance_chart(v_min: number, v_max: number, n_points: number, ionic_strength_m: number, model: string): string;
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* Compute Gasteiger-Marsili partial charges from SMILES.
|
|
722
|
+
*/
|
|
723
|
+
export function compute_charges(smiles: string): string;
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* Compute Gasteiger-Marsili partial charges with configurable parameters.
|
|
727
|
+
*
|
|
728
|
+
* `max_iter`: number of electronegativity-equalization sweeps.
|
|
729
|
+
* `initial_damping`: first damping factor (halved every iteration).
|
|
730
|
+
* `convergence_threshold`: max charge-transfer convergence criterion.
|
|
731
|
+
*/
|
|
732
|
+
export function compute_charges_configured(smiles: string, max_iter: number, initial_damping: number, convergence_threshold: number): string;
|
|
733
|
+
|
|
734
|
+
/**
|
|
735
|
+
* Compute CISD excited states from an internal STO-3G RHF calculation.
|
|
736
|
+
*
|
|
737
|
+
* Runs the shared SCF engine and the validated two-electron integral engine
|
|
738
|
+
* internally, then feeds the canonical orbitals and ERIs to the CISD driver.
|
|
739
|
+
*/
|
|
740
|
+
export function compute_cisd(elements_json: string, coords_flat_json: string, n_states: number): string;
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* **ALPHA** — Run Kohn-Sham DFT calculation.
|
|
744
|
+
*
|
|
745
|
+
* `method`: `"svwn"` (LDA) or `"pbe"` (GGA).
|
|
746
|
+
* Returns JSON DftResult with energy, orbital energies, gap, Mulliken charges.
|
|
747
|
+
*/
|
|
748
|
+
export function compute_dft(elements_json: string, coords_flat_json: string, method: string): string;
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* Compute molecular dipole moment.
|
|
752
|
+
*/
|
|
753
|
+
export function compute_dipole(elements: string, coords_flat: string): string;
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* Compute DOS/PDOS from EHT orbital energies.
|
|
757
|
+
*/
|
|
758
|
+
export function compute_dos(elements: string, coords_flat: string, sigma: number, e_min: number, e_max: number, n_points: number): string;
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* Compute DOS (density of states) chart.
|
|
762
|
+
*/
|
|
763
|
+
export function compute_dos_chart(energies_json: string, dos_json: string): string;
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* Compute DOS from the orbital energies of a chosen electronic-structure method.
|
|
767
|
+
*
|
|
768
|
+
* `method`: `eht`, `pm3`, `xtb` (GFN2), `gfn1`, `gfn2` or `hf3c`.
|
|
769
|
+
*/
|
|
770
|
+
export function compute_dos_multimethod(elements: string, coords_flat: string, method: string, sigma: number, e_min: number, e_max: number, n_points: number): string;
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
* Compute ECFP fingerprint for a SMILES string.
|
|
774
|
+
*
|
|
775
|
+
* radius=2 → ECFP4. Returns JSON `ECFPFingerprint`.
|
|
776
|
+
*/
|
|
777
|
+
export function compute_ecfp(smiles: string, radius: number, n_bits: number): string;
|
|
778
|
+
|
|
779
|
+
/**
|
|
780
|
+
* Compute ECFP fingerprints for a batch of SMILES strings.
|
|
781
|
+
*
|
|
782
|
+
* `smiles_list_json`: JSON array of SMILES strings.
|
|
783
|
+
* Returns a JSON array of `ECFPFingerprint` objects, in input order.
|
|
784
|
+
*/
|
|
785
|
+
export function compute_ecfp_batch(smiles_list_json: string, radius: number, n_bits: number): string;
|
|
786
|
+
|
|
787
|
+
/**
|
|
788
|
+
* Scan EDL capacitance over a potential range.
|
|
789
|
+
*
|
|
790
|
+
* Returns JSON array of `[potential_v, capacitance_f_per_m2]` pairs.
|
|
791
|
+
*/
|
|
792
|
+
export function compute_edl_capacitance_scan(v_min: number, v_max: number, n_points: number, ionic_strength_m: number, model: string): string;
|
|
793
|
+
|
|
794
|
+
/**
|
|
795
|
+
* Build an EDL profile chart (visualization payload).
|
|
796
|
+
*
|
|
797
|
+
* Returns JSON ChartPayload with series data for rendering.
|
|
798
|
+
*/
|
|
799
|
+
export function compute_edl_chart(surface_potential_v: number, ionic_strength_m: number): string;
|
|
800
|
+
|
|
801
|
+
/**
|
|
802
|
+
* Compute an EDL profile.
|
|
803
|
+
*
|
|
804
|
+
* Returns JSON `{distance_axis_angstrom, electrostatic_potential_v, charge_density_c_per_m3,
|
|
805
|
+
* compact_layer_drop_v, diffuse_layer_drop_v, total_interfacial_drop_v,
|
|
806
|
+
* capacitance_total_f_per_m2, model_name, converged}`.
|
|
807
|
+
*/
|
|
808
|
+
export function compute_edl_profile(surface_potential_v: number, model: string, ionic_strength_m: number, temperature_k: number, n_points: number, extent_angstrom: number): string;
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* Compute EEQ geometry-dependent charges.
|
|
812
|
+
*
|
|
813
|
+
* Returns JSON `{charges, coordination_numbers, total_charge}`.
|
|
814
|
+
*/
|
|
815
|
+
export function compute_eeq_charges(elements: string, coords_flat: string, total_charge: number): string;
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* Compute EEQ electrostatic energy.
|
|
819
|
+
*
|
|
820
|
+
* Returns JSON `{electrostatic_energy, charges, coordination_numbers}`.
|
|
821
|
+
*/
|
|
822
|
+
export function compute_eeq_energy(elements: string, coords_flat: string, total_charge: number): string;
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* Compute EHT energy-surface gradients (eV/Å) by central finite differences.
|
|
826
|
+
*/
|
|
827
|
+
export function compute_eht_gradient(elements: string, coords_flat: string): string;
|
|
828
|
+
|
|
829
|
+
/**
|
|
830
|
+
* Run EHT or route to UFF fallback based on support/confidence.
|
|
831
|
+
*
|
|
832
|
+
* Canonical name matching the Rust root (`sci_form::compute_eht_or_uff_fallback`).
|
|
833
|
+
*/
|
|
834
|
+
export function compute_eht_or_uff_fallback(smiles: string, elements: string, coords_flat: string, allow_experimental_eht: boolean): string;
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* Estimate acidic/basic pKa sites from graph and charge heuristics.
|
|
838
|
+
*/
|
|
839
|
+
export function compute_empirical_pka(smiles: string): string;
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* Predict J-couplings averaged over a conformer ensemble (Boltzmann weighting).
|
|
843
|
+
*
|
|
844
|
+
* `conformer_coords_json`: JSON array of conformers, each a flat xyz array.
|
|
845
|
+
* `energies_kcal_json`: JSON array of conformer energies in kcal/mol.
|
|
846
|
+
*/
|
|
847
|
+
export function compute_ensemble_j_couplings(smiles: string, conformer_coords_json: string, energies_kcal_json: string, temperature_k: number): string;
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* Compute the full electrostatic potential grid as JSON.
|
|
851
|
+
*/
|
|
852
|
+
export function compute_esp(elements: string, coords_flat: string, spacing: number, padding: number): string;
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* Compute the ESP grid and return the full result (values, origin,
|
|
856
|
+
* spacing and dimensions).
|
|
857
|
+
*
|
|
858
|
+
* This is the canonical name of the Rust root function; `compute_esp` is
|
|
859
|
+
* the historical alias.
|
|
860
|
+
*/
|
|
861
|
+
export function compute_esp_grid(elements: string, coords_flat: string, spacing: number, padding: number): string;
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* Get ESP grid metadata (origin, spacing, dimensions) as JSON.
|
|
865
|
+
*/
|
|
866
|
+
export function compute_esp_grid_info(elements: string, coords_flat: string, spacing: number, padding: number): string;
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* Compute ESP grid values as Float64Array (typed-array transfer).
|
|
870
|
+
*/
|
|
871
|
+
export function compute_esp_grid_typed(elements: string, coords_flat: string, spacing: number, padding: number): Float64Array;
|
|
872
|
+
|
|
873
|
+
/**
|
|
874
|
+
* Build a Fermi-surface slice chart from real-space operator blocks.
|
|
875
|
+
*
|
|
876
|
+
* The band energies are evaluated on a regular `n_kx` × `n_ky` mesh in the
|
|
877
|
+
* `kz = 0` plane; the contour where the selected band crosses the Fermi
|
|
878
|
+
* energy is extracted by bisection.
|
|
879
|
+
*/
|
|
880
|
+
export function compute_fermi_surface_chart(blocks_json: string, fermi_energy_ev: number | null | undefined, n_kx: number, n_ky: number): string;
|
|
881
|
+
|
|
882
|
+
/**
|
|
883
|
+
* Fluorescence from the same sTDA singlets as absorption.
|
|
884
|
+
* `stokes_ev` is an extra red-shift; 0 keeps the vertical emission energy.
|
|
885
|
+
*/
|
|
886
|
+
export function compute_fluorescence(elements_json: string, coords_flat_json: string, sigma: number, e_min: number, e_max: number, n_points: number, stokes_ev: number, refractive_index: number, dark_threshold: number, broadening: string): string;
|
|
887
|
+
|
|
888
|
+
/**
|
|
889
|
+
* Compute atom-resolved HOMO/LUMO frontier descriptors.
|
|
890
|
+
*/
|
|
891
|
+
export function compute_frontier_descriptors(elements: string, coords_flat: string): string;
|
|
892
|
+
|
|
893
|
+
/**
|
|
894
|
+
* Compute Fukui-function workflows and condensed per-atom descriptors.
|
|
895
|
+
*/
|
|
896
|
+
export function compute_fukui_descriptors(elements: string, coords_flat: string): string;
|
|
897
|
+
|
|
898
|
+
/**
|
|
899
|
+
* Generalized Born solvation energy (electrostatic + non-polar).
|
|
900
|
+
*
|
|
901
|
+
* `charges` is a JSON array of partial charges.
|
|
902
|
+
* Returns JSON `GbSolvation`.
|
|
903
|
+
*/
|
|
904
|
+
export function compute_gb_solvation(elements: string, coords_flat: string, charges: string, solvent_dielectric: number, solute_dielectric: number, probe_radius: number): string;
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* Compute Gouy-Chapman-Stern profile (compact + diffuse).
|
|
908
|
+
*
|
|
909
|
+
* Returns JSON EDL profile result.
|
|
910
|
+
*/
|
|
911
|
+
export function compute_gcs_profile(surface_potential_v: number, ionic_strength_m: number, stern_thickness_a: number): string;
|
|
912
|
+
|
|
913
|
+
/**
|
|
914
|
+
* Compute GETAWAY 3D molecular descriptors.
|
|
915
|
+
*
|
|
916
|
+
* `bonds_json`: JSON array of `[i, j]` atom-index pairs; pass `""` to
|
|
917
|
+
* perceive the bonds from the geometry.
|
|
918
|
+
*/
|
|
919
|
+
export function compute_getaway(elements_json: string, coords_flat_json: string, bonds_json: string, max_lag: number): string;
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* Run a GFN1-xTB tight-binding calculation.
|
|
923
|
+
*/
|
|
924
|
+
export function compute_gfn1(elements_json: string, coords_flat_json: string): string;
|
|
925
|
+
|
|
926
|
+
/**
|
|
927
|
+
* Run a GFN2-xTB tight-binding calculation.
|
|
928
|
+
*/
|
|
929
|
+
export function compute_gfn2(elements_json: string, coords_flat_json: string): string;
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* Run the public SCF-backed GIAO NMR route for a specific nucleus.
|
|
933
|
+
*/
|
|
934
|
+
export function compute_giao_nmr(elements_json: string, coords_flat_json: string, nucleus: string, charge: number, multiplicity: number, max_scf_iter: number, allow_basis_fallback: boolean, use_parallel_eri: boolean): string;
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* Compute Gouy-Chapman profile (diffuse layer only).
|
|
938
|
+
*
|
|
939
|
+
* Returns JSON EDL profile result.
|
|
940
|
+
*/
|
|
941
|
+
export function compute_gouy_chapman_profile(surface_potential_v: number, ionic_strength_m: number): string;
|
|
942
|
+
|
|
943
|
+
/**
|
|
944
|
+
* Compute Helmholtz-only profile.
|
|
945
|
+
*
|
|
946
|
+
* Returns JSON EDL profile result.
|
|
947
|
+
*/
|
|
948
|
+
export function compute_helmholtz_profile(surface_potential_v: number, ionic_strength_m: number): string;
|
|
949
|
+
|
|
950
|
+
/**
|
|
951
|
+
* Run a HF-3c calculation with default configuration.
|
|
952
|
+
*/
|
|
953
|
+
export function compute_hf3c(elements_json: string, coords_flat_json: string): string;
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* Run a HF-3c calculation with custom configuration.
|
|
957
|
+
*/
|
|
958
|
+
export function compute_hf3c_custom(elements_json: string, coords_flat_json: string, max_scf_iter: number, n_cis_states: number, corrections: boolean): string;
|
|
959
|
+
|
|
960
|
+
/**
|
|
961
|
+
* Generate HOSE codes for all atoms in a molecule.
|
|
962
|
+
*/
|
|
963
|
+
export function compute_hose_codes(smiles: string, max_radius: number): string;
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* Evaluate an HTST transition rate.
|
|
967
|
+
*
|
|
968
|
+
* Returns JSON `{step_id, forward_rate_s_inv, reverse_rate_s_inv, equilibrium_constant}`.
|
|
969
|
+
*/
|
|
970
|
+
export function compute_htst_rate(activation_free_energy_ev: number, reaction_free_energy_ev: number, temperature_k: number): string;
|
|
971
|
+
|
|
972
|
+
/**
|
|
973
|
+
* Evaluate HTST rates over a temperature sweep.
|
|
974
|
+
*
|
|
975
|
+
* `temperatures_json`: JSON array of temperatures in K.
|
|
976
|
+
* Returns JSON array of rate results.
|
|
977
|
+
*/
|
|
978
|
+
export function compute_htst_sweep(activation_free_energy_ev: number, reaction_free_energy_ev: number, temperatures_json: string): string;
|
|
979
|
+
|
|
980
|
+
/**
|
|
981
|
+
* Generate a Lorentzian-broadened IR spectrum from vibrational analysis JSON.
|
|
982
|
+
*/
|
|
983
|
+
export function compute_ir_spectrum(analysis_json: string, gamma: number, wn_min: number, wn_max: number, n_points: number): string;
|
|
984
|
+
|
|
985
|
+
/**
|
|
986
|
+
* Generate a broadened IR spectrum from an internally computed vibrational analysis.
|
|
987
|
+
*
|
|
988
|
+
* `method`: semi-empirical Hessian method (`eht`, `pm3`, `xtb`, …) or `uff`.
|
|
989
|
+
* `broadening`: `gaussian` or `lorentzian`.
|
|
990
|
+
* `smiles`: required when `method` is `uff`, otherwise ignored.
|
|
991
|
+
*/
|
|
992
|
+
export function compute_ir_spectrum_broadened(elements_json: string, coords_flat_json: string, method: string, gamma: number, wn_min: number, wn_max: number, n_points: number, broadening: string, step_size: number, smiles: string): string;
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
* Generate a k-mesh.
|
|
996
|
+
*
|
|
997
|
+
* Returns JSON `{n_points, grid, fractional_coords, weights}`.
|
|
998
|
+
*/
|
|
999
|
+
export function compute_kmesh(grid_json: string, centering: string): string;
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* Build a k-point path chart from the core high-symmetry path.
|
|
1003
|
+
*/
|
|
1004
|
+
export function compute_kpoint_path_chart(n_points_per_segment: number): string;
|
|
1005
|
+
|
|
1006
|
+
/**
|
|
1007
|
+
* Run short NVE molecular dynamics with UFF force field.
|
|
1008
|
+
*
|
|
1009
|
+
* `smiles`: SMILES string for topology.
|
|
1010
|
+
* `coords_json`: JSON array of flat xyz coords.
|
|
1011
|
+
* `n_steps`: number of MD steps.
|
|
1012
|
+
* `dt_fs`: time step in femtoseconds.
|
|
1013
|
+
* `seed`: random seed for initial velocities (32-bit; use
|
|
1014
|
+
* [`compute_md_trajectory_seed64`] for the full 64-bit range).
|
|
1015
|
+
*
|
|
1016
|
+
* Returns JSON MdTrajectory with frames, energies, temperatures.
|
|
1017
|
+
*/
|
|
1018
|
+
export function compute_md_trajectory(smiles: string, coords_json: string, n_steps: number, dt_fs: number, seed: number): string;
|
|
1019
|
+
|
|
1020
|
+
/**
|
|
1021
|
+
* Run short NVT molecular dynamics with Berendsen thermostat.
|
|
1022
|
+
*
|
|
1023
|
+
* `target_temp_k`: target temperature in Kelvin.
|
|
1024
|
+
* `thermostat_tau_fs`: thermostat coupling time in fs.
|
|
1025
|
+
* `seed`: 32-bit random seed (use [`compute_md_trajectory_nvt_seed64`] for the
|
|
1026
|
+
* full 64-bit range).
|
|
1027
|
+
*/
|
|
1028
|
+
export function compute_md_trajectory_nvt(smiles: string, coords_json: string, n_steps: number, dt_fs: number, seed: number, target_temp_k: number, thermostat_tau_fs: number): string;
|
|
1029
|
+
|
|
1030
|
+
/**
|
|
1031
|
+
* Run short NVT molecular dynamics with Berendsen thermostat, 64-bit seed.
|
|
1032
|
+
*
|
|
1033
|
+
* `seed` is a JavaScript `BigInt` (e.g. `42n`).
|
|
1034
|
+
*/
|
|
1035
|
+
export function compute_md_trajectory_nvt_seed64(smiles: string, coords_json: string, n_steps: number, dt_fs: number, seed: bigint, target_temp_k: number, thermostat_tau_fs: number): string;
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* Run short NVE molecular dynamics with UFF force field, 64-bit seed.
|
|
1039
|
+
*
|
|
1040
|
+
* `seed` is a JavaScript `BigInt` (e.g. `42n`).
|
|
1041
|
+
*/
|
|
1042
|
+
export function compute_md_trajectory_seed64(smiles: string, coords_json: string, n_steps: number, dt_fs: number, seed: bigint): string;
|
|
1043
|
+
|
|
1044
|
+
/**
|
|
1045
|
+
* Run velocity-Verlet MD with a configurable energy backend.
|
|
1046
|
+
*
|
|
1047
|
+
* `backend`: `"uff"`, `"pm3"`, `"xtb"`.
|
|
1048
|
+
* `target_temp_k`: if > 0, enables Berendsen thermostat with 100 fs coupling.
|
|
1049
|
+
* `seed`: 32-bit random seed (use [`compute_md_trajectory_with_method_seed64`]
|
|
1050
|
+
* for the full 64-bit range).
|
|
1051
|
+
*
|
|
1052
|
+
* Returns JSON `MdTrajectory`.
|
|
1053
|
+
*/
|
|
1054
|
+
export function compute_md_trajectory_with_method(smiles: string, coords_json: string, elements_json: string, n_steps: number, dt_fs: number, seed: number, target_temp_k: number, backend: string): string;
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* Run velocity-Verlet MD with a configurable energy backend, 64-bit seed.
|
|
1058
|
+
*
|
|
1059
|
+
* `seed` is a JavaScript `BigInt` (e.g. `42n`).
|
|
1060
|
+
*/
|
|
1061
|
+
export function compute_md_trajectory_with_method_seed64(smiles: string, coords_json: string, elements_json: string, n_steps: number, dt_fs: number, seed: bigint, target_temp_k: number, backend: string): string;
|
|
1062
|
+
|
|
1063
|
+
/**
|
|
1064
|
+
* Compute molecular descriptors from SMILES.
|
|
1065
|
+
*
|
|
1066
|
+
* Canonical name matching the Rust root (`sci_form::compute_ml_descriptors`).
|
|
1067
|
+
*/
|
|
1068
|
+
export function compute_ml_descriptors(smiles: string): string;
|
|
1069
|
+
|
|
1070
|
+
/**
|
|
1071
|
+
* Predict molecular properties using ML proxy models.
|
|
1072
|
+
*
|
|
1073
|
+
* **Deprecated alias** of [`predict_ml_properties`]; kept so existing JS
|
|
1074
|
+
* callers keep working. Use `predict_ml_properties`, the name of the Rust
|
|
1075
|
+
* root function.
|
|
1076
|
+
*/
|
|
1077
|
+
export function compute_ml_properties(smiles: string): string;
|
|
1078
|
+
|
|
1079
|
+
/**
|
|
1080
|
+
* Compute MMFF94 force field energy.
|
|
1081
|
+
*/
|
|
1082
|
+
export function compute_mmff94_energy(smiles: string, coords: string): string;
|
|
1083
|
+
|
|
1084
|
+
/**
|
|
1085
|
+
* Per-term-type MMFF94 energy breakdown (kcal/mol).
|
|
1086
|
+
*
|
|
1087
|
+
* The values sum to `compute_mmff94_energy`.
|
|
1088
|
+
*/
|
|
1089
|
+
export function compute_mmff94_energy_breakdown(smiles: string, coords: string): string;
|
|
1090
|
+
|
|
1091
|
+
/**
|
|
1092
|
+
* Compute molecular descriptors from SMILES.
|
|
1093
|
+
*
|
|
1094
|
+
* **Deprecated alias** of [`compute_ml_descriptors`]; kept so existing JS
|
|
1095
|
+
* callers keep working. Use `compute_ml_descriptors`, the name of the Rust
|
|
1096
|
+
* root function.
|
|
1097
|
+
*/
|
|
1098
|
+
export function compute_molecular_descriptors(smiles: string): string;
|
|
1099
|
+
|
|
1100
|
+
/**
|
|
1101
|
+
* Build a simplified NEB path with a configurable energy backend.
|
|
1102
|
+
*
|
|
1103
|
+
* `method`: `"uff"`, `"mmff94"`, `"pm3"`, `"xtb"`, `"gfn1"`, `"gfn2"`, `"hf3c"`.
|
|
1104
|
+
*
|
|
1105
|
+
* Returns JSON `NebPathResult` with images, energies, TS info.
|
|
1106
|
+
*/
|
|
1107
|
+
export function compute_neb_path_with_method(smiles: string, start_coords_json: string, end_coords_json: string, n_images: number, n_iter: number, spring_k: number, step_size: number, method: string): string;
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
* Generate a complete NMR spectrum.
|
|
1111
|
+
*
|
|
1112
|
+
* `nucleus`: any supported nucleus alias, such as "1H", "13C", "35Cl", "79Br", or "195Pt".
|
|
1113
|
+
*/
|
|
1114
|
+
export function compute_nmr_spectrum(smiles: string, nucleus: string, gamma: number, ppm_min: number, ppm_max: number, n_points: number): string;
|
|
1115
|
+
|
|
1116
|
+
/**
|
|
1117
|
+
* Generate a complete NMR spectrum using optional 3D coordinates for ³J couplings.
|
|
1118
|
+
*/
|
|
1119
|
+
export function compute_nmr_spectrum_with_coords(smiles: string, coords_flat_json: string, nucleus: string, gamma: number, ppm_min: number, ppm_max: number, n_points: number): string;
|
|
1120
|
+
|
|
1121
|
+
/**
|
|
1122
|
+
* Non-polar solvation energy from SASA with atomic solvation parameters.
|
|
1123
|
+
*
|
|
1124
|
+
* Returns JSON `NonPolarSolvation`.
|
|
1125
|
+
*/
|
|
1126
|
+
export function compute_nonpolar_solvation(elements: string, coords_flat: string, probe_radius: number): string;
|
|
1127
|
+
|
|
1128
|
+
/**
|
|
1129
|
+
* Compute an orbital isosurface mesh using any implemented method.
|
|
1130
|
+
*
|
|
1131
|
+
* `method`: "eht", "pm3", "xtb", or "hf3c".
|
|
1132
|
+
* `mo_index`: molecular orbital index (0-based).
|
|
1133
|
+
* `spacing`: grid spacing in Å (e.g. 0.2).
|
|
1134
|
+
* `isovalue`: isosurface cutoff (e.g. 0.02).
|
|
1135
|
+
*
|
|
1136
|
+
* Returns JSON OrbitalMeshResult with mesh, grid, orbital energies, HOMO-LUMO gap.
|
|
1137
|
+
*/
|
|
1138
|
+
export function compute_orbital_mesh(elements_json: string, coords_flat_json: string, method: string, mo_index: number, spacing: number, padding: number, isovalue: number): string;
|
|
1139
|
+
|
|
1140
|
+
/**
|
|
1141
|
+
* Alias of [`compute_periodic_dos`], the name of the Rust root function.
|
|
1142
|
+
*
|
|
1143
|
+
* The `_wasm` suffix existed only to avoid a name clash inside the flat
|
|
1144
|
+
* WASM namespace; the canonical name is exported as well (blocker C-H1).
|
|
1145
|
+
*/
|
|
1146
|
+
export function compute_periodic_dos(blocks_json: string, grid_json: string, centering: string, order: number, e_min: number, e_max: number, n_points: number, fermi_energy_ev?: number | null): string;
|
|
1147
|
+
|
|
1148
|
+
/**
|
|
1149
|
+
* Compute the k-averaged density of states with the core KPM solver.
|
|
1150
|
+
*
|
|
1151
|
+
* `blocks_json` is a JSON array of real-space operator blocks; the Bloch
|
|
1152
|
+
* Hamiltonians are assembled for every k-point of the requested mesh.
|
|
1153
|
+
*/
|
|
1154
|
+
export function compute_periodic_dos_wasm(blocks_json: string, grid_json: string, centering: string, order: number, e_min: number, e_max: number, n_points: number, fermi_energy_ev?: number | null): string;
|
|
1155
|
+
|
|
1156
|
+
/**
|
|
1157
|
+
* Build a phase portrait chart from a solved microkinetic network.
|
|
1158
|
+
*
|
|
1159
|
+
* The two axes are the populations of the first two species over the
|
|
1160
|
+
* simulated trajectory.
|
|
1161
|
+
*/
|
|
1162
|
+
export function compute_phase_portrait_chart(network_json: string, n_steps: number): string;
|
|
1163
|
+
|
|
1164
|
+
/**
|
|
1165
|
+
* Run a PM3 semi-empirical calculation.
|
|
1166
|
+
*/
|
|
1167
|
+
export function compute_pm3(elements_json: string, coords_flat_json: string): string;
|
|
1168
|
+
|
|
1169
|
+
/**
|
|
1170
|
+
* Compute the PM3 energy gradient (eV/Å per atom).
|
|
1171
|
+
*/
|
|
1172
|
+
export function compute_pm3_gradient(elements_json: string, coords_flat_json: string): string;
|
|
1173
|
+
|
|
1174
|
+
/**
|
|
1175
|
+
* Compute Mulliken & Löwdin population analysis.
|
|
1176
|
+
*/
|
|
1177
|
+
export function compute_population(elements: string, coords_flat: string): string;
|
|
1178
|
+
|
|
1179
|
+
/**
|
|
1180
|
+
* Compute radial distribution function (RDF) descriptors.
|
|
1181
|
+
*
|
|
1182
|
+
* `charges_json`: JSON array of partial charges; pass `""` to derive the
|
|
1183
|
+
* charges with the Gasteiger solver from geometry-perceived bonds.
|
|
1184
|
+
*/
|
|
1185
|
+
export function compute_rdf(elements_json: string, coords_flat_json: string, charges_json: string, beta: number, r_max: number, n_points: number): string;
|
|
1186
|
+
|
|
1187
|
+
/**
|
|
1188
|
+
* Build a reaction-coordinate chart from a GSM reaction path.
|
|
1189
|
+
*
|
|
1190
|
+
* The reaction coordinate is the accumulated path length in Å; the chart
|
|
1191
|
+
* shows the potential energy along that coordinate.
|
|
1192
|
+
*/
|
|
1193
|
+
export function compute_reaction_coordinate_chart(smiles: string, reactant_coords_json: string, product_coords_json: string, method: string): string;
|
|
1194
|
+
|
|
1195
|
+
/**
|
|
1196
|
+
* Compute a full reaction dynamics path: embed reactant + product fragments,
|
|
1197
|
+
* build oriented complexes, run NEB for the reactive zone, and generate
|
|
1198
|
+
* approach/departure frames — all energies computed in Rust.
|
|
1199
|
+
*
|
|
1200
|
+
* `reactant_smiles_json`: JSON array of reactant SMILES, e.g. `["CC(=O)O", "N"]`.
|
|
1201
|
+
* `product_smiles_json`: JSON array of product SMILES, e.g. `["CC(=O)N", "O"]`.
|
|
1202
|
+
* `method`: energy backend — `"uff"`, `"mmff94"`, `"pm3"`, `"xtb"`, `"gfn1"`, `"gfn2"`, `"hf3c"`.
|
|
1203
|
+
* `config_json`: optional JSON `ReactionDynamicsConfig`; pass `""` or `"{}"` for defaults.
|
|
1204
|
+
*
|
|
1205
|
+
* Returns JSON `ReactionDynamicsResult` with frames, energies, TS info.
|
|
1206
|
+
*/
|
|
1207
|
+
export function compute_reaction_dynamics(reactant_smiles_json: string, product_smiles_json: string, method: string, config_json: string): string;
|
|
1208
|
+
|
|
1209
|
+
/**
|
|
1210
|
+
* Build empirical local-reactivity rankings.
|
|
1211
|
+
*/
|
|
1212
|
+
export function compute_reactivity_ranking(elements: string, coords_flat: string): string;
|
|
1213
|
+
|
|
1214
|
+
/**
|
|
1215
|
+
* Compute RMSD between two coordinate sets after Kabsch alignment.
|
|
1216
|
+
*
|
|
1217
|
+
* Returns JSON `{"rmsd": 0.123456}` on success, or the canonical
|
|
1218
|
+
* `{"error": "..."}` payload when the two coordinate sets cannot be
|
|
1219
|
+
* compared (different lengths, or a length that is not a multiple of 3).
|
|
1220
|
+
* A `NaN` RMSD is never emitted — it is not valid JSON (blocker C-C4).
|
|
1221
|
+
*/
|
|
1222
|
+
export function compute_rmsd(coords: string, reference: string): string;
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* Compute all-pairs RMSD matrix for conformers.
|
|
1226
|
+
*
|
|
1227
|
+
* Returns JSON 2D array.
|
|
1228
|
+
*/
|
|
1229
|
+
export function compute_rmsd_matrix(conformers_json: string): string;
|
|
1230
|
+
|
|
1231
|
+
/**
|
|
1232
|
+
* Run a Restricted Open-shell Hartree-Fock (ROHF) calculation.
|
|
1233
|
+
*
|
|
1234
|
+
* Same arguments as `compute_uhf`; ROHF uses the canonical projection, so
|
|
1235
|
+
* the spin contamination is zero by construction.
|
|
1236
|
+
*/
|
|
1237
|
+
export function compute_rohf(elements_json: string, coords_flat_json: string, charge: number, multiplicity: number): string;
|
|
1238
|
+
|
|
1239
|
+
/**
|
|
1240
|
+
* Compute solvent-accessible surface area.
|
|
1241
|
+
*/
|
|
1242
|
+
export function compute_sasa(elements: string, coords_flat: string, probe_radius: number): string;
|
|
1243
|
+
|
|
1244
|
+
/**
|
|
1245
|
+
* Build a simplified NEB path between two geometries.
|
|
1246
|
+
*
|
|
1247
|
+
* `start_coords_json`, `end_coords_json`: JSON flat xyz coords.
|
|
1248
|
+
* `n_images`: number of intermediate images.
|
|
1249
|
+
* `n_iter`: optimization iterations.
|
|
1250
|
+
* `spring_k`: spring constant.
|
|
1251
|
+
* `step_size`: optimization step size.
|
|
1252
|
+
*/
|
|
1253
|
+
export function compute_simplified_neb_path(smiles: string, start_coords_json: string, end_coords_json: string, n_images: number, n_iter: number, spring_k: number, step_size: number): string;
|
|
1254
|
+
|
|
1255
|
+
/**
|
|
1256
|
+
* Compute the Smallest Set of Smallest Rings (SSSR) for a SMILES string.
|
|
1257
|
+
*
|
|
1258
|
+
* Returns JSON `SssrResult`.
|
|
1259
|
+
*/
|
|
1260
|
+
export function compute_sssr(smiles: string): string;
|
|
1261
|
+
|
|
1262
|
+
/**
|
|
1263
|
+
* Compute an sTDA UV-Vis spectrum with proper oscillator strengths.
|
|
1264
|
+
*/
|
|
1265
|
+
export function compute_stda_uvvis(elements_json: string, coords_flat_json: string, sigma: number, e_min: number, e_max: number, n_points: number, broadening: string): string;
|
|
1266
|
+
|
|
1267
|
+
/**
|
|
1268
|
+
* Compute Tanimoto similarity between two ECFP fingerprint JSON objects.
|
|
1269
|
+
*
|
|
1270
|
+
* Returns JSON `{"tanimoto": 0.85}`.
|
|
1271
|
+
*/
|
|
1272
|
+
export function compute_tanimoto(fp1_json: string, fp2_json: string): string;
|
|
1273
|
+
|
|
1274
|
+
/**
|
|
1275
|
+
* Build a thermal-properties chart from an elementary step.
|
|
1276
|
+
*
|
|
1277
|
+
* The HTST rates and equilibrium constants are computed by the core
|
|
1278
|
+
* transition-state evaluator over the requested temperature sweep.
|
|
1279
|
+
*/
|
|
1280
|
+
export function compute_thermal_prop_chart(activation_free_energy_ev: number, reaction_free_energy_ev: number, temperatures_json: string): string;
|
|
1281
|
+
|
|
1282
|
+
/**
|
|
1283
|
+
* Detect metal coordination geometry and return topology.
|
|
1284
|
+
*/
|
|
1285
|
+
export function compute_topology(elements: string, coords_flat: string): string;
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
* Compute the Topological Polar Surface Area (TPSA) in Ų.
|
|
1289
|
+
*
|
|
1290
|
+
* The Ertl fragment-contribution TPSA is a topological property: it does
|
|
1291
|
+
* not depend on a 3D geometry.
|
|
1292
|
+
*/
|
|
1293
|
+
export function compute_tpsa(smiles: string): string;
|
|
1294
|
+
|
|
1295
|
+
/**
|
|
1296
|
+
* Build a trajectory chart from a GSM reaction path.
|
|
1297
|
+
*
|
|
1298
|
+
* The path is computed by the core growing-string method with the requested
|
|
1299
|
+
* energy backend; the chart shows the energy profile and the accumulated
|
|
1300
|
+
* path length of the string.
|
|
1301
|
+
*/
|
|
1302
|
+
export function compute_trajectory_chart(smiles: string, reactant_coords_json: string, product_coords_json: string, method: string): string;
|
|
1303
|
+
|
|
1304
|
+
/**
|
|
1305
|
+
* Compute UFF force field energy.
|
|
1306
|
+
*/
|
|
1307
|
+
export function compute_uff_energy(smiles: string, coords: string): string;
|
|
1308
|
+
|
|
1309
|
+
/**
|
|
1310
|
+
* Per-term-type UFF energy breakdown (kcal/mol).
|
|
1311
|
+
*
|
|
1312
|
+
* The terms are `bond`, `angle`, `torsion`, `inversion` and `vdw` (plus any
|
|
1313
|
+
* diagnostic term), in first-seen order; the values sum to
|
|
1314
|
+
* `compute_uff_energy`.
|
|
1315
|
+
*/
|
|
1316
|
+
export function compute_uff_energy_breakdown(smiles: string, coords: string): string;
|
|
1317
|
+
|
|
1318
|
+
/**
|
|
1319
|
+
* Compute UFF energy with aromaticity-informed heuristic correction metadata.
|
|
1320
|
+
*/
|
|
1321
|
+
export function compute_uff_energy_with_aromatic_heuristics(smiles: string, coords: string): string;
|
|
1322
|
+
|
|
1323
|
+
/**
|
|
1324
|
+
* Run an Unrestricted Hartree-Fock (UHF) calculation for open-shell systems.
|
|
1325
|
+
*
|
|
1326
|
+
* `charge` is the total molecular charge and `multiplicity` the spin
|
|
1327
|
+
* multiplicity (1 = singlet, 2 = doublet, 3 = triplet).
|
|
1328
|
+
*
|
|
1329
|
+
* The dense matrices of the result are not part of the payload: they are
|
|
1330
|
+
* `n_basis × n_basis` and would dominate the JSON. The scalar results,
|
|
1331
|
+
* the orbital energies and the Mulliken charges are.
|
|
1332
|
+
*/
|
|
1333
|
+
export function compute_uhf(elements_json: string, coords_flat_json: string, charge: number, multiplicity: number): string;
|
|
1334
|
+
|
|
1335
|
+
/**
|
|
1336
|
+
* Build an exploratory UV-Vis-like spectrum from low-cost EHT transitions.
|
|
1337
|
+
*/
|
|
1338
|
+
export function compute_uv_vis_spectrum(elements: string, coords_flat: string, sigma: number, e_min: number, e_max: number, n_points: number): string;
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* Perform vibrational analysis via numerical Hessian.
|
|
1342
|
+
*/
|
|
1343
|
+
export function compute_vibrational_analysis(elements_json: string, coords_flat_json: string, method: string, step_size: number): string;
|
|
1344
|
+
|
|
1345
|
+
/**
|
|
1346
|
+
* Perform vibrational analysis using the fast UFF analytical Hessian path.
|
|
1347
|
+
*/
|
|
1348
|
+
export function compute_vibrational_analysis_uff(smiles: string, elements_json: string, coords_flat_json: string, step_size: number): string;
|
|
1349
|
+
|
|
1350
|
+
/**
|
|
1351
|
+
* Compute WHIM 3D molecular descriptors.
|
|
1352
|
+
*
|
|
1353
|
+
* `weighting`: `unit`, `mass`, `volume`, `electronegativity` or `polarizability`.
|
|
1354
|
+
*/
|
|
1355
|
+
export function compute_whim(elements_json: string, coords_flat_json: string, weighting: string): string;
|
|
1356
|
+
|
|
1357
|
+
/**
|
|
1358
|
+
* Run an xTB tight-binding calculation.
|
|
1359
|
+
*/
|
|
1360
|
+
export function compute_xtb(elements_json: string, coords_flat_json: string): string;
|
|
1361
|
+
|
|
1362
|
+
/**
|
|
1363
|
+
* Compute the xTB (GFN2) energy gradient (eV/Å per atom).
|
|
1364
|
+
*/
|
|
1365
|
+
export function compute_xtb_gradient(elements_json: string, coords_flat_json: string): string;
|
|
1366
|
+
|
|
1367
|
+
/**
|
|
1368
|
+
* Create a unit cell and return parameters + volume as JSON.
|
|
1369
|
+
*/
|
|
1370
|
+
export function create_unit_cell(a: number, b: number, c: number, alpha: number, beta: number, gamma: number): string;
|
|
1371
|
+
|
|
1372
|
+
/**
|
|
1373
|
+
* Detect haptic (η) metal–ring interactions and metallocene motifs.
|
|
1374
|
+
*
|
|
1375
|
+
* `bonds_json`: JSON array of `[i, j]` atom-index pairs; pass `""` to
|
|
1376
|
+
* perceive the bonds from the geometry.
|
|
1377
|
+
*/
|
|
1378
|
+
export function detect_hapticity(elements_json: string, coords_flat_json: string, bonds_json: string): string;
|
|
1379
|
+
|
|
1380
|
+
/**
|
|
1381
|
+
* Run an EHT calculation on a molecule.
|
|
1382
|
+
*
|
|
1383
|
+
* - `elements`: JSON array of atomic numbers
|
|
1384
|
+
* - `coords_flat`: JSON array of flat xyz coords
|
|
1385
|
+
* - `k`: Wolfsberg-Helmholtz constant (0.0 for default 1.75)
|
|
1386
|
+
*/
|
|
1387
|
+
export function eht_calculate(elements: string, coords_flat: string, k: number): string;
|
|
1388
|
+
|
|
1389
|
+
/**
|
|
1390
|
+
* Run EHT or route to UFF fallback based on support/confidence.
|
|
1391
|
+
*/
|
|
1392
|
+
export function eht_or_uff_fallback(smiles: string, elements: string, coords_flat: string, allow_experimental_eht: boolean): string;
|
|
1393
|
+
|
|
1394
|
+
/**
|
|
1395
|
+
* Compute orbital grid from precomputed EHT coefficients as Float32Array.
|
|
1396
|
+
*/
|
|
1397
|
+
export function eht_orbital_grid_from_coefficients_typed(elements: string, coords_flat: string, coefficients_json: string, mo_index: number, spacing: number): Float32Array;
|
|
1398
|
+
|
|
1399
|
+
/**
|
|
1400
|
+
* Compute orbital grid as Float32Array (typed-array transfer).
|
|
1401
|
+
*/
|
|
1402
|
+
export function eht_orbital_grid_typed(elements: string, coords_flat: string, mo_index: number, spacing: number): Float32Array;
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* Generate an orbital isosurface mesh from EHT.
|
|
1406
|
+
*/
|
|
1407
|
+
export function eht_orbital_mesh(elements: string, coords_flat: string, mo_index: number, spacing: number, isovalue: number): string;
|
|
1408
|
+
|
|
1409
|
+
/**
|
|
1410
|
+
* Query EHT support metadata.
|
|
1411
|
+
*
|
|
1412
|
+
* The Rust root calls this `get_eht_support`; the `get_` prefix is not
|
|
1413
|
+
* idiomatic and is dropped here (blocker C-M7). The Rust name is kept as
|
|
1414
|
+
* an alias below.
|
|
1415
|
+
*/
|
|
1416
|
+
export function eht_support(elements: string): string;
|
|
1417
|
+
|
|
1418
|
+
export function eht_volumetric_grid_info(elements: string, coords_flat: string, spacing: number, padding: number): string;
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
* Generate a 3D conformer from a SMILES string.
|
|
1422
|
+
*
|
|
1423
|
+
* Returns a JSON string with the full result including atoms, bonds, and
|
|
1424
|
+
* coordinates. When the embedding fails the function returns the canonical
|
|
1425
|
+
* WASM error payload `{"error": "..."}` — the same shape every other WASM
|
|
1426
|
+
* entry point uses — so a failure is never mistaken for a result object
|
|
1427
|
+
* (blocker C-M4).
|
|
1428
|
+
*
|
|
1429
|
+
* `seed` is a 32-bit unsigned integer. Use [`embed_seed64`] for the full
|
|
1430
|
+
* 64-bit seed range of the Rust core.
|
|
1431
|
+
*/
|
|
1432
|
+
export function embed(smiles: string, seed: number): string;
|
|
1433
|
+
|
|
1434
|
+
/**
|
|
1435
|
+
* Batch-embed multiple molecules from newline-separated SMILES.
|
|
1436
|
+
*
|
|
1437
|
+
* Returns a JSON array of results. A batch-level failure returns a JSON
|
|
1438
|
+
* array holding a single `{"error": "..."}` object so the array shape is
|
|
1439
|
+
* preserved.
|
|
1440
|
+
*
|
|
1441
|
+
* `seed` is a 32-bit unsigned integer; use [`embed_batch_seed64`] for the
|
|
1442
|
+
* full 64-bit range.
|
|
1443
|
+
*/
|
|
1444
|
+
export function embed_batch(smiles_list: string, seed: number): string;
|
|
1445
|
+
|
|
1446
|
+
/**
|
|
1447
|
+
* Batch-embed multiple molecules, with a full 64-bit seed.
|
|
1448
|
+
*
|
|
1449
|
+
* `seed` is a JavaScript `BigInt` (e.g. `42n`).
|
|
1450
|
+
*/
|
|
1451
|
+
export function embed_batch_seed64(smiles_list: string, seed: bigint): string;
|
|
1452
|
+
|
|
1453
|
+
/**
|
|
1454
|
+
* Generate 3D coordinates only (compact format).
|
|
1455
|
+
*
|
|
1456
|
+
* Returns JSON: `{"coords": [x0,y0,z0,...], "num_atoms": N}` or `{"error": "..."}`.
|
|
1457
|
+
*
|
|
1458
|
+
* `seed` is a 32-bit unsigned integer; use [`embed_coords_seed64`] for the
|
|
1459
|
+
* full 64-bit range.
|
|
1460
|
+
*/
|
|
1461
|
+
export function embed_coords(smiles: string, seed: number): string;
|
|
1462
|
+
|
|
1463
|
+
/**
|
|
1464
|
+
* Generate 3D coordinates only, with a full 64-bit seed.
|
|
1465
|
+
*
|
|
1466
|
+
* `seed` is a JavaScript `BigInt` (e.g. `42n`).
|
|
1467
|
+
*/
|
|
1468
|
+
export function embed_coords_seed64(smiles: string, seed: bigint): string;
|
|
1469
|
+
|
|
1470
|
+
/**
|
|
1471
|
+
* Generate 3D coordinates as a Float64Array (typed-array transfer).
|
|
1472
|
+
*
|
|
1473
|
+
* Returns a Float64Array `[x0,y0,z0, x1,y1,z1,...]` or empty on failure.
|
|
1474
|
+
*
|
|
1475
|
+
* `seed` is a 32-bit unsigned integer; use [`embed_coords_typed_seed64`] for
|
|
1476
|
+
* the full 64-bit range.
|
|
1477
|
+
*/
|
|
1478
|
+
export function embed_coords_typed(smiles: string, seed: number): Float64Array;
|
|
1479
|
+
|
|
1480
|
+
/**
|
|
1481
|
+
* Generate 3D coordinates as a Float64Array, with a full 64-bit seed.
|
|
1482
|
+
*
|
|
1483
|
+
* `seed` is a JavaScript `BigInt` (e.g. `42n`).
|
|
1484
|
+
*/
|
|
1485
|
+
export function embed_coords_typed_seed64(smiles: string, seed: bigint): Float64Array;
|
|
1486
|
+
|
|
1487
|
+
/**
|
|
1488
|
+
* Generate a diverse conformer ensemble and cluster it by Butina RMSD.
|
|
1489
|
+
*
|
|
1490
|
+
* Embeds `n_conformers` times with consecutive seeds and keeps only the
|
|
1491
|
+
* cluster centroids (RMSD threshold `rmsd_cutoff` in Å).
|
|
1492
|
+
*
|
|
1493
|
+
* `base_seed` is a full 64-bit seed (a JavaScript `BigInt`).
|
|
1494
|
+
*/
|
|
1495
|
+
export function embed_diverse(smiles: string, n_conformers: number, rmsd_cutoff: number, base_seed: bigint): string;
|
|
1496
|
+
|
|
1497
|
+
/**
|
|
1498
|
+
* Generate a 3D conformer from a SMILES string, with a full 64-bit seed.
|
|
1499
|
+
*
|
|
1500
|
+
* `seed` is a JavaScript `BigInt` (e.g. `42n`). Numbers are also accepted
|
|
1501
|
+
* for seeds below 2^53.
|
|
1502
|
+
*/
|
|
1503
|
+
export function embed_seed64(smiles: string, seed: bigint): string;
|
|
1504
|
+
|
|
1505
|
+
/**
|
|
1506
|
+
* Estimate optimal number of Web Workers for a batch size.
|
|
1507
|
+
*/
|
|
1508
|
+
export function estimate_workers(n_items: number, max_workers: number): number;
|
|
1509
|
+
|
|
1510
|
+
/**
|
|
1511
|
+
* Alias of [`extract_kinetics_diagnostics`], the name of the Rust root function.
|
|
1512
|
+
*
|
|
1513
|
+
* The `_wasm` suffix existed only to avoid a name clash inside the flat
|
|
1514
|
+
* WASM namespace; the canonical name is exported as well (blocker C-H1).
|
|
1515
|
+
*/
|
|
1516
|
+
export function extract_kinetics_diagnostics(network_json: string, n_steps: number): string;
|
|
1517
|
+
|
|
1518
|
+
/**
|
|
1519
|
+
* Extract convergence diagnostics from a solved microkinetic trace.
|
|
1520
|
+
*
|
|
1521
|
+
* `network_json` is an optional `MicrokineticNetworkConfig` JSON document;
|
|
1522
|
+
* when omitted the built-in A ⇌ B demo network is solved.
|
|
1523
|
+
*/
|
|
1524
|
+
export function extract_kinetics_diagnostics_wasm(network_json: string, n_steps: number): string;
|
|
1525
|
+
|
|
1526
|
+
/**
|
|
1527
|
+
* Filter a conformer ensemble to keep only the diverse cluster centroids.
|
|
1528
|
+
*
|
|
1529
|
+
* Returns a JSON array of representative conformer indices.
|
|
1530
|
+
*/
|
|
1531
|
+
export function filter_diverse(conformers_json: string, rmsd_cutoff: number): string;
|
|
1532
|
+
|
|
1533
|
+
/**
|
|
1534
|
+
* Query EHT support metadata.
|
|
1535
|
+
*
|
|
1536
|
+
* **Alias** of [`eht_support`] matching the Rust root name
|
|
1537
|
+
* `sci_form::get_eht_support`.
|
|
1538
|
+
*/
|
|
1539
|
+
export function get_eht_support(elements: string): string;
|
|
1540
|
+
|
|
1541
|
+
/**
|
|
1542
|
+
* Query operation capabilities from a JSON element array.
|
|
1543
|
+
*
|
|
1544
|
+
* **Alias** of [`system_capabilities`] matching the Rust root name
|
|
1545
|
+
* `sci_form::get_system_capabilities`.
|
|
1546
|
+
*/
|
|
1547
|
+
export function get_system_capabilities(elements: string): string;
|
|
1548
|
+
|
|
1549
|
+
/**
|
|
1550
|
+
* Build a structured method plan from a JSON element array.
|
|
1551
|
+
*
|
|
1552
|
+
* **Alias** of [`system_method_plan`] matching the Rust root name
|
|
1553
|
+
* `sci_form::get_system_method_plan`.
|
|
1554
|
+
*/
|
|
1555
|
+
export function get_system_method_plan(elements: string): string;
|
|
1556
|
+
|
|
1557
|
+
/**
|
|
1558
|
+
* List available NEB backend methods for a given set of elements.
|
|
1559
|
+
*
|
|
1560
|
+
* Returns JSON array of `{"method": string, "available": bool, "note": string}`.
|
|
1561
|
+
*/
|
|
1562
|
+
export function list_neb_backends(elements_json: string): string;
|
|
1563
|
+
|
|
1564
|
+
/**
|
|
1565
|
+
* Evaluate the energy (kcal/mol) and gradient of a geometry with a given NEB backend.
|
|
1566
|
+
*
|
|
1567
|
+
* `method`: `"uff"`, `"mmff94"`, `"pm3"`, `"xtb"`, `"gfn1"`, `"gfn2"`, `"hf3c"`.
|
|
1568
|
+
*
|
|
1569
|
+
* Returns JSON `{"energy": <f64>, "gradient": [<f64>...], "method": "<str>"}`.
|
|
1570
|
+
*/
|
|
1571
|
+
export function neb_energy_and_gradient(method: string, smiles: string, coords_json: string): string;
|
|
1572
|
+
|
|
1573
|
+
/**
|
|
1574
|
+
* Evaluate the energy (kcal/mol) of a geometry with a given NEB backend.
|
|
1575
|
+
*
|
|
1576
|
+
* `method`: `"uff"`, `"mmff94"`, `"pm3"`, `"xtb"`, `"gfn1"`, `"gfn2"`, `"hf3c"`.
|
|
1577
|
+
*
|
|
1578
|
+
* Returns JSON `{"energy": <f64>, "method": "<str>"}`.
|
|
1579
|
+
*/
|
|
1580
|
+
export function neb_single_point_energy(method: string, smiles: string, coords_json: string): string;
|
|
1581
|
+
|
|
1582
|
+
/**
|
|
1583
|
+
* Optimize a molecular/framework geometry with the shared BFGS engine.
|
|
1584
|
+
*
|
|
1585
|
+
* The energy/force backend is the UFF force field built from `smiles`;
|
|
1586
|
+
* energies are reported in eV and forces in eV/Å. `cell_json` optionally
|
|
1587
|
+
* enables periodic (minimum-image) optimization and is the JSON array
|
|
1588
|
+
* `[a, b, c, alpha, beta, gamma]`.
|
|
1589
|
+
*/
|
|
1590
|
+
export function optimize_framework(smiles: string, coords_flat_json: string, method: string, max_iter: number, force_tol: number, energy_tol: number, max_step: number, fixed_atoms_json: string, cell_json: string): string;
|
|
1591
|
+
|
|
1592
|
+
/**
|
|
1593
|
+
* Optimize a geometry on the EHT energy surface with the shared BFGS engine.
|
|
1594
|
+
*/
|
|
1595
|
+
export function optimize_geometry_eht(elements: string, coords_flat: string, max_steps: number, grad_threshold: number, energy_threshold: number, step_size: number): string;
|
|
1596
|
+
|
|
1597
|
+
/**
|
|
1598
|
+
* Pack a batch of conformer results into sci-form's columnar (Arrow-like) format.
|
|
1599
|
+
*
|
|
1600
|
+
* This is not the Apache Arrow IPC format: the payload is a JSON
|
|
1601
|
+
* serialisation of sci-form's own columnar layout.
|
|
1602
|
+
*/
|
|
1603
|
+
export function pack_batch_arrow(results_json: string): string;
|
|
1604
|
+
|
|
1605
|
+
/**
|
|
1606
|
+
* Alias of [`pack_chart_payload`], the name of the Rust root function.
|
|
1607
|
+
*
|
|
1608
|
+
* The `_wasm` suffix existed only to avoid a name clash inside the flat
|
|
1609
|
+
* WASM namespace; the canonical name is exported as well (blocker C-H1).
|
|
1610
|
+
*/
|
|
1611
|
+
export function pack_chart_payload(chart_json: string): string;
|
|
1612
|
+
|
|
1613
|
+
/**
|
|
1614
|
+
* Pack a JSON chart payload into an Arrow-style record batch.
|
|
1615
|
+
*
|
|
1616
|
+
* Accepts a JSON `ChartPayload` string (or the `chart-to-json` wrapper).
|
|
1617
|
+
* Returns JSON describing the packed batch.
|
|
1618
|
+
*/
|
|
1619
|
+
export function pack_chart_payload_wasm(chart_json: string): string;
|
|
1620
|
+
|
|
1621
|
+
/**
|
|
1622
|
+
* Pack a batch of conformer results into sci-form's columnar format.
|
|
1623
|
+
*
|
|
1624
|
+
* Alias of [`pack_batch_arrow`], the name of the Rust root function
|
|
1625
|
+
* `sci_form::transport::pack_conformers` (blocker C-H1).
|
|
1626
|
+
*/
|
|
1627
|
+
export function pack_conformers(results_json: string): string;
|
|
1628
|
+
|
|
1629
|
+
/**
|
|
1630
|
+
* Parse a CIF-format string into a crystal structure.
|
|
1631
|
+
*
|
|
1632
|
+
* Returns the structure as JSON: `data_block`, `cell`, `cell_params`,
|
|
1633
|
+
* `space_group_hm`, `space_group_number` and `atom_sites`. The cell
|
|
1634
|
+
* lengths are in Å and the cell angles in degrees.
|
|
1635
|
+
*/
|
|
1636
|
+
export function parse_cif(cif_text: string): string;
|
|
1637
|
+
|
|
1638
|
+
/**
|
|
1639
|
+
* Parse a SMILES string and return molecular info (no 3D).
|
|
1640
|
+
*
|
|
1641
|
+
* Returns JSON:
|
|
1642
|
+
* `{"num_atoms": N, "num_bonds": M, "atoms": [{"element": 6, "hybridization": "Sp3", "formal_charge": 0}, ...]}`
|
|
1643
|
+
*
|
|
1644
|
+
* The `atoms` array matches the Python `parse()` payload (blocker C-M10).
|
|
1645
|
+
*/
|
|
1646
|
+
export function parse_smiles(smiles: string): string;
|
|
1647
|
+
|
|
1648
|
+
/**
|
|
1649
|
+
* Parse a SMIRKS reaction transform string.
|
|
1650
|
+
*
|
|
1651
|
+
* Returns JSON `SmirksTransform`:
|
|
1652
|
+
* ```json
|
|
1653
|
+
* {
|
|
1654
|
+
* "reactant_smarts": ["[C:1](=O)[OH:2]"],
|
|
1655
|
+
* "product_smarts": ["[C:1](=O)[O-:2]"],
|
|
1656
|
+
* "atom_map": {1: 1, 2: 2},
|
|
1657
|
+
* "bond_changes": [...],
|
|
1658
|
+
* "smirks": "[C:1](=O)[OH:2]>>[C:1](=O)[O-:2]"
|
|
1659
|
+
* }
|
|
1660
|
+
* ```
|
|
1661
|
+
*/
|
|
1662
|
+
export function parse_smirks(smirks: string): string;
|
|
1663
|
+
|
|
1664
|
+
/**
|
|
1665
|
+
* Predict molecular properties with the ensemble of ML models.
|
|
1666
|
+
*
|
|
1667
|
+
* Returns the consensus LogP with its uncertainty, the solubility, the
|
|
1668
|
+
* TPSA, the pKa estimates, the Veber rules, the BBB permeability and an
|
|
1669
|
+
* overall confidence score.
|
|
1670
|
+
*/
|
|
1671
|
+
export function predict_ensemble(smiles: string): string;
|
|
1672
|
+
|
|
1673
|
+
/**
|
|
1674
|
+
* Predict molecular properties using ML proxy models.
|
|
1675
|
+
*
|
|
1676
|
+
* Canonical name matching the Rust root (`sci_form::predict_ml_properties`).
|
|
1677
|
+
* Returns JSON:
|
|
1678
|
+
* `{"logp":…, "molar_refractivity":…, "log_solubility":…, "lipinski_violations":…,
|
|
1679
|
+
* "lipinski_passes":…, "druglikeness":…}`
|
|
1680
|
+
*/
|
|
1681
|
+
export function predict_ml_properties(smiles: string): string;
|
|
1682
|
+
|
|
1683
|
+
/**
|
|
1684
|
+
* Predict J-coupling constants.
|
|
1685
|
+
*/
|
|
1686
|
+
export function predict_nmr_couplings(smiles: string, coords_flat_json: string): string;
|
|
1687
|
+
|
|
1688
|
+
/**
|
|
1689
|
+
* Predict NMR chemical shifts for all active nuclei.
|
|
1690
|
+
*/
|
|
1691
|
+
export function predict_nmr_shifts(smiles: string): string;
|
|
1692
|
+
|
|
1693
|
+
/**
|
|
1694
|
+
* Predict NMR chemical shifts for a specific nucleus.
|
|
1695
|
+
*/
|
|
1696
|
+
export function predict_nmr_shifts_for_nucleus(smiles: string, nucleus: string): string;
|
|
1697
|
+
|
|
1698
|
+
/**
|
|
1699
|
+
* Search conformers by sampling, torsion refinement, and UFF ranking.
|
|
1700
|
+
*
|
|
1701
|
+
* `n_samples`: number of initial conformer samples.
|
|
1702
|
+
* `rmsd_threshold`: RMSD cutoff for duplicate filtering (Å).
|
|
1703
|
+
* `seed`: 32-bit random seed (use [`search_conformers_with_uff_seed64`] for
|
|
1704
|
+
* the full 64-bit range).
|
|
1705
|
+
*/
|
|
1706
|
+
export function search_conformers_with_uff(smiles: string, n_samples: number, seed: number, rmsd_threshold: number): string;
|
|
1707
|
+
|
|
1708
|
+
/**
|
|
1709
|
+
* Search conformers by sampling, torsion refinement, and UFF ranking, 64-bit seed.
|
|
1710
|
+
*
|
|
1711
|
+
* `seed` is a JavaScript `BigInt` (e.g. `42n`).
|
|
1712
|
+
*/
|
|
1713
|
+
export function search_conformers_with_uff_seed64(smiles: string, n_samples: number, seed: bigint, rmsd_threshold: number): string;
|
|
1714
|
+
|
|
1715
|
+
/**
|
|
1716
|
+
* Solve the extended Hückel problem for a geometry.
|
|
1717
|
+
*
|
|
1718
|
+
* Alias of [`eht_calculate`], the name of the Rust root function
|
|
1719
|
+
* `sci_form::eht::solve_eht` (blocker C-H1).
|
|
1720
|
+
*/
|
|
1721
|
+
export function solve_eht(elements: string, coords_flat: string, k: number): string;
|
|
1722
|
+
|
|
1723
|
+
/**
|
|
1724
|
+
* Alias of [`solve_microkinetic_network`], the name of the Rust root function.
|
|
1725
|
+
*
|
|
1726
|
+
* The `_wasm` suffix existed only to avoid a name clash inside the flat
|
|
1727
|
+
* WASM namespace; the canonical name is exported as well (blocker C-H1).
|
|
1728
|
+
*/
|
|
1729
|
+
export function solve_microkinetic_network(network_json: string, n_steps: number): string;
|
|
1730
|
+
|
|
1731
|
+
/**
|
|
1732
|
+
* Solve a microkinetic network and report the resulting trace.
|
|
1733
|
+
*/
|
|
1734
|
+
export function solve_microkinetic_network_wasm(network_json: string, n_steps: number): string;
|
|
1735
|
+
|
|
1736
|
+
/**
|
|
1737
|
+
* Alias of [`solve_microkinetic_steady_state`], the name of the Rust root function.
|
|
1738
|
+
*
|
|
1739
|
+
* The `_wasm` suffix existed only to avoid a name clash inside the flat
|
|
1740
|
+
* WASM namespace; the canonical name is exported as well (blocker C-H1).
|
|
1741
|
+
*/
|
|
1742
|
+
export function solve_microkinetic_steady_state(network_json: string, n_steps: number, tol: number): string;
|
|
1743
|
+
|
|
1744
|
+
/**
|
|
1745
|
+
* Solve a microkinetic network and propagate it to steady state.
|
|
1746
|
+
*/
|
|
1747
|
+
export function solve_microkinetic_steady_state_wasm(network_json: string, n_steps: number, tol: number): string;
|
|
1748
|
+
|
|
1749
|
+
/**
|
|
1750
|
+
* Alias of [`solve_periodic_randnla`], the name of the Rust root function.
|
|
1751
|
+
*
|
|
1752
|
+
* The `_wasm` suffix existed only to avoid a name clash inside the flat
|
|
1753
|
+
* WASM namespace; the canonical name is exported as well (blocker C-H1).
|
|
1754
|
+
*/
|
|
1755
|
+
export function solve_periodic_randnla(hamiltonian_blocks_json: string, overlap_blocks_json: string, n_electrons: number, grid_json: string, centering: string, sketch_size?: number | null): string;
|
|
1756
|
+
|
|
1757
|
+
/**
|
|
1758
|
+
* Solve the periodic generalized eigenproblem with the core RandNLA solver.
|
|
1759
|
+
*/
|
|
1760
|
+
export function solve_periodic_randnla_wasm(hamiltonian_blocks_json: string, overlap_blocks_json: string, n_electrons: number, grid_json: string, centering: string, sketch_size?: number | null): string;
|
|
1761
|
+
|
|
1762
|
+
/**
|
|
1763
|
+
* Look up a crystallographic space group by ITC number (1–230).
|
|
1764
|
+
*/
|
|
1765
|
+
export function space_group_by_number(number: number): string;
|
|
1766
|
+
|
|
1767
|
+
/**
|
|
1768
|
+
* Look up a crystallographic space group by Hermann-Mauguin symbol.
|
|
1769
|
+
*/
|
|
1770
|
+
export function space_group_by_symbol(symbol: string): string;
|
|
1771
|
+
|
|
1772
|
+
/**
|
|
1773
|
+
* Split a batch of SMILES into worker tasks for Web Worker dispatch.
|
|
1774
|
+
*
|
|
1775
|
+
* `seed` is a 32-bit random seed; use [`split_worker_tasks_seed64`] for the
|
|
1776
|
+
* full 64-bit range.
|
|
1777
|
+
*/
|
|
1778
|
+
export function split_worker_tasks(smiles_json: string, n_workers: number, seed: number): string;
|
|
1779
|
+
|
|
1780
|
+
/**
|
|
1781
|
+
* Split a batch of SMILES into worker tasks for Web Worker dispatch, 64-bit seed.
|
|
1782
|
+
*
|
|
1783
|
+
* `seed` is a JavaScript `BigInt` (e.g. `42n`).
|
|
1784
|
+
*/
|
|
1785
|
+
export function split_worker_tasks_seed64(smiles_json: string, n_workers: number, seed: bigint): string;
|
|
1786
|
+
|
|
1787
|
+
/**
|
|
1788
|
+
* Query operation capabilities from a JSON element array.
|
|
1789
|
+
*
|
|
1790
|
+
* The Rust root calls this `get_system_capabilities`; the `get_` prefix is
|
|
1791
|
+
* not idiomatic and is dropped here (blocker C-M7). The Rust name is kept
|
|
1792
|
+
* as an alias below.
|
|
1793
|
+
*/
|
|
1794
|
+
export function system_capabilities(elements: string): string;
|
|
1795
|
+
|
|
1796
|
+
/**
|
|
1797
|
+
* Build a structured method plan from a JSON element array.
|
|
1798
|
+
*
|
|
1799
|
+
* The Rust root calls this `get_system_method_plan`; the `get_` prefix is
|
|
1800
|
+
* not idiomatic and is dropped here (blocker C-M7). The Rust name is kept
|
|
1801
|
+
* as an alias below.
|
|
1802
|
+
*/
|
|
1803
|
+
export function system_method_plan(elements: string): string;
|
|
1804
|
+
|
|
1805
|
+
/**
|
|
1806
|
+
* Return the canonical SMILES representation of a molecule.
|
|
1807
|
+
*/
|
|
1808
|
+
export function to_canonical_smiles(smiles: string): string;
|
|
1809
|
+
|
|
1810
|
+
/**
|
|
1811
|
+
* Train a Gradient Boosting regressor and return its training-set predictions.
|
|
1812
|
+
*/
|
|
1813
|
+
export function train_gradient_boosting(features_json: string, targets_json: string, n_estimators: number, learning_rate: number, max_depth: number, min_samples_split: number, min_samples_leaf: number, subsample: number, seed: bigint): string;
|
|
1814
|
+
|
|
1815
|
+
/**
|
|
1816
|
+
* Train a Random Forest regressor and return its training-set predictions.
|
|
1817
|
+
*
|
|
1818
|
+
* `features_json`: JSON array of feature vectors; `targets_json`: JSON array
|
|
1819
|
+
* of target values.
|
|
1820
|
+
*/
|
|
1821
|
+
export function train_random_forest(features_json: string, targets_json: string, n_trees: number, max_depth: number, min_samples_split: number, min_samples_leaf: number, sample_fraction: number, seed: bigint): string;
|
|
1822
|
+
|
|
1823
|
+
/**
|
|
1824
|
+
* Alias of [`validate_chart_schema`], the name of the Rust root function.
|
|
1825
|
+
*
|
|
1826
|
+
* The `_wasm` suffix existed only to avoid a name clash inside the flat
|
|
1827
|
+
* WASM namespace; the canonical name is exported as well (blocker C-H1).
|
|
1828
|
+
*/
|
|
1829
|
+
export function validate_chart_schema(json_str: string): boolean;
|
|
1830
|
+
|
|
1831
|
+
/**
|
|
1832
|
+
* Validate the structure of a chart payload (wrapper or bare chart).
|
|
1833
|
+
*/
|
|
1834
|
+
export function validate_chart_schema_wasm(json_str: string): boolean;
|
|
1835
|
+
|
|
1836
|
+
/**
|
|
1837
|
+
* Alias of [`validate_electron_count`], the name of the Rust root function.
|
|
1838
|
+
*
|
|
1839
|
+
* The `_wasm` suffix existed only to avoid a name clash inside the flat
|
|
1840
|
+
* WASM namespace; the canonical name is exported as well (blocker C-H1).
|
|
1841
|
+
*/
|
|
1842
|
+
export function validate_electron_count(n_electrons: number, n_bands: number, n_kpoints: number): string;
|
|
1843
|
+
|
|
1844
|
+
/**
|
|
1845
|
+
* Check that the electron count fits into the available band/k-point states.
|
|
1846
|
+
*/
|
|
1847
|
+
export function validate_electron_count_wasm(n_electrons: number, n_bands: number, n_kpoints: number): string;
|
|
1848
|
+
|
|
1849
|
+
/**
|
|
1850
|
+
* Alias of [`validate_kmesh_weights`], the name of the Rust root function.
|
|
1851
|
+
*
|
|
1852
|
+
* The `_wasm` suffix existed only to avoid a name clash inside the flat
|
|
1853
|
+
* WASM namespace; the canonical name is exported as well (blocker C-H1).
|
|
1854
|
+
*/
|
|
1855
|
+
export function validate_kmesh_weights(weights_json: string, tolerance: number): string;
|
|
1856
|
+
|
|
1857
|
+
/**
|
|
1858
|
+
* Verify that k-mesh weights sum to 1 within a tolerance.
|
|
1859
|
+
*/
|
|
1860
|
+
export function validate_kmesh_weights_wasm(weights_json: string, tolerance: number): string;
|
|
1861
|
+
|
|
1862
|
+
/**
|
|
1863
|
+
* Library version.
|
|
1864
|
+
*/
|
|
1865
|
+
export function version(): string;
|
|
1866
|
+
|
|
1867
|
+
/**
|
|
1868
|
+
* Write a crystal structure as a CIF-format string.
|
|
1869
|
+
*
|
|
1870
|
+
* The structure is the JSON produced by `parse_cif`.
|
|
1871
|
+
*/
|
|
1872
|
+
export function write_cif(cif_json: string): string;
|