ASE driver¶
The ASE driver embeds MaxwellLink in the Atomic Simulation Environment, enabling Born–Oppenheimer molecular dynamics
with any ASE-compatible calculator. The implementation is provided by
maxwelllink.mxl_drivers.python.models.ASEModel.
Note
During the simulation, the ASE driver receives the electric field, applies
and returns
where \(Q_i\) and \(\mathbf{v}_i\) are the partial charge (defined in charges in Parameters) and velocity of atom
\(i\).
Requirements¶
ase(install viaconda install -c conda-forge ase) for the Atomic Simulation Environment.The desired calculator backends (Psi4, ORCA, DFTB+, …) must be installed and discoverable by ASE.
Usage¶
Socket mode¶
mxl_driver --model ase --port 31415 \
--param "atoms=${PWD}/tests/data/hcn.xyz, calculator=psi4, \
calc_kwargs=method=b3lyp,basis=sto-3g, \
charges=[1.0 -1.0 0.0], temperature_K=300, \
recompute_charges=false"
Non-socket mode¶
mxl.Molecule(
driver="ase",
driver_kwargs={
"atoms": "tests/data/hcn.xyz",
"calculator": "psi4",
"calc_kwargs": "method=b3lyp,basis=sto-3g",
"charges": "[1.0 -1.0 0.0]",
"temperature_K": 300.0,
},
# ...
)
Parameters¶
Name |
Description |
|---|---|
|
ASE |
|
Name of the ASE calculator to wrap ( |
|
Comma-separated |
|
Optional per-atom charges specified as a space-separated list in square
brackets, e.g. |
|
When |
|
Initial temperature passed to |
|
When |
|
When |
|
When |
Returned data¶
time_au– Simulation time in atomic units.energy_au– Electronic energy returned by the wrapped ASE calculator.mux_au,muy_au,muz_au– Molecular dipole components in atomic units half a time step after the force evaluation time.mux_m_au,muy_m_au,muz_m_au– Molecular dipole components in atomic units at the force evaluation time.temperature_K– Instantaneous temperature reported by ASE.
Notes¶
Provide either
chargesor setrecompute_charges=true; the driver raises an error if no charges are available.Calculator-specific options can be supplied via
calc_kwargs=...or as additionalkey=valuepairs in--param; unrecognised tokens are forwarded to the calculator constructor.