Calculating Pressure Change Filling Gas Cylinders

In summary: R \right) \left( k - m_{600}T_{600} \right) = \frac{R}{{V\llap{-}}_{50} }\left( k - \frac{m_{50}}{600}T_{600} \right)$$And substituting for ##m_{600}T_{600}##:$$...\left( R \right) \left( k - \frac{m_{50}}{600}T_{600} \right) = \frac{R}{{V\llap{-}}_{50} }\left( k - \frac{m_{50}}{600} \right)
  • #1
fonz
151
5
I want to work out how to calculate the pressure change in a gas cylinder if it is used to fill another cylinder to a lower pressure.

For example, if a 50 litre gas cylinder initially at 200 bara is used to fill a 600 litre cylinder from atmospheric pressure to 1.5 Bara. What would the change in pressure be in the 50 litre cylinder?

My thoughts are that the temperature in both cylinders will change with pressure but that complicates the process. The number of moles of gas must be the conserved quantity in the process and assuming the process is adiabatic will presumably simplify the solution.

Any help would be very appreciated.
 
Science news on Phys.org
  • #2
Wouldn't you let the temperatures equalize for a while?
 
  • #3
Are you familiar with the open system (control volume) version of the 1st law of thermodynamics?
 
  • #4
fonz said:
assuming the process is adiabatic will presumably simplify the solution.
Assuming the process is isothermal will presumably simplify the solution. Are you sure you want adiabatic assumption (there are varying opinions of what some may consider simple)? Maybe an analysis for each?
 
  • Like
Likes russ_watters
  • #5
Are you willing to assume that we are dealing with an ideal gas, or do you want the solution for the case of a real non-ideal gas?
 
  • #6
Thanks to everyone who has commented. I've responded to your comments below.
russ_watters said:
Wouldn't you let the temperatures equalize for a while?
I think that I can work out what the answer would be if the process was isothermal but I would like to compare the results for this specific example.

Chestermiller said:
Are you familiar with the open system (control volume) version of the 1st law of thermodynamics?
I wasn't until now. I've searched for some examples and realised that it's more complicated than the typical closed system version. I noticed that the open system energy balance equations use the gas velocity as well which sounds even more complicated to have to factor in since the velocity will presumably change if the flow is throttled through a valve or regulator.

erobz said:
Assuming the process is isothermal will presumably simplify the solution. Are you sure you want adiabatic assumption (there are varying opinions of what some may consider simple)? Maybe an analysis for each?
I think that I have calculated the pressure change in the isothermal case and my result is shown below (critique would be appreciated). I'd like to compare it to the adiabatic case.

Assuming that mass is conserved and the process is isothermal, from Boyle's Law:

$$V_1 \Delta p_1 = V_2 \Delta p_2$$
Where 1 and 2 denote the 50L and 600L cylinders.

$$\Delta p_1 = \frac {V_2}{V_1} \Delta p_2$$
$$\Delta p_1 = \frac {600}{50} (1.5 - 1) = 6 Bar$$

Chestermiller said:
Are you willing to assume that we are dealing with an ideal gas, or do you want the solution for the case of a real non-ideal gas?
I think that it would be valuable to recognise how the solution would need to be reformulated if it were a non-ideal gas.
 
Last edited:
  • #7
fonz said:
Thanks to everyone who has commented. I've responded to your comments below.

I think that I can work out what the answer would be if the process was isothermal but I would like to compare the results for this specific example.I wasn't until now. I've searched for some examples and realised that it's more complicated than the typical closed system version. I noticed that the open system energy balance equations use the gas velocity as well which sounds even more complicated to have to factor in since the velocity will presumably change if the flow is throttled through a valve or regulator.I think that I have calculated the pressure change in the isothermal case and my result is shown below (critique would be appreciated). I'd like to compare it to the adiabatic case.

Assuming that mass is conserved and the process is isothermal, from Boyle's Law:

$$V_1 \Delta p_1 = V_2 \Delta p_2$$
Where 1 and 2 denote the 50L and 600L cylinders.

$$\Delta p_1 = \frac {V_2}{V_1} \Delta p_2$$
$$\Delta p_1 = \frac {600}{50} (1.5 - 1) = 6 Bar$$I think that it would be valuable to recognise how the solution would need to be reformulated if it were a non-ideal gas.
Oddly enough, I get the same solution for the adibatic case, which likely is an indication I don't know what I'm doing...

The equations of state for each tank:

$$ P_{50} = \frac{R}{{V\llap{-}}_{50} }m_{50}T_{50} \tag{50 L Tank} $$

$$ P_{600} = \frac{R}{{V\llap{-}}_{600} }m_{600}T_{600} \tag{600 L Tank} $$

Adiabatic process implies the internal energy of the system is conserved:

$$ \Delta u = 0 $$

Assuming both tanks are initially a state of equilibrium at common temp of surroundings ##T_1##:

$$ u_f - u_o = c_v\left( m_{50}T_{50} + m_{600}T_{600} \right) - c_v\left( [m_{50}]_oT_1 + [m_{600}]_oT_1 \right) = 0 $$

$$\implies m_{50}T_{50} = k - m_{600}T_{600}$$

Where ##k = [m_{50}]_oT_1 + [m_{600}]_oT_1## (constant)

Plugging that into the equation of state for the 50 L tank:

$$P_{50} = \frac{R}{ {V\llap{-}}_{50} }\left( k - m_{600}T_{600} \right)$$

In ##k## we substitute:

$$ [m_{50}]_oT_1 = \frac{ [P_{50}]_o {V\llap{-}}_{50} }{R}$$

$$ [m_{600}]_oT_1 = \frac{ [P_{600}]_o {V\llap{-}}_{600} }{R}$$

and for ##m_{600}T_{600}## substitute:

$$ m_{600}T_{600} = \frac{ {V\llap{-}}_{600} P_{600}}{R}$$

Thus, the final pressure in the 50 liter tank is given by:

$$[P_{50}]_f = [P_{50}]_o - \frac{ {V\llap{-}}_{600} }{ {V\llap{-}}_{50} } \left( [P_{600}]_f - [P_{600}]_o \right)$$

Maybe you can find the error in it? Otherwise, wait for @Chestermiller to arrive.
 
Last edited:
  • #8
erobz said:
Oddly enough, I get the same solution for the adibatic case, which likely is an indication I don't know what I'm doing...

The equations of state for each tank:

$$ P_{50} = \frac{R}{{V\llap{-}}_{50} }m_{50}T_{50} \tag{50 L Tank} $$

$$ P_{600} = \frac{R}{{V\llap{-}}_{600} }m_{600}T_{600} \tag{600 L Tank} $$

Adiabatic process implies the internal energy of the system is conserved:

$$ \Delta u = 0 $$

Assuming both tanks are initially a state of equilibrium at common temp of surroundings ##T_1##:

$$ u_f - u_o = c_v\left( m_{50}T_{50} + m_{600}T_{600} \right) - c_v\left( [m_{50}]_oT_1 + [m_{600}]_oT_1 \right) = 0 $$

$$\implies m_{50}T_{50} = k - m_{600}T_{600}$$

Where ##k = [m_{50}]_oT_1 + [m_{600}]_oT_1## (constant)

Plugging that into the equation of state for the 50 L tank:

$$P_{50} = \frac{R}{ {V\llap{-}}_{50} }\left( k - m_{600}T_{600} \right)$$

In ##k## we substitute:

$$ [m_{50}]_oT_1 = \frac{ [P_{50}]_o {V\llap{-}}_{50} }{R}$$

$$ [m_{600}]_oT_1 = \frac{ [P_{600}]_o {V\llap{-}}_{600} }{R}$$

and for ##m_{600}T_{600}## substitute:

$$ m_{600}T_{600} = \frac{ {V\llap{-}}_{600} P_{600}}{R}$$

Thus, the final pressure in the 50 liter tank is given by:

$$[P_{50}]_f = [P_{50}]_o - \frac{ {V\llap{-}}_{600} }{ {V\llap{-}}_{50} } \left( [P_{600}]_f - [P_{600}]_o \right)$$

Maybe you can find the error in it? Otherwise, wait for @Chestermiller to arrive.
Both these analyses are correct. But what if you wanted to determine the final temperatures and final numbers of moles in the two cylinders(adiabatic)? Or what if you wanted to allow the two chambers to equilibrate in pressure, and you had to determine the final states of the two cylinders?
 
Last edited:
  • #9
Chestermiller said:
Both these analyses are correct. But what if you wanted to determine the final temperatures and final numbers of moles in the two cylinders(adiabatic)? Or what if you wanted to allow the two chambers to equilibrate in pressure, and you had to determine the final states of the two cylinders?
Before I try that, could you offer some insight as to why the final pressure of the 50 L tank is the same for the isothermal and adiabatic process?
 
  • #10
erobz said:
Before I try that, could you offer some insight as to why the final pressure of the 50 L tank is the same for the isothermal and adiabatic process?
It’s an artifact of the ideal gas mathematics and with U being constant on both cases.
 
  • Like
Likes erobz
  • #11
erobz said:
Before I try that, could you offer some insight as to why the final pressure of the 50 L tank is the same for the isothermal and adiabatic process?
Here's a hint: Based on either the open system- or the closed system version of the 1st law of thermodynamics, the gas in the higher pressure cylinder at any time during the process has undergone an adiabatic reversible expansion.
 
  • #12
Chestermiller said:
Here's a hint: Based on either the open system- or the closed system version of the 1st law of thermodynamics, the gas in the higher pressure cylinder at any time during the process has undergone an adiabatic reversible expansion.
Is it because there is no entropy generated in either (reversible) process that the pressure (a property of the system) must be independent of the process?
 
  • #13
erobz said:
Is it because there is no entropy generated in either (reversible) process that the pressure (a property of the system) must be independent of the process?
I don’t understand this question.
 
  • #14
Chestermiller said:
I don’t understand this question.
Sorry, you must have been talking about a hint to the follow up questions. I haven't had a chance to think about them yet. Sun is shining here! Yard work to do.
 
  • #15
Chestermiller said:
Both these analyses are correct. But what if you wanted to determine the final temperatures and final numbers of moles in the two cylinders(adiabatic)? Or what if you wanted to allow the two chambers to equilibrate in pressure, and you had to determine the final states of the two cylinders?
I'm stuck with this for a couple of reasons:

  1. I'm trying to work out the final pressure in the 50 litre cylinder but I don't know the number of moles of gas that leaves the cylinder or the final temperature of the cylinder, so the ideal gas equation alone can't help.
  2. To work out the number of moles of gas that leaves the 50 litre cylinder I tried to work out the number of moles of gas that must exist in the 600 litre cylinder after the compression (using the ideal gas equation), but that requires knowing the temperature, which I can't figure out how to calculate.
 
  • #16
fonz said:
I'm stuck with this for a couple of reasons:

  1. I'm trying to work out the final pressure in the 50 litre cylinder but I don't know the number of moles of gas that leaves the cylinder or the final temperature of the cylinder, so the ideal gas equation alone can't help.
  2. To work out the number of moles of gas that leaves the 50 litre cylinder I tried to work out the number of moles of gas that must exist in the 600 litre cylinder after the compression (using the ideal gas equation), but that requires knowing the temperature, which I can't figure out how to calculate

We have equations of state( ideal gas laws), conservation of energy, conservation of mass, and that pressure relationship to work with simultaneously. From what I’ve looked at so far, it’s messy.
 
  • #17
erobz said:
We have equations of state( ideal gas laws), conservation of energy, conservation of mass, and that pressure relationship to work with simultaneously. From what I’ve looked at so far, it’s messy.
You know the final pressure in the 50 liter cylinder, right? 194 bars,
 
  • #18
Chestermiller said:
You know the final pressure in the 50 liter cylinder, right? 194 bars,
I am using that fact, but perhaps not well. I'm real close to waiving the white flag 🧻. Every time I think I could be getting somewhere all the variables I'm working with disappear and I'm left with a 1 = 1 result 🥳

I might sleep on it and try it again tomorrow.
 
  • #19
erobz said:
I am using that fact, but perhaps not well. I'm real close to waiving the white flag 🧻. Every time I think I could be getting somewhere all the variables I'm working with disappear and I'm left with a 1 = 1 result 🥳

I might sleep on it and try it again tomorrow.
Envision an imaginary balloon that surrounds the air that will eventually fill the high pressure cylinder at the final pressure. During the process, this air expands to push the air that surrounds it ahead of it out of the exit valve. The air in the imaginary balloon is at the same temperature and pressure as the air that surrounds it, and so the air within the imaginary balloon experiences an adiabatic reversible expansion. The initial specific volume of the air within the balloon is ##v_{1.i}=V/m_{1,i}## and its final specific volume is ##v_{1,f}=V/m_{1,f}##.
 
  • #20
Here is where I run out of useful equations:

$$ [m_{600}]_f [T_{600}]_f = \frac{1}{R}\left( [P_{600}]_o {V\llap{-}}_{600} + {V\llap{-}}_{50} \left( [P_{50}]_o - [P_{50}]_f \right) \right) $$

The entire RHS is known.

On the LHS two variables remain, and I appear to have run out of useful equations. We don't know ##T_1## ( the initial temperature common to both tanks, nor do we know anything about the initial masses of the tanks, I can't understand why we should be able to solve for these when we are unable to fix the initial state for either(both) tank(s)?

I'm waiving the white flag. 🏳️

That is derived from combining (1), which by itself has 7 unknows:

$$ [m_{600}]_f [T_{600}]_f+[m_{50}]_f [T_{50}]_f = T_1 \left( [m_{50}]_o + [m_{600}]_o \right) \tag{1}$$

Then to eliminate variables on the RHS by subbing 2 and 3:

$$ [m_{600}]_o T_1 = \frac{[P_{600}]_o {V\llap{-}}_{600} }{R} \tag{2}$$

$$ [m_{50}]_o T_1 = \frac{[P_{50}]_o {V\llap{-}}_{50} }{R} \tag{3}$$

Giving 1 equation 4 unknows:

$$ [m_{600}]_f [T_{600}]_f+[m_{50}]_f [T_{50}]_f = \frac{1}{R} \left( [P_{50}]_o {V\llap{-}}_{50} + [P_{600}]_o {V\llap{-}}_{600} \right) \tag{4}$$

Then, since we know the final pressure ##[P_{50}]_f## in the 50 L tank, eliminate ##[m_{50}]_f [T_{50}]_f## by subbing 5:

$$ [m_{50}]_f [T_{50}]_f = \frac{ [P_{50}]_f {V\llap{-}}_{50} }{R} \tag{5} $$

$$ \boxed{ [m_{600}]_f [T_{600}]_f = \frac{1}{R}\left( [P_{600}]_o {V\llap{-}}_{600} + {V\llap{-}}_{50} \left( [P_{50}]_o - [P_{50}]_f \right) \right) }$$
 
Last edited:
  • #21
You can solve for T and n algebraically, but, say instead, we specify ##T_{1,i}=293\ K##. Then you have enough information to determine ##n_{1,i}##. Same for cylinder 2.

For the adiabatic reversible expansion in cylinder 1, you have $$\frac{n_{1,f}}{n_{1,i}}=\left(\frac{P_{1,f}}{P_{1,i}}\right)^{\frac{1}{\gamma}}$$and$$\frac{T_{1,f}}{T_{1,i}}=\left(\frac{P_{1,f}}{P_{1,i}}\right)^{\frac{\gamma-1}{\gamma}}$$
 
  • #22
Chestermiller said:
You can solve for T and n algebraically, but, say instead, we specify ##T_{1,i}=293\ K##. Then you have enough information to determine ##n_{1,i}##. Same for cylinder 2.
I suspect you meant to say "You can't solve for T and n algebraically"?
 
  • #23
erobz said:
I suspect you meant to say "You can't solve for T and n algebraically"?
I meant “express the results algebraically in terms of the unspecified initial temperature .”
 
  • Like
Likes erobz
  • #24
Chestermiller said:
Envision an imaginary balloon that surrounds the air that will eventually fill the high pressure cylinder at the final pressure. During the process, this air expands to push the air that surrounds it ahead of it out of the exit valve. The air in the imaginary balloon is at the same temperature and pressure as the air that surrounds it, and so the air within the imaginary balloon experiences an adiabatic reversible expansion. The initial specific volume of the air within the balloon is ##v_{1.i}=V/m_{1,i}## and its final specific volume is ##v_{1,f}=V/m_{1,f}##.
I don't think I've fully considered how the adiabtic expansion works before. The air is going from the high pressure cylinder filling the low pressure cylinder.

What do you mean by:

Envision an imaginary balloon that surrounds the air that will eventually fill the high pressure cylinder at the final pressure.
It seems like the balloons (represented by the dashed boundary) are initially:

1683898660319.png


and in the final state they are like:

1683898704612.png
 
Last edited:
  • #25
erobz said:
I don't think I've fully considered how the adiabtic expansion works before. The air is going from the high pressure cylinder filling the low pressure cylinder.

What do you mean by:It seems like the balloons (represented by the dashed boundary) are initially:

View attachment 326432

and in the final state they are like:

View attachment 326433
No. The red ballon initially fills only part of the left chamber. In the final state, it fills the entire left chamber.
 
  • #26
Chestermiller said:
No. The red ballon initially fills only part of the left chamber. In the final state, it fills the entire left chamber.
I read(skimmed) this Adiabatic Process and I see that to get to:
Chestermiller said:
$$\frac{T_{1,f}}{T_{1,i}}=\left(\frac{P_{1,f}}{P_{1,i}}\right)^{\frac{\gamma-1}{\gamma}}$$
The number of moles ( or mass) is assumed to be constant. These tanks are losing/gaining mass?
 
Last edited:
  • #27
erobz said:
I read this Adiabatic Process and I see that to get to:

The number of moles ( or mass) is assumed to be constant. These tanks are losing/gaining mass?
The number of moles inside the balloon is constant.
 
  • #28
Chestermiller said:
The number of moles inside the balloon is constant.
Ok, "the balloon" contains the final mass in the cylinder. I think I get it now. Thanks!
 
  • #29
erobz said:
Ok, "the balloon" contains the final mass in the cylinder. I think I get it now. Thanks!
correct. Let's see what you calculate for the final temperature, the initial number of moles, the final number of moles in the left chamber.
 
  • Like
Likes erobz
  • #30
Here is the development obtained by applying the open system (control volume) version of the 1st law of thermodynamics to the left (higher pressure) cylinder. The starting equation is $$dU=hdn$$where n is the number of moles of gas in this tank during the process, U is the internal energy of the gas contained in the cylinder, and h is the enthalpy per mole of the exit stream from the cylinder, with $$h=u+Pv=u+RT$$where P is the pressure and v=V/n is the volume per mole of the exit stream and cylinder contents. In addition, the internal energy of the gas in the cylinder is related to the internal energy per mole and number of moles in the tank by $$U=nU$$If we combine these equations, we obtain: $$ndu=nC_VdT=RTdn$$Dividing this equation by nT then yields:
$$C_vd\ln{T}=Rd\ln{n}$$This leads to $$\frac{T_{1,i}}{T_{1,f}}=\left(\frac{n_{1,i}}{n_{1,f}}\right)^{\gamma-1}=\left(\frac{v_{1,f}}{v_{1,i}}\right)^{1-\gamma}$$
 
  • #31
Chestermiller said:
correct. Let's see what you calculate for the final temperature, the initial number of moles, the final number of moles in the left chamber.
For the 50 L tank ( we are missing other factors related to the unknown gas for a numerical result):

$$ [m_{50}]_o = \frac{[P_{50}]_o {V\llap{-}}_{50}}{R T_1}$$

$$ [m_{50}]_f = \frac{[P_{50}]_o {V\llap{-}}_{50}}{R T_1}\left( \frac{[P_{50}]_f}{[P_{50}]_o}\right)^{\frac{1}{\gamma}}$$

$$ [T_{50}]_f = T_1 \left( \frac{[P_{50}]_f}{[P_{50}]_o}\right)^{\frac{\gamma - 1}{\gamma}}$$

Where the final pressure in the tank ##[P_{50}]_f## is given by:

$$[P_{50}]_f = [P_{50}]_o - \frac{ {V\llap{-}}_{600} }{ {V\llap{-}}_{50} } \left( [P_{600}]_f - [P_{600}]_o \right)$$
 
  • #32
erobz said:
For the 50 L tank ( we are missing other factors related to the unknown gas for a numerical result):

$$ [m_{50}]_o = \frac{[P_{50}]_o {V\llap{-}}_{50}}{R T_1}$$

$$ [m_{50}]_f = \frac{[P_{50}]_o {V\llap{-}}_{50}}{R T_1}\left( \frac{[P_{50}]_f}{[P_{50}]_o}\right)^{\frac{1}{\gamma}}$$

$$ [T_{50}]_f = T_1 \left( \frac{[P_{50}]_f}{[P_{50}]_o}\right)^{\frac{\gamma - 1}{\gamma}}$$

Where the final pressure in the tank ##[P_{50}]_f## is given by:

$$[P_{50}]_f = [P_{50}]_o - \frac{ {V\llap{-}}_{600} }{ {V\llap{-}}_{50} } \left( [P_{600}]_f - [P_{600}]_o \right)$$
Please evaluate the numbers.
 
  • #33
Chestermiller said:
Please evaluate the numbers.
What’s the gas? May I ask why it matters that I evaluate?
 
  • #34
erobz said:
What’s the gas? May I ask why it matters that I evaluate?
Assuming a diatomic gas, ##\gamma=1.4##.

We specify ##T_{1,i}=T_{2,i}=T_i=293##

$$n_{1,i}=\frac{P_{1,i}V}{RT_{1,i}}=\frac{(200)(50)}{(0.08314)(293)}=410.5\ moles$$

$$T_{1,f}=T_i\left(\frac{P_{1,f}}{P_{1,i}}\right)^{\frac{\gamma-1}{\gamma}}=293\left(\frac{194}{200}\right)^{\frac{0.4}{1.4}}=290.5$$

$$n_{1,f}=\frac{P_{1,f}V}{RT_{1,f}}=\frac{(194)(50)}{(0.08314)(290.5)}=401.7\ moles$$So the number of moles in cylinder 1 decreases by 8.8 moles, and the number of moles in cylinder 2 increases by this same amount.

$$n_{2,i}=\frac{(1)(600)}{0.08415)(293}=26.6\ moles$$

$$n_{2,f}=26.6+8.8=35.4\ moles$$

What is the final temperature In cylinder 2?
 
Last edited:
  • #35
$$T_{2,f}=T_i\left(\frac{P_{2,f}}{P_{2,i}}\right)^{\frac{\gamma-1}{\gamma}}=293\left(\frac{1.5}{1}\right)^{\frac{0.4}{1.4}}=328.9~\rm{K}$$
 

Similar threads

Replies
8
Views
1K
Replies
3
Views
1K
Replies
56
Views
3K
Replies
5
Views
657
Replies
22
Views
2K
  • Thermodynamics
Replies
20
Views
2K
  • Thermodynamics
Replies
8
Views
558
Replies
3
Views
1K
Replies
7
Views
760
  • Introductory Physics Homework Help
Replies
33
Views
1K
Back
Top