I'm trying to model how an object of mass M will accelerate for a given pressure. I'm assuming that no gas escapes and that the temperature doesn't change, making both R and T constant. Here's my work so far:
$W=nRT * ln(\frac{V2}{V1})$
$W = F * ΔD$
$F * ΔD = nRT * ln(\frac{V2}{V1})$
$F = \frac{nRT * ln[\frac{D2}{D1}]}{ΔD}$
$F = M * A$
$A = \frac{nRT * ln[\frac{D2}{D1}]}{ΔD * M}$
This should be the acceleration as the mass leaves the barrel, and as D2 is moved closer to D1, the acceleration at each point should be given. This is supported by the fact that as D2 approaches D1, the acceleration approaches 0. Does this equation check out?
Thanks!