TimoD said:
Ok great I think I understand all that, I just didn't distribute the R into the brackets.
Just to clarify our bounds of integration, why do we use initial and final mass of air in the tank when we are looking at entropy generated in the air that passed through the valve?
Let's review what's happening. Entropy is being generated as the air as it passes through the valve, and each parcel of air that leaves the value carries away its share of the entropy that was generated. The entropy change for each of the parcels of air is associated with its change in pressure (since its temperature doesn't change as it passes through the valve, i.e., constant delta h). However, since the temperature of the air that enters the valve is changing during the process, the temperatures of all the parcels that exit the value are different (even though their final pressures are the same). The total entropy generated in the valve is equal to the sum of the entropy changes of all the parcels of air that have left the valve during the process, as determined by their varying inlet pressure and (constant) exit pressure (and their individual masses).
Now, with regard to our use of the mass of air remaining in the tank, we use it to keep track of how much mass is contained in each of the parcels of air that pass through the valve. If m(t) is the amount of gas in the tank at any time, then the amount of mass that passes through the valve between time t and t + Δt is equal to m(t) - m(t+Δt). We need to sum up over all the parcels of mass that pass through the valve between the start and end of the process to get the total entropy change. We are expressing the total entropy change in terms of p
out, and, once we can do that, we can set it equal to the total entropy generated in the valve according to the problem statement, and solve for p
out.
We need to figure out how to do the integral in the equation for ΔS. (That integral is independent of p
out.) I tried doing the integral analytically, but was only able to do it for the case in which the heat capacity is constant. So, instead of spending much more time on this problem, we can do it numerically, with very little effort.
Suppose I choose a value of T
in for the air entering the valve at time t during the process. This temperature is somewhere between 450 K and 370 K. You can immediately determine the value of the integrand in our equation at this temperature, since it is a function only of T
in. You can then use the equation in post #17 to get the pressure p
in at that time. Then, you can use your equation in post #9 to get the mass in the tank at that time. So you have the value of the integrand, and you have the value of m. By choosing a sequence of values of T
in, you can make a plot of the value of the integrand as a function of the integration variable m. The area under this curve will be the value of the integral. Rather than counting boxes in a graph, however, it is simple to do the integration numerically.
Let me get you started. Make a little table (say on a spreadsheet) with the column headings T
in, (s
in-s
0), p
in, and m. The first entry in the T
in column will be 450, and the last entry will be 370. We will use 10 equal increments of temperature, with the increment equal to 8 degrees, so the second entry in the column will be 442. All together there will be 11 entries in the column. Now, use your entropy table and the equations in posts #17 and #9 to fill in the rest of the columns. This should not take very long.
When you complete the table, please get back with me, and I'll tell you how to do the integration numerically.
Thanks for your diligence and your patience.
Chet