Mxl Driver Lammps
This skill should be used when users want to couple MaxwellLink to LAMMPS via the bundled `fix mxl`, including build/install and socket connection patterns.
Install
npx skills add TaoELi/MaxwellLink --skill mxl-driver-lammpsgit clone --depth 1 https://github.com/TaoELi/MaxwellLink.git /tmp/MaxwellLink
mkdir -p ~/.claude/skills
cp -r /tmp/MaxwellLink/skills/mxl-driver-lammps ~/.claude/skills/mxl-driver-lammpsPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# LAMMPS driver (`fix mxl`)
## Confirm prerequisites
- Build a LAMMPS binary that includes the MaxwellLink fix.
- Preferred: run `mxl_install_lammps` to build an `lmp_mxl` binary.
## Configure the socket hub
- Create a TCP or UNIX socket hub on the MaxwellLink (EM) side:
- `hub = mxl.SocketHub(host="0.0.0.0", port=31415, timeout=60.0)`
## Configure LAMMPS input
- Add the fix to the relevant atom group:
- `fix 1 all mxl <host> <port> [unix] [reset_dipole]`
## Notes
- Ensure every atom has a charge; otherwise the coupling force is zero.
- Use `skills/mxl-hpc-slurm/SKILL.md` when the hub and LAMMPS run on different nodes.
- Prefer scaffold template: `skills/mxl-project-scaffold/assets/templates/slurm-meep-lammps-tcp`
- Common SLURM pattern:
- Main job writes `tcp_host_port_info.txt` (host on line 1, port on line 2).
- Driver job patches a template input and runs LAMMPS:
- `cp in_mxl.lmp in.lmp`
- `sed -i -e "s/HOST/$HOST/g" in.lmp && sed -i -e "s/PORT/$PORT/g" in.lmp`
- `srun -n $SLURM_NTASKS lmp_mxl -in in.lmp`
- Read full details in `docs/source/drivers/lammps.rst`.Details
- Skill name
mxl-driver-lammps- Repository
- TaoELi/MaxwellLink
- Path
skills/mxl-driver-lammps/SKILL.md- License
- GPL-2.0
- Repo updated
- 17 November 2026
FAQ
What does the Mxl Driver Lammps skill do?
This skill should be used when users want to couple MaxwellLink to LAMMPS via the bundled `fix mxl`, including build/install and socket connection patterns.
How do I install the Mxl Driver Lammps skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add TaoELi/MaxwellLink --skill mxl-driver-lammps. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Mxl Driver Lammps popular?
It lives in TaoELi/MaxwellLink, which has 9 GitHub stars and 5 forks.
Related skills
Mxl CLI
9TaoELi/MaxwellLink
This skill should be used when users need to initialize, clean, or configure MaxwellLink workspaces using the mxl command family.
Mxl Core
9TaoELi/MaxwellLink
This skill should be used when users need the canonical MaxwellLink workflow, including socket vs embedded coupling, units/time handling, and MPI/HPC invariants.
Mxl Driver Ase
9TaoELi/MaxwellLink
This skill should be used when users want to run the ASE driver for classical/BOMD dynamics in MaxwellLink and need charge conventions and socket/embedded invocation patterns.
Mxl Driver Psi4 Rtehrenfest
9TaoELi/MaxwellLink
This skill should be used when users want to run the Psi4 RT-Ehrenfest driver (rtehrenfest) with MaxwellLink and need parameters, charge conventions, and socket/embedded invocation patterns.
Mxl Driver Dftbplus
9TaoELi/MaxwellLink
This skill should be used when users want to couple MaxwellLink to the MaxwellLink-aware DFTB+ fork via the `MaxwellLinkSocket` block, including real-time Ehrenfest dynamics, VelocityVerlet Born-Oppenheimer MD, dipole-derivative choices, build/install, and TCP/UNIX socket connection patterns.
Mxl Driver Qutip
9TaoELi/MaxwellLink
This skill should be used when users want to run the QuTiP molecular driver (preset TLS or custom Hamiltonians) in MaxwellLink and need correct parameter passing for socket or embedded mode.
Browse the most popular Claude skills, all other skills, or write your own with the skills generator.