Skip to content

feat: add infrared oscillator strengths and dielectric response - #462

Merged
Atilaac merged 1 commit into
mainfrom
feat-IR-oscillator-strength
Nov 11, 2026
Merged

Atilaac merged 1 commit into
mainfrom
feat-IR-oscillator-strength

Conversation

@Atilaac

@Atilaac Atilaac commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds the infrared response to the vibrational package, by both existing routes:

  • Harmonic: per-mode effective charges and oscillator strengths from the dynamical-matrix eigenvectors, then a damped-oscillator dielectric function.
  • MD: dielectric function from the charge-current autocorrelation of an NVE trajectory.

Both give the complex ε(ν), absorption coefficient, reflectivity, loss function, and partial contributions by group, including cross terms.

Usage

Opt-in on the existing workflows; results are returned under "infrared" (None when off):

  • harmonic_vdos_simulation(..., infrared=True, charges=None, eps_inf=1.0, ir_damping_thz=0.5)
  • vdos_simulation(..., infrared=True, charges=None, eps_inf=1.0)

Charges are read from the potential by default (charges_from_potential) and can be overridden with per-atom scalars (N,) or Born tensors (N, 3, 3). Missing or invalid charges raise before LAMMPS runs.

  • With fixed charges, peak positions are meaningful but intensities are qualitative: in the SiO2 check the Si–O stretch band carries only 12% of the strength. This is documented as a rigid-ion limitation.
  • ir_damping_thz=0.5 is only a numerical broadening.

@Atilaac Atilaac added type: feature Changelog: new feature or performance improvement → bumps minor version integration Tag a PR with this to run integration tests labels Nov 11, 2026
@Atilaac Atilaac mentioned this pull request Nov 11, 2026
@codecov

codecov Bot commented Nov 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Atilaac Atilaac added the builddocs label to activate building docs label Nov 11, 2026
@Atilaac
Atilaac merged commit b40b944 into main Nov 11, 2026
13 checks passed
@Atilaac
Atilaac deleted the feat-IR-oscillator-strength branch November 11, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

builddocs label to activate building docs integration Tag a PR with this to run integration tests type: feature Changelog: new feature or performance improvement → bumps minor version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant