Somewhere along the line you might want to repeat after me: "P-one V-one over T-one equals P-two V-two over T-two".
Or,
P1.V1 | | P2.V2 |
----- | = | ----- |
T1 | | T1 |
(Grrr... inserting [hr]-tags into the middle makes the forum parser insert spurious [table] tags in unexpected places. And I
mean unexpected, because they weren't where I'd expect them to be if it was putting them in on the assumption that an HR was the end of one tagging and the start of another...)
Here P|V|Ts 1 and 2 are the "before" and "after". You might have to deal with components P
1a, P
1b, etc for the partiality of pressure, but maybe can assume the T
1xs are the same (or at least vary the same, unless you have stratification of both temperature and composition across the sample column of atmosphere), and the respective Vs of course are remarkably similar (again, unless stratification occurs)... But it allows you scope to add in the new gasses at any temperature you wish (or, more likely, having injected them under pressure[1], 'contribute' a now lower temperature for that proportion of the gas, which combined with the atmosphere you're injecting into means a new combined mean temperature can be applied to each component.
(Ninjaed twice thrice, and I see that GJ has given an alternate form of the above formula. As to the idealisation, I think there's enough other complications to make non-idealness a minor stumbling block on the way to exactitude. Assuming I read the problem correctly.)[1] With it being at a certain temperature under pressure, which becomes less as the volume decreases. The alternative being releasing them in a massive exothermic reaction, I suppose, in which case you can somewhat work out the net
rise in atmospheric temperature.