soft_sphere_pair¶
- torch_sim.models.soft_sphere.soft_sphere_pair(dr, zi, zj, sigma=1.0, epsilon=1.0, alpha=2.0)[source]¶
Soft-sphere repulsive pair energy (zero beyond sigma).
V(r) = ε/α * (1 - r/σ)^α for r < σ, else 0
- Parameters:
- Returns:
Pair energies, shape [n_pairs].
- Return type: