Entropy of a gas leaking out of a tank [closed]

There is some super-heated $NH_3$ in an isolated tank with initial pressure and temperature of $1600 \ kPa$ and $50^{\circ} C$ respectively. Gas leaks out from a valve on tank very slowly such that some of gas exits reversibly. In the final state, pressure is $1400 \ kPa$ and $NH_3$ is still super-heated.

The problem says that using mass and entropy balance show that $s_1=s_2$, where $s$ is the molar entropy of gas in tank.

Using the total entropy balance for inside of tank as control volume, we get

$$(m_2 s_2 -m_1 s_1)_{C.V.}=-\dot{m_e} s_e \Delta t$$

What is $s_e$ now? It's not constant! How can I reduce this equation to $s_2=s_1$.

closed as off-topic by sammy gerbil, Kyle Kanos, Jon Custer, Yashas, Rory AlsopDec 10 '17 at 23:09

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "Homework-like questions should ask about a specific physics concept and show some effort to work through the problem. We want our questions to be useful to the broader community, and to future users. See our meta site for more guidance on how to edit your question to make it better" – sammy gerbil, Kyle Kanos, Jon Custer, Yashas, Rory Alsop
If this question can be reworded to fit the rules in the help center, please edit the question.

• As @Rishabh Jain points out, the equation should read $$\left(\frac{d(ms)}{dt}\right)_{C.V.}=-\dot{m}_es$$where $$\dot{m}_e=-\frac{dm}{dt}$$ – Chet Miller Dec 8 '17 at 13:10
• @Chester Miller : For the first equation, why is the right side specific entropy the same as that on left side? – user115350 Dec 8 '17 at 18:01
• That is the current value of the specific entropy in the tank (value leaving the tank, assuming tank is well-mixed). – Chet Miller Dec 8 '17 at 18:08
• Thanks for the information :) Sir, take a look at my new question? physics.stackexchange.com/questions/373318/… – Ghartal Dec 8 '17 at 18:40
• @ChesterMiller : Thanks. Now why, in the problem, it said "Gas leaks out from a valve on tank very slowly such that some of gas exits reversibly"? Seems that this wouldn't change the first equation. – user115350 Dec 8 '17 at 19:40