Expand description
Molecular orbital evaluation on 3D grids (GPU + CPU).
Computes ψ_i(r) = Σ_μ C_{μi} φ_μ(r) on a regular 3D grid. Each grid point can be evaluated independently — ideal for GPU.
GPU path: dispatches ORBITAL_GRID_SHADER via wgpu. CPU path: direct triple-nested loop (always available as fallback).
Structs§
- Grid
Params - 3D grid parameters.
- Orbital
Grid - Result of orbital grid evaluation.
Constants§
- ORBITAL_
GRID_ SHADER - WGSL compute shader for orbital grid evaluation.
Functions§
- evaluate_
density_ cpu - Evaluate electron density ρ(r) = Σ_{μν} P_{μν} φ_μ(r) φ_ν(r) on a 3D grid.
- evaluate_
orbital_ cpu - Evaluate orbital on CPU (always available).
- evaluate_
orbital_ with_ report - Evaluate a molecular orbital on a 3D grid with explicit backend reporting.