1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// SPDX-License-Identifier: AGPL-3.0-or-later
//! Force Kernels Module
//!
//! Implementations of fundamental force calculations for molecular dynamics:
//! - Coulomb (electrostatic, f32 and f64)
//! - Yukawa (screened electrostatic, f32 and f64)
//! - Lennard-Jones (van der Waals, f32 and f64)
//! - Morse (anharmonic bonded, f32 and f64)
//! - Harmonic Bond (covalent bonds, f64)
//! - Harmonic Angle (three-body valence angle, f64)
//! - Periodic Dihedral (four-body torsion, f64)
//! - Improper Dihedral (planarity restraint, f64)
//! - Born-Mayer (hard-core repulsion)
//!
//! ## WGSL as Unified Math Language (Feb 16, 2026)
//!
//! All force kernels are pure WGSL → WebGPU → Vulkan:
//! - Same code runs on NVIDIA, AMD, Intel
//! - Native f64 builtins (sqrt, exp) at full hardware speed
//! - No CUDA lock-in, no `OpenCL` fragmentation
//!
//! ## f64 Evolution
//!
//! - `yukawa_f64.wgsl`: All-pairs O(N²) with PBC minimum-image ✅
//! - `yukawa_celllist_f64.wgsl`: 27-neighbor cell-list O(N) ✅
//! - `lennard_jones_f64.wgsl`: Van der Waals with shifted potential ✅
//! - `coulomb_f64.wgsl`: Electrostatics with Ewald real-space ✅
//! - `morse_f64.wgsl`: Bonded interactions with energy ✅
//! - `harmonic_bond_f64.wgsl`: Standard covalent bond stretching ✅
//! - `harmonic_angle_f64.wgsl`: Three-body valence angle bending ✅
//! - `dihedral_f64.wgsl`: Periodic proper dihedral torsion ✅
//! - `improper_f64.wgsl`: Harmonic improper dihedral (planarity) ✅
//!
//! **Deep Debt**: All math in WGSL, zero unsafe
pub use BornMayerForce;
pub use BornMayerForceF64;
pub use CoulombForce;
pub use CoulombForceF64;
pub use ;
pub use ;
pub use ;
pub use ;
pub use LennardJonesForce;
pub use LennardJonesF64;
pub use MorseForce;
pub use MorseForceF64;
pub use YukawaForce;
pub use YukawaCellListF64;
pub use YukawaForceF64;