Experiment on piston cylinder, issues with Ideal gas law

In summary, a researcher is using three sensors to measure the pressure, temperature, and volume of a compressed gas in a piston-cylinder system. They are trying to calculate the gas-mass using the ideal gas law, but the results show that the mass appears to change during the compression phase and then slowly return to its initial value. The researcher suspects that the limitations of the ideal gas law may be the cause and is looking for alternative methods to calculate the gas-mass. They also mention that there may be an issue with the temperature sensor. Suggestions are made to use other equations of state, such as the compressibility factor, for more accurate results. The ultimate goal of the experiment is to detect gas leakage in a noisy environment.
  • #1
ida
5
0
Hello everyone,

I have an rather large piston-cylinder containing gas that is compressed when the piston extends. Using three sensors I am measuring the pressure, temperature and volume of the gas while I force the piston out using a winch. The system is closed and no gas is released or added to the system while doing the experiments.

From the data collected I am calculating the gas-mass using the ideal gas law (PV=mRsT). I was expecting the gas-mass to be more or less constant, however the results show that the mass seems to change during the gas-compression phase, and slowly crawl back to the initially calculated mass from before the gas-compression phase was started.

I've attached the state variables that i logged during my experiment. I started with the piston fully retracted, then pulled it out using a winch and kept it there for the rest of the experiment.

28v99g3.png


ionejp.png


2hftfgz.png


16kw5k6.png


Could someone, with a bit more brains than me, enlighten me as to why the mass is not constant, and maybe point me towards another approach to calculating the mass of the gas in the cylinder?

My own hunch tells me that it got something to do with the limitations of the ideal gas law, but my thermodynamics knowledge is not sufficient to fully understand it. :)
 
Physics news on Phys.org
  • #2
The mass is not changing. The real question is why does the measured pressure peak and then come back down again during the transient? Without knowing the details of the setup and the locations of the sensors, it's hard to say.

You are correct in saying that the ideal gas law is not appropriate for this situation, since the pressures are too high. You need to use the compressibility factor z (or other equation of state) to get a more accurate answer for the initial and final equilibrium states.

Chet
 
  • #3
Hi, Chet

Thanks for you input, I appreciate it very much.

The setup is quite simple - I'm measuring the piston position and calculating the gas volume from known dimensions. The pressure and temperature sensors are mounted in such a way that they are both in contact with the gas.

Regarding the pressure:
I've been wondering about that myself. I'm guessing heat is added to the gas during the compression, but again that is somewhat weird since the temperature is more or less constant through the whole experiment. (Isothermal process). Could heat be added to the system without the temperature rising? The weird thing is that the pressure has that peak and comes back down again without the volume changing at all.

Regarding alternate EOS:
I've tried calculating the mass using cubic EOS as well - only difference is slightly more mass - but the transient behaviour is still not stable and behaves as when calculated with the ideal gas law.
 
  • #4
Here's what I think is happening. I'm guessing there is something wrong with the temperature measurement. Here's why. The pressure increase at the peak seems to be consistent quantitatively with the increase one would calculate for adiabatic reversible compression for the imposed volume compression ratio. In adiabatic compression, the temperature of the gas rises. After the peak, I think what we are looking at is cooling back down to the cylinder temperature. If I am right, there should have been about a 15 degree temperature rise during the compression, followed by subsequent cooling.

I think regarding the EOS behavior, there are much better ways of modeling this than using a cubic equation of state.

Chet
 
  • #5
Hi

Thanks again :)

Calculating the temperature based on the compression ratio, adiabatic, leaves me at the same conclusion as you. There must be an issue with the temperature sensor as expected temperature should be around 40 deg. C.

[itex]T_2=T_1(V_1/V_2)^(\gamma-1)[/itex]

With T_1 = 18.6 C and V1 = 0.0176, V2 = 0.015 and [itex]\gamma[/itex] = 1.4. I get T2 = around 38 C or 311 K.

Using the theoretical temperature, I get a smoother curve for the mass. I'm guessing that the initial temperature is somewhat wrong as well - causing the theoretical temperature to start out a bit wrong as well.

1zxkygn.png
Regarding the EOS - could you enlighten me as to other viable approaches to this? The clue here is to detect leakage of gas in a relativly noisy environment, and I thought if the mass would stay rather stable using a EOS, I could simply detect it when the mass has drifted too much.
 
  • #6
ida said:
Hi

Thanks again :)

Calculating the temperature based on the compression ratio, adiabatic, leaves me at the same conclusion as you. There must be an issue with the temperature sensor as expected temperature should be around 40 deg. C.

[itex]T_2=T_1(V_1/V_2)^(\gamma-1)[/itex]

With T_1 = 18.6 C and V1 = 0.0176, V2 = 0.015 and [itex]\gamma[/itex] = 1.4. I get T2 = around 38 C or 311 K.

I would only apply this equation to getting the peak temperature. After the peak, the gas is almost certainly cooling, and you have no idea how the temperature is varying with time.
Using the theoretical temperature, I get a smoother curve for the mass. I'm guessing that the initial temperature is somewhat wrong as well - causing the theoretical temperature to start out a bit wrong as well.
Please don't say that the mass is varying. The experimental data give no justification for making this assumption. In fact, they seem to indicate that the mass did not vary (comparing the initial and final states).

1zxkygn.png


Regarding the EOS - could you enlighten me as to other viable approaches to this? The clue here is to detect leakage of gas in a relativly noisy environment, and I thought if the mass would stay rather stable using a EOS, I could simply detect it when the mass has drifted too much.
No equation of state is going to be extremely accurate for your purposes. But, if I had to select an equation of state, I would be inclined to choose "corresponding states" compressibility factor (z factor) plots or functional fits. There might also be experimental data available on N2 under these conditions, and there certainly should be data on air (which is 80% N2, which should be adequate).
 
  • #7
Chestermiller said:
I would only apply this equation to getting the peak temperature. After the peak, the gas is almost certainly cooling, and you have no idea how the temperature is varying with time.

Assuming the process is isentropic, could I not calculate the temperature using: (?)
[itex]T_2/T_1 = (P_2/P_1)^{{\gamma-1}/\gamma}[/itex]

Chestermiller said:
Please don't say that the mass is varying. The experimental data give no justification for making this assumption. In fact, they seem to indicate that the mass did not vary (comparing the initial and final states).

I'm sorry, what I actually meant was the calculations did not fluctuate as much by using a theoretical temperature based off the pressure, instead of the measured temperature while calculating the mass.

Chestermiller said:
No equation of state is going to be extremely accurate for your purposes. But, if I had to select an equation of state, I would be inclined to choose "corresponding states" compressibility factor (z factor) plots or functional fits. There might also be experimental data available on N2 under these conditions, and there certainly should be data on air (which is 80% N2, which should be adequate).

So basically Peng- Robinson EOS could provide a better result - provided I get my temperature measurements sorted?
 
  • #8
From time t = 900 on, try using the relationship T = 291+20exp(-(t-900)/300) for the temperature, and see what you get for the predicted mass.

Chet
 
  • #9
Hi Ida. Welcome to the board. The compressibility factor of nitrogen at the highest pressure (~ 68 barg) and a temperature of ~ 18 C is 0.994 and at the lowest pressure and temperature you show is around 0.993 so the variation from ideal gas is less than 1% and the difference you would calculate between the two states based on the variation between ideal gas equation and actual is only 0.1%. So the problem isn't with using the proper equation of state. The issue seems to be as pointed out, the temperature measurement is not capturing the bulk temperature of the gas.

I suspect the temperature probe may be closely following the vessel wall itself, not the gas inside. If you have a temperature probe on the vessel wall, and I assume this is steel or metal of some sort and relatively thick because of the pressure involved, then that metal has a tremenous amount of thermal mass. The amount of energy being put into the gas is small compared to the thermal mass of the vessel. To obtain a proper temperature reading of the gas is not easy because it will vary considerably from some location close to the vessel wall to some location in the center, furthest from the wall.

There is another problem though. From the trace of the pressure graph, you can make some inference of the temperature. Long after the pressure is changed, the pressure trace seems to level out indicating the temperature should be coming close to equilibrium. But even after that happens, there still seems to be some residual difference between the mass before and after the pressure change. There could be a very small error with the measurement of pressure or volume. Of course, you're only looking for an error between 1.13 kg before compression to 1.15 kg after compression or around 1.8% error. You won't find that much error in the calculation because of the assumption regarding an ideal gas. This small amount of error that appears after the system comes to thermal equilibrium appears to be caused by something else. Perhaps volume or pressure measurement. Regardless, the variation of less than 2% is relatively small.
 
  • Like
Likes Chestermiller
  • #10
Hi,

Chestermiller said:
From time t = 900 on, try using the relationship T = 291+20exp(-(t-900)/300) for the temperature, and see what you get for the predicted mass.

I had to change the initial conditions and the delta temperature in the heat transfer equation to make them fit the dataset I have. :)

4ic484.png


Looks like you are indeed very correct in your assumptions that the temperature is the culprit. Using your heat transfer model, the calculated mass looks very stable.

Goest:
Q_Goest said:
Hi Ida. Welcome to the board.
Hi, and thank you. I'm a long time silent reader :)

You are absolutly right regarding the temperature probe - it is indeed screwed into the top of the cylinder, surrounded by very thick metal walls. From the looks of it I need a more appropriate sensor for measuring these temperature variations. The PT100 I'm using now has a slow risetime (4-8s), and is also in contact with both the metal walls and the gas obviously, thanks to you guys, gives me totally useless data for the task I'm trying to achieve.

Regarding the initial vs. final mass:
I was doing several of these experiments, and I think that the issue here is once again the temperature. I removed the tension from the winch right before this experiment, letting the piston move into the cylinder again, and thus expanding the gas volume and ultimatly cooling the gas. I'm guessing I did not wait long enough, so the temperature was still going upwards while I started this experiment.
 

1. What is the purpose of conducting an experiment on a piston cylinder?

The purpose of this experiment is to study the behavior of gases under different conditions, specifically when confined in a cylinder with a movable piston. This setup allows for the manipulation of pressure, volume, and temperature, which are important factors in the Ideal Gas Law.

2. What is the Ideal Gas Law and how does it relate to this experiment?

The Ideal Gas Law is a mathematical equation that describes the relationship between pressure, volume, and temperature of an ideal gas. In this experiment, the behavior of the gas is compared to the predictions of the Ideal Gas Law to analyze any discrepancies and identify potential issues.

3. What are some common issues that can arise when conducting this experiment?

One common issue is the presence of impurities or non-ideal behavior in the gas being used. This can affect the accuracy of the results and require additional calculations to correct for. Another issue could be leaks in the apparatus, which can alter the pressure and volume measurements.

4. How can these issues be addressed and minimized in the experiment?

To address impurities, careful selection and purification of the gas is necessary. To minimize the effects of non-ideal behavior, corrections can be made using the Van der Waals equation. To prevent leaks, the apparatus should be regularly checked for any cracks or defects and properly sealed.

5. What are some potential sources of error in this experiment?

Aside from the aforementioned issues, other sources of error could include human error in taking measurements or manipulating the equipment, inaccuracies in the instruments used to measure pressure and volume, and external factors such as changes in temperature and atmospheric pressure. It is important to carefully control and monitor these factors to reduce error in the experiment.

Similar threads

  • Thermodynamics
Replies
8
Views
381
Replies
56
Views
3K
Replies
22
Views
2K
Replies
0
Views
615
  • Mechanical Engineering
Replies
8
Views
1K
Replies
4
Views
740
Replies
8
Views
1K
Replies
5
Views
865
Replies
7
Views
906
  • Thermodynamics
Replies
20
Views
1K
Back
Top