In fact, it probably is. Ship-mount lasers and grasers are almost certainly FELs, although TTBOMK this has never been confirmed, which means that they can accelerate electrons, at least, to GeV energies with ridiculous beam currents - and do it in something that fits inside the hull, to boot. In fact, given the physics, the power in the particle beams is 100-1000x the output of the weapons as radiation. Making the accelerator a pretty nasty weapon in its own right - except for 2 problems.
First, as noted, any massive particle is going to be strongly affected by the sidewalls. The more uniform the beam, the easier it will be to get it through, but these are not photons, and the beam isn't going to be [not is difficult to do, but not doable in principle] coherent, meaning that it will always disperse as it enters the side wall, not just bend the way photons do. Although, come to think of it, I would be designing the sidewalls with non-uniform fields so that there would be dispersion even with fully-coherent photon beams, an effect that will be amplified with particle beams.
Second, you have to used charged particles in the accelerator, and a charged beam will bloom as soon as it's out of the focusing fields. Probably useless as a weapon in less than 50,000km. There are a couple of ways of generating neutral beams, both of which involve inserting objects into the beam path. And those items will have to be replaced for every shot, require hyper-precise construction and placement, and even with that will seriously impair both beam energy and dispersion.
Jonathan_S wrote:Except that sidewalls aren't infinitely powerful; if you hit them with enough force the generators overload and that section of sidewall goes down (at least temporarily)
We know (from the IFF armor essay) that an intermediate step between contact nukes and laserheads was the standoff sidewall "burner" where grav lenses focused the detonation of a nuke at the sidewall from modest standoff range. That wouldn't necessarily damage the ship but could blow out the sidewall leaving the target more vulnerable to follow up attacks.
But I don't know if Honorverse tech is up to generating a particle beam of sufficient power to do the same.