# How does the entropy of a system change when the amount of substance changes?

I am thinking of a closed system consisting only of an ideal gas. Suddenly, the amount of substance of the gas changes. No other property of the system shall change.

How does this affect the entropy of the system? How can I calculate the change in entropy?

-
This is not a reasonable question--- does the new gas come in at zero temperature? At what pressure? You can't answer this question as it is stated. – Ron Maimon Jun 14 '12 at 0:46

Entropy is an extensive property. If you double the size of your system but keep the conditions within it the same then you will double the entropy. You can't do this without changing other properties of the system because lots of things, e.g. free energy, are also extensive.

If you keep the size of your system constant but pack in twice as much gas then the entropy will change for two reasons, firstly because you have more gas, but secondly because you've changed the pressure and/or temperature. You need to specify the state of your system after addition of the gas to work out the change in the entropy.

-