em85,
There's more than one way to skin a cat - or to "roll your own" solution technique.
You got a big hint with IRstuff's post. If you have access to a local library, go search using the term "interior ballistics". This is a branch of mechanical engineering that has been studied for more than 500 years, and some stunningly precise approximations have probably been developed for the problem you described. Most of that work was accomplished without (gasp!) a PC, or even (horror!) an electronic calculator.
I recall at least one good textbook from my Aero 401 course, title I belive was "Gas Dynamics", by Liepmann and Roshko, which had a solution for the pressure wave created by step-function motion of a piston in a semi-infinite tube. I think the pub. date was ca. 1960. I'd give you the page numbers, but the book is in a box at home. Also look up papers regarding shock tube dynamics. You should, using such resources, be able to at least put a bounding limit on the energy expended in expelling the air in the barrel ahead of the projectile. Good luck.