RT-TDDFT driver¶
The RT-TDDFT driver couples MaxwellLink to the Psi4 quantum chemistry package
for real-time time-dependent density functional theory propagation. It is
implemented by maxwelllink.mxl_drivers.python.models.RTTDDFTModel,
which supports delta-kick excitations, automatic sub-stepping, and optional
checkpoint/restart workflows.
Note
Electronic dynamics are propagated through
where the Kohn–Sham matrix \(\mathbf{F}^{\mathrm{e}}(t)\) is rebuilt self-consistently from the evolving density and transformed between orthogonal and non-orthogonal bases each step. After every integration the driver reports the dipole current through
providing the light–matter source term for the Maxwell solver. The nuclei are assumed fixed during the simulation.
Requirements¶
psi4available in the driver environment (Psi4 with Python bindings).The molecular geometry provided via an XYZ file whose second line specifies charge and multiplicity (e.g.
0 1).
Usage¶
Socket mode¶
mxl_driver --model rttddft --port 31415 \
--param "molecule_xyz=${PWD}/tests/data/hcn.xyz, functional=PBE0, \
basis=cc-pVDZ, dt_rttddft_au=0.04, delta_kick_au=1e-2, \
delta_kick_direction=xyz, electron_propagation=pc, \
threshold_pc=1e-6, memory=8GB, num_threads=4, \
checkpoint=false, restart=false"
Non-socket mode¶
mxl.Molecule(
driver="rttddft",
driver_kwargs={
"molecule_xyz": "tests/data/hcn.xyz",
"functional": "PBE0",
"basis": "cc-pVDZ",
"dt_rttddft_au": 0.04,
"delta_kick_au": 1e-2,
"delta_kick_direction": "xyz",
"electron_propagation": "pc",
"memory": "8GB",
"num_threads": 4,
},
# ...
)
Parameters¶
Name |
Description |
|---|---|
|
Computational backend. Currently only |
|
Path to the geometry file. Relative paths are resolved on the driver side. Required. |
|
Psi4 functional label ( |
|
Psi4 basis set label ( |
|
Electronic time step in atomic units. Sub-stepping is applied when this
is smaller than the FDTD step. Default: |
|
Magnitude of the initial delta-kick applied along the selected axes
(a.u.). Default: |
|
Axes for the delta-kick ( |
|
Psi4 memory allocation string (e.g. |
|
Number of threads assigned to Psi4. Default: |
|
Electronic propagator: |
|
Convergence threshold for the predictor–corrector scheme. Default:
|
|
When |
|
Psi4 quadrature grid label ( |
|
Number of radial grid points (negative values select Psi4 defaults).
Default: |
|
Number of angular grid points (negative values select Psi4 defaults).
Default: |
|
When |
|
When |
|
When |
Returned data¶
time_au– Simulation clock in atomic units.energy_au– Total electronic energy from Psi4.mux_au,muy_au,muz_au– Time-dependent dipole components in atomic units.