We all know that for a single charged particle, we can derive the Lagrangian starting from Lorentz law of force:
$$ \mathbf{F}=q(\mathbf{E}+\mathbf{v}\times\mathbf{B}). $$
and by using the definition of generalized potential functions, you know that you need a function $U$ that satisfies:
$$ F_{k}=-\frac{\partial U}{\partial q_{k}}+\frac{d}{dt}\left(\frac{\partial U}{\partial\dot{q}_{k}}\right) $$
And the function $U$ below satisfies the condition: $$ U=q \phi-\frac{q}{c}\left(\mathbf{v}\cdot\mathbf{A}\right). $$
If I try to generalize that for a moving distribution of charge we will have the following equation for Lorentz force ($\rho$ is the charge density):
$$ \mathbf{F}=\int dV\rho(x,y,z,t)(\mathbf{E}+\mathbf{v}\times\mathbf{B}) $$
and doing some algebra I can get to
$$ \mathbf{F}=\int dV\rho(x,y,z,t)(\nabla(\phi-\mathbf{v}\cdot\mathbf{A})-\frac{d\mathbf{A}}{dt}). $$
On the single particle case we can reduce that to the second equation and then we can find the potential $U$, but in this case we cannot do that because charge density varies with time (and position!). I feel that I could find some answer on fluid dynamics, but I'm thinking on that problem for quite a few days and I can't find a answer.
In molecular dynamics we use what is called the "length Gauge", invented by physicist Maria Goppert-Mayer in 1930. In her article, she shows how to derive the equations for bounded electrons interacting with a laser beam. However, a molecule (or a pair of scattered heteronuclear atoms that will collide) cannot be described by a mere one-particle Lagrangian, and for sake of generalization I thought at consider the two atoms classically as a continuous charge distribution, and this is why I got to this problem. Maybe it's the wrong way to deal with that... lol
How would you guys proceed? Can we derive a general potential $U$ for a continuous charge distribution under a electromagnetic field? Could be easier to try to describe the atoms colliding by using discrete coordinates (for the nuclei and the electrons)?