  In a previous paper, we developed a new particle-in-cell method for the
Vlasov-Maxwell system in which the electromagnetic fields and the equations of
motion for the particles were cast in terms of scalar and vector potentials
through a Hamiltonian formulation. This paper extends this new class of methods
by focusing on the enforcement the Lorenz gauge condition in both exact and
approximate forms using co-located meshes. A time-consistency property of the
proposed field solver for the vector potential form of Maxwell's equations is
established, which is shown to preserve the equivalence between the
semi-discrete Lorenz gauge condition and the analogous semi-discrete continuity
equation. Using this property, we present three methods to enforce a
semi-discrete gauge condition. The first method introduces an update for the
continuity equation that is consistent with the discretization of the Lorenz
gauge condition. The second approach we propose enforces a semi-discrete
continuity equation using the boundary integral solution to the field
equations. The third approach introduces a gauge correcting method that makes
direct use of the gauge condition to modify the scalar potential and uses local
maps for both the charge and current densities. The vector potential coming
from the current density is taken to be exact, and using the Lorenz gauge, we
compute a correction to the scalar potential that makes the two potentials
satisfy the gauge condition. We demonstrate two of the proposed methods in the
context of periodic domains. Problems defined on bounded domains, including
those with complex geometric features remain an ongoing effort. However, this
work shows that it is possible to design computationally efficient methods that
can effectively enforce the Lorenz gauge condition in an non-staggered PIC
formulation.
