Skip to content

IR calculation with Machine Learning Potential #32

Description

@mind-scraper

Dear Developers,

Thank you for providing the sscha packages.
I want to calculate the IR spectra of a molecule adsorbed on a metal surface. I use NequIP+LES package (https://github.com/ChengUCB/NequIP-LES/tree/main) that can predict the Born effective charge but not the dielectric tensor. I tried similar steps as in IR Example (https://sscha.eu/Tutorials/tutorial_05_ramanir/), but the code complained that the dielectric tensor is not available.

lanczos = DL.Lanczos(ensemble)
AssertionError: Error, effective charges provided, but not the dielectric tensor.

Disabling the dielectric tensor (lo_to_split=None) gives another error

lanczos = DL.Lanczos(ensemble, lo_to_split=None)
lanczos.ignore_v3 = True
lanczos.ignore_v4 = True

lanczos.init()

polarization = np.array([1,0,0]) # Polarization of light
lanczos.prepare_ir(pol_vec = polarization)

n_iterations = 1000
lanczos.run_FT(n_iterations)
Error, you must initialize a perturbation to start the Lanczos. Use prepare_raman/ir or prepare_perturbation before calling the run method.

Are there any workarounds to fix this?

With best regards,
Samuel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions