I Expansion or Compression Work by Gas ##=\int{P_{ext}dV}##

AI Thread Summary
The discussion centers on the calculation of work done during the compression and expansion of gases, specifically using the equation W = ∫P_ext dV. Members debate the implications of external and internal pressures on a piston, questioning how equilibrium can be achieved if these pressures are equal. The conversation highlights the importance of considering the system's boundaries, whether it includes just the gas or the gas plus the piston. Additionally, the effects of irreversible versus reversible processes on gas behavior and pressure distribution are examined. Ultimately, the complexities of gas dynamics and the role of kinetic energy in these processes are emphasized.
Chestermiller
Staff Emeritus
Science Advisor
Homework Helper
Insights Author
2024 Award
Messages
23,701
Reaction score
5,915
In private discussions, another member @burian and I have been discussing why, in compression and expansion of a gas, the work can be calculated from ##W=\int{P_{ext}dV}##. We thought it would be of value to open the discussion to the full membership.

Burian last asked about:

When the external pressure applied is transferred from the the piston on to the gas, the gas will push back the piston by an equal and opposite amount. Now, since we have two forces acting on the piston, the original force due to Ext P and the inside gas pushing back, it must be that the net force on piston is zero and hence it can not move Therefore no compression.

Burian: Would you like to elaborate on this before I or others offer an answer.
 
  • Like
Likes binis
Science news on Phys.org
P in thermodynamics 1st law is ##P_{in}##. dV >0 or <0 until inner pressure and out pressure balance and cease see-saw if any.
 
  • Like
Likes burian
Chestermiller said:
In private discussions, another member @burian and I have been discussing why, in compression and expansion of a gas, the work can be calculated from ##W=\int{P_{ext}dV}##. We thought it would be of value to open the discussion to the full membership.

Burian last asked about:

When the external pressure applied is transferred from the the piston on to the gas, the gas will push back the piston by an equal and opposite amount. Now, since we have two forces acting on the piston, the original force due to Ext P and the inside gas pushing back, it must be that the net force on piston is zero and hence it can not move Therefore no compression.

Burian: Would you like to elaborate on this before I or others offer an answer.
Yes, in thermodynamics, we often say work done on gas by environment= work done on environment by gas. If these two are equal, then it must be that pressure of gas on the piston at boundary with environment and pressure of environment at boundary with gas must be same. But, if this is so, how can the piston move at all?
 
burian said:
Yes, in thermodynamics, we often say work done on gas by environment= work done on environment by gas. If these two are equal, then it must be that pressure of gas on the piston at boundary with environment and pressure of environment at boundary with gas must be same. But, if this is so, how can the piston move at all?
Are we talking about a piston that has mass? Also, we need to be careful specifying exactly what we consider our system, and the boundary at which our system ends and the surroundings begin? Where are these in your thinking? Is your system the gas, or is it the gas plus the piston?
 
burian said:
If these two are equal,
Yes, no works. And if not equal e.g. heating inner gas ?
 
  • Like
Likes burian
Chestermiller said:
the gas will push back the piston by an equal and opposite amount.
That is not really true. You have to consider Newton's first law, ##\sum F = ma##. So converting the pressure to force acting on the piston of mass ##m## and area ##A##, you get:
$$P_{int}A - P_{ext}A = ma$$
So if you know that ##P_{int} \neq P_{ext}## then ##a \neq 0##. This means the boudary (i.e. the piston) will accelerate as long as ##P_{int} \neq P_{ext}##.

Imagine a closed cylinder with a piston mechanically held in position in the middle. There is a gas under different pressure on either side. Release the lock of the piston. What happens?
 
Here is some background information on reversible and irreversible deformations of gas.

At thermodynamic equilibrium, the local normal compressive stress exerted by the gas on the inside face of the piston is given by $$\sigma_z=P=\frac{nRT}{V}=\frac{RT}{v}\tag{1}$$where v is the specific volume of the gas. All these parameters are uniform throughout the gas, and do not vary with spatial location. So they are also the averages at the piston face.

For a reversible expansion or compression, the deformation of the gas is infinitely slow, and the gas thus passes through a continuous sequence of thermodynamic equilibrium states. As such, the same Eqn. 1 applies to the gas at each instant during the entire reversible expansion or compression.

The situation for irreversible expansions or compressions is very different. Unlike a reversible expansion or compression, for the irreversible case, the parameters are not spatially uniform and vary with spatial position within the gas. In addition, we know from fluid mechanics that the local compressive stress exerted by the gas on the inside face of the piston includes viscous stresses, and is given by $$\sigma_z=\frac{RT}{v}-\frac{4}{3}\mu\frac{\partial w}{\partial z}\tag{2}$$ where w is the axial component of gas velocity (which varies with spatial location within the gas) and ##\mu## is the gas viscosity. As a result of Eqn. 2, the local normal compressive stress varies not only with the gas volume but also with the rate of change of gas volume. If we average the local compressive stress variations over the piston face, we obtain $$\bar{\sigma_z}=\frac{\int{\sigma_z dA}}{A}$$
This average normal compressive stress is what we usually more loosely refer to as the "internal pressure" of the gas in a reversible or irreversible compression or expansion: $$P_{int}=\bar{\sigma_z}=\frac{\int{\sigma_z dA}}{A}$$Note that, for the irreversible case, this internal pressure includes the effects of viscous stresses.
 
  • Like
Likes vanhees71 and burian
Chestermiller said:
Are we talking about a piston that has mass? Also, we need to be careful specifying exactly what we consider our system, and the boundary at which our system ends and the surroundings begin? Where are these in your thinking? Is your system the gas, or is it the gas plus the piston?
In my mind I had a massless piston but knowing what happens in each case would be good as well.

The boundary is the region of space the gas encloses, i.e: the interior of piston + inner face of piston, the envrionment is whole space excluding the mentioned region.
 
jack action said:
That is not really true. You have to consider Newton's first law, ##\sum F = ma##. So converting the pressure to force acting on the piston of mass ##m## and area ##A##, you get:
$$P_{int}A - P_{ext}A = ma$$
So if you know that ##P_{int} \neq P_{ext}## then ##a \neq 0##. This means the boudary (i.e. the piston) will accelerate as long as ##P_{int} \neq P_{ext}##.

Imagine a closed cylinder with a piston mechanically held in position in the middle. There is a gas under different pressure on either side. Release the lock of the piston. What happens?
Hmm but if they are not equal then how is work done on gas by environment = work done on environment by gas in magnitude?
 
  • #10
burian said:
In my mind I had a massless piston but knowing what happens in each case would be good as well.

The boundary is the region of space the gas encloses, i.e: the interior of piston + inner face of piston, the envrionment is whole space excluding the mentioned region.
The boundary has to be a surface. So pick one: inside face of piston or outside face?
 
  • #11
Chestermiller said:
The boundary has to be a surface. So pick one: inside face of piston or outside face?
mm yes, I think a cylindrical piston with a disc on top, take the cylinders boundary and the inside face of the disc (the gluing face)
 
  • #12
burian said:
mm yes, I think a cylindrical piston with a disc on top, take the cylinders boundary and the inside face of the disc (the gluing face)
I don't understand. Are you selecting the gas as your system and the inside face of the piston to be its interface with the surroundings? Or, are you splitting the piston into two parts, and taking the boundary of your system as the interface between the two parts?
 
Last edited:
  • #13
I'm going to continue what I was discussing in post #7 for an irreversible deformation of the gas. If ##\bar{\sigma_z}=P_{int}## is the average force per unit area exerted by the gas on the inside face of the piston, and we choose the gas alone as our system, then, calling the average external force per unit area exerted by the piston on the gas ##P_{ext}##, we must have that $$P_{ext}=P_{int}=\bar{\sigma_z}$$
Let's next consider the situation where we are dealing with a piston that has mass M. Let ##P_0(t)## represent the force per unit area applied by some outside medium to the outside face of the piston at time t during the irreversible expansion of compression. If we do a force balance on the piston during the irreversible process, we obtain: $$P_{int}(t)A-P_0(t)A=m\frac{du}{dt}$$or $$P_{int}A=P_{ext}A=\bar{\sigma_z}A=P_0(t)A+m\frac{du}{dt}$$where u is the piston velocity. What do you obtain if you multiply this equation by the piston velocity ##u=dz/dt## (where z is the displacement of the piston from time zero to time t), and integrate between time t = 0 and arbitrary time t?
 
  • #14
Please help me to distinguish between this perceived paradox (?) of forces on the piston and the forces / work involved in stretching a spring. Newton 3 always applies but it doesn't preclude acceleration. The work done in both cases has to be calculated quasi-statically (assuming start and finish situations are static) and assumes equilibrium at each end. If the masses are accelerating then kinetic energy (of the piston and also the gas) has to be brought in.
What else is relevant here?
 
  • Like
Likes burian
  • #15
sophiecentaur said:
Please help me to distinguish between this perceived paradox (?) of forces on the piston and the forces / work involved in stretching a spring. Newton 3 always applies but it doesn't preclude acceleration. The work done in both cases has to be calculated quasi-statically (assuming start and finish situations are static) and assumes equilibrium at each end. If the masses are accelerating then kinetic energy (of the piston and also the gas) has to be brought in.
What else is relevant here?
Ref. My previous post on heating inner gas, inner pressure surpass out pressure slightly , ideally infinitesimal, and gas pushes piston out and inner pressure decrease . Piston with kinetic energy and change of gas pressure with its position, vibrates around the equilibrium.

Then keeping heating the gas, inner pressure rise again and do the same procedure again. When gas push the piston if piston is coming in, its kinetic energy decrease. If the piston is going out, kinetic energy increases. We will not observe synchronization of piston motion and gas pushing. We may be able to expect motion of piston after finite change of volume remains small, ideally infinitesimal one, to be disregarded.
 
  • #16
sophiecentaur said:
Please help me to distinguish between this perceived paradox (?) of forces on the piston and the forces / work involved in stretching a spring. Newton 3 always applies but it doesn't preclude acceleration. The work done in both cases has to be calculated quasi-statically (assuming start and finish situations are static) and assumes equilibrium at each end. If the masses are accelerating then kinetic energy (of the piston and also the gas) has to be brought in.
What else is relevant here?
What do you think the kinetic energy of the piston is in the final state when the system has equilibrated?
 
  • #17
anuttarasammyak said:
We will not observe synchronization of piston motion and gas pushing.
The speed at which the effect of applied pressure transmits through the gas is basically the speed of sound in the gas. There will be a delay as with any force deforming anything.
Chestermiller said:
What do you think the kinetic energy of the piston is in the final state when the system has equilibrated?
It has to be zero. But then no work is being done; it's all over folks. On the way to the new situation, there has to have been some acceleration and some motion; non-equilibrium.

I am frequently seeing people having problems when they feel it's necessary to distinguish Work Done On and Work Done By. Force times distance is just Work Done. The piston does work on the gas when it's compressing because the gas gets the energy - and vice versa. The sign of the work takes care of the On and By.

Also, we are seeing, here, the idea that N3 implies equilibrium and of course, that leads to no resulting motion. The fact that a gas is involved makes it seem more complicated than it really is. A spring with mass would do for the purpose and it's probably easier to understand.
 
  • #18
sophiecentaur said:
The speed at which the effect of applied pressure transmits through the gas is basically the speed of sound in the gas. There will be a delay as with any force deforming anything.

It has to be zero. But then no work is being done;
This is not correct. The piston in the final state will have been displaced to a new equilibrium position, and work will have been done. If you follow the continuation of the development that I started in post #13 (in progress), you will see how this plays out.
sophiecentaur said:
A spring with mass would do for the purpose and it's probably easier to understand.
In an irreversible compression or expansion, the gas behaves more like a spring and damper in parallel than just a spring. The damper accounts for the viscous dissipative behavior of the gas, which, for a frictonless piston, is the mechanism responsible for the damping of the piston motion.
 
  • Like
Likes vanhees71
  • #19
Chestermiller said:
I'm going to continue what I was discussing in post #7 for an irreversible deformation of the gas. If ##\bar{\sigma_z}=P_{int}## is the average force per unit area exerted by the gas on the inside face of the piston, and we choose the gas alone as our system, then, calling the average external force per unit area exerted by the piston on the gas ##P_{ext}##, we must have that $$P_{ext}=P_{int}=\bar{\sigma_z}$$
Let's next consider the situation where we are dealing with a piston that has mass M. Let ##P_0(t)## represent the force per unit area applied by some outside medium to the outside face of the piston at time t during the irreversible expansion of compression. If we do a force balance on the piston during the irreversible process, we obtain: $$P_{int}(t)A-P_0(t)A=m\frac{du}{dt}$$or $$P_{int}A=P_{ext}A=\bar{\sigma_z}A=P_0(t)A+m\frac{du}{dt}$$where u is the piston velocity. What do you obtain if you multiply this equation by the piston velocity ##u=dz/dt## (where z is the displacement of the piston from time zero to time t), and integrate between time t = 0 and arbitrary time t?
I had seen this yesterday and didn't pick up on what you meant but I get it now, if you do that you get the energy conservation equation.
 
  • Like
Likes vanhees71
  • #20
Chestermiller said:
I don't understand. Are you selecting the gas as your system and the inside face of the piston to be its interface with the surroundings? Or, are you splitting the piston into two parts, and taking the boundary of your system as the interface between the two parts?
The second way it is not fully clear to me, could you rephrase it?
 
  • #21
sophiecentaur said:
The speed at which the effect of applied pressure transmits through the gas is basically the speed of sound in the gas. There will be a delay as with any force deforming anything.

It has to be zero. But then no work is being done; it's all over folks. On the way to the new situation, there has to have been some acceleration and some motion; non-equilibrium.

I am frequently seeing people having problems when they feel it's necessary to distinguish Work Done On and Work Done By. Force times distance is just Work Done. The piston does work on the gas when it's compressing because the gas gets the energy - and vice versa. The sign of the work takes care of the On and By.

Also, we are seeing, here, the idea that N3 implies equilibrium and of course, that leads to no resulting motion. The fact that a gas is involved makes it seem more complicated than it really is. A spring with mass would do for the purpose and it's probably easier to understand.

How did you conclude that speed of pressure transmission is same as speed of gas?
 
  • #22
burian said:
I had seen this yesterday and didn't pick up on what you meant but I get it now, if you do that you get the energy conservation equation.
That is correct. What we obtain is: $$W_g(t)=\int_{V_i}^{V(t)}{P_{int}dV}=\int_{V_i}^{V(t)}{P_0dV}+\frac{1}{2}mu(t)^2$$where ##W_g(t)## is the work done by the gas (on the piston) during the irreversible process up to time t, ##V_i## is the initial gas volume, ##V(t)## is the gas volume at time t, and u(t) is the piston velocity at time t. If, at long times, the external medium pressure ##P_0## is constant and the system equilibrates at infinite time ##t\rightarrow \infty##, what do you think happens to the velocity u of the piston?
 
  • Like
Likes vanhees71
  • #23
Chestermiller said:
That is correct. What we obtain is: $$W_g(t)=\int_{V_i}^{V(t)}{P_{int}dV}=\int_{V_i}^{V(t)}{P_0dV}+\frac{1}{2}mu(t)^2$$where ##W_g(t)## is the work done by the gas (on the piston) during the irreversible process up to time t, ##V_i## is the initial gas volume, ##V(t)## is the gas volume at time t, and u(t) is the piston velocity at time t. If, at long times, the external medium pressure ##P_0## is constant and the system equilibrates at infinite time ##t\rightarrow \infty##, what do you think happens to the velocity u of the piston?
Wow how on Earth did you get such a depth understanding of thermodynamics?

It looks to me as you take time to infinity, the velocity term dies off.. so even if it is immediately not that the work done on environment by gas = work done on gas by environment, it is true in infinite time in both reversible and irreversible cases.
 
  • #24
I think the main problem one has with pressure as a student, it's usually taught in a not so clear way. For me the "click in understanding" came, when I first read books about hydrodynamics, where pressure is introduced as what it really is in the logical theoretical description, namely part of the stress tensor of a fluid.

The idea is that you consider the fluid in some volume. To write down the equation of motion you have to take the (material) time derivative of the momentum of the fluid in this volume and equate it with the total force acting on this volume of fluid, and this consists of two parts: the "volume force", i.e., the forces acting on each fluid element within the volume (e.g., the gravitational force from the Earth) and forces due to adjacent fluid along the boundary of the volume, and this is described with help of the stress tensor.

In a perfect fluid in the (local) rest frame of a fluid element the stress tensor is isotropic, i.e., it's given by a scalar ##P## with ##\sigma_{ij}=-P \delta_{ij}## (the sign is a convention). Now it's easy to derive the equation of motion on a small volume ##\mathrm{d}^3 r## of the fluid. The left-hand side "##m \vec{a}##" is
$$\mathrm{d}^3 r \rho \mathrm{D}_t \vec{v}=\mathrm{d}^3 r \rho (\partial_t \vec{v} + \vec{v} \cdot \vec{\nabla} \vec{v}.$$
On the right hand side you have the volume force
$$\vec{F}_{\text{vol}}=\mathrm{d}^3 r \vec{f}.$$
For the (homogeneous) gravitational force of the Earth
$$\vec{f}=\rho \vec{g},$$
where ##\vec{g}## is the gravitational acceleration.

Finally there's a force due to the stress from adjacent fluid on the surface of the volume under consideration. We have to bring this also in the form of a volume force. The trick is Gauss's theorem:
$$F_{\text{boundary},k}=\int_{\partial \Delta V} \mathrm{d}^2 f_j \sigma_{kj}=-\int_{\partial \Delta V} \mathrm{d}^2 f_k P=-\int_{\Delta V} \mathrm{d}^3 r \partial_k P \simeq \mathrm{d}^3 r (-\partial_k P).$$
This means at the end we have the Euler equation of motion
$$\rho (\partial_t \vec{v}+\vec{v} \cdot \vec{\nabla} \vec{v})=\rho \vec{g}-\vec{\nabla} P.$$
 
  • #25
burian said:
Wow how on Earth did you get such a depth understanding of thermodynamics?
Well, like you, I spent a lot of time thinking about it. And I had the benefit of years of practical modeling experience.
burian said:
It looks to me as you take time to infinity, the velocity term dies off.. so even if it is immediately not that the work done on environment by gas = work done on gas by environment, it is true in infinite time in both reversible and irreversible cases.
It depends on what you mean by the environment. If, by the environment, you mean the inside face of the piston (which is what the gas actually does work on), then the work done by the gas on the environment is equal in magnitude to the work done by the environment on the gas at all times. In any event, at infinite time, we have$$W_g(\infty)=\int_{V_i}^{V(\infty)}{P_{int}dV}=\int_{V_i}^{V(\infty)}{P_0dV}$$
 
  • Like
Likes cianfa72 and sophiecentaur
  • #26
vanhees71 said:
I think the main problem one has with pressure as a student, it's usually taught in a not so clear way. For me the "click in understanding" came, when I first read books about hydrodynamics, where pressure is introduced as what it really is in the logical theoretical description, namely part of the stress tensor of a fluid.

The idea is that you consider the fluid in some volume. To write down the equation of motion you have to take the (material) time derivative of the momentum of the fluid in this volume and equate it with the total force acting on this volume of fluid, and this consists of two parts: the "volume force", i.e., the forces acting on each fluid element within the volume (e.g., the gravitational force from the Earth) and forces due to adjacent fluid along the boundary of the volume, and this is described with help of the stress tensor.

In a perfect fluid in the (local) rest frame of a fluid element the stress tensor is isotropic, i.e., it's given by a scalar ##P## with ##\sigma_{ij}=-P \delta_{ij}## (the sign is a convention). Now it's easy to derive the equation of motion on a small volume ##\mathrm{d}^3 r## of the fluid. The left-hand side "##m \vec{a}##" is
$$\mathrm{d}^3 r \rho \mathrm{D}_t \vec{v}=\mathrm{d}^3 r \rho (\partial_t \vec{v} + \vec{v} \cdot \vec{\nabla} \vec{v}.$$
On the right hand side you have the volume force
$$\vec{F}_{\text{vol}}=\mathrm{d}^3 r \vec{f}.$$
For the (homogeneous) gravitational force of the Earth
$$\vec{f}=\rho \vec{g},$$
where ##\vec{g}## is the gravitational acceleration.

Finally there's a force due to the stress from adjacent fluid on the surface of the volume under consideration. We have to bring this also in the form of a volume force. The trick is Gauss's theorem:
$$F_{\text{boundary},k}=\int_{\partial \Delta V} \mathrm{d}^2 f_j \sigma_{kj}=-\int_{\partial \Delta V} \mathrm{d}^2 f_k P=-\int_{\Delta V} \mathrm{d}^3 r \partial_k P \simeq \mathrm{d}^3 r (-\partial_k P).$$
This means at the end we have the Euler equation of motion
$$\rho (\partial_t \vec{v}+\vec{v} \cdot \vec{\nabla} \vec{v})=\rho \vec{g}-\vec{\nabla} P.$$
For a viscous fluid it is important to mention that there is an additional term in the equation for the stress tensor proportional to the deviatoric rate of deformation tensor.
 
  • Like
Likes vanhees71
  • #27
Sure, that was only the ideal-fluid case. For real fluids you have to take into account "friction", i.e., dissipation, and that's of course also part of the stress. There you need a difference in speed between the fluid in the volume and outside of it along the boundary of the volume. In the next approximation thus the corresponding stress from friction must be of first order in the gradient of ##\vec{v}##. So it should be proportional to the components ##\partial_j v_k##. Now the antisymmetric part of this tensor refers to a rotation of the fluid element as a whole and thus doesn't describe true velocity differences. So it's the symmetric part which must enter the first-order contribution to the stress. Since in a liquid or gas locally no direction is preferred there can only be two pieces, corresponding to the irreducible representations of the rotation group. For a symmetric 2nd rank tensor this are the five components of the trace-less part as well as the trace part. Thus one has
$$\sigma_{jk}^{(1)}=\eta (\partial_j v_k + \partial_k v_j - \frac{2}{3} \partial_{i} v_i \delta_{jk} )+\zeta \partial_i v_i \delta_{jk}.$$
As it must be the tensor only depends on two scalar quantities ##\eta##, and ##\zeta##, the shear and bulk viscosities.

Then you end up with the Navier-Stokes equation,
$$\rho (\partial_t \vec{v} + \vec{v} \cdot \vec{\nabla} \vec{v})=-\vec{\nabla} P + \eta \Delta \vec{v} + \left (\frac{\eta}{3}+\zeta \right) \vec{\nabla}(\vec{\nabla} \cdot \vec{v}),$$
where I have assumed the ##\eta## and ##\zeta## can be considered constant within the fluid (though they depend on temperature and density and thus are not strictly constant).
 
  • #28
@burian The point I've been trying to emphasize is that the first step in ones analysis must be that of precisely specifying the "system" that is being considered. Everything else is the surroundings. The 2D surface in space separating the system from its surroundings is where all work is done and all heat is transferred. At this surface, at all times during either a reversible or an irreversible process, the work done by the system on its surroundings is equal in magnitude to the work done by the surroundings on the system. And the amount of heat transferred from the system to the surroundings is exactly equal in magnitude to the heat transferred from the surroundings to the system.

In our example, we chose the gas within the cylinder as our system. The surroundings were the cylinder and piston (and everything beyond), and the surface separating the system from the surroundings was the inside face of the cylinder and the inside face of the piston. The only part of this surface at which work was being done was on the inside face of the piston. At this surface, the work done by the gas (system) on the surroundings was equal in magnitude to the work done by the surroundings on the gas (system).
 
  • Like
Likes vanhees71 and sophiecentaur
  • #29
Chestermiller said:
Well, like you, I spent a lot of time thinking about it. And I had the benefit of years of practical modeling experience.

It depends on what you mean by the environment. If, by the environment, you mean the inside face of the piston (which is what the gas actually does work on), then the work done by the gas on the environment is equal in magnitude to the work done by the environment on the gas at all times. In any event, at infinite time, we have$$W_g(\infty)=\int_{V_i}^{V(\infty)}{P_{int}dV}=\int_{V_i}^{V(\infty)}{P_0dV}$$
I can't believe the last equality, then what about the energy which goes into accelerating the piston?
 
  • Like
Likes Delta2
  • #30
Chestermiller said:
@burian The point I've been trying to emphasize is that the first step in ones analysis must be that of precisely specifying the "system" that is being considered. Everything else is the surroundings. The 2D surface in space separating the system from its surroundings is where all work is done and all heat is transferred. At this surface, at all times during either a reversible or an irreversible process, the work done by the system on its surroundings is equal in magnitude to the work done by the surroundings on the system. And the amount of heat transferred from the system to the surroundings is exactly equal in magnitude to the heat transferred from the surroundings to the system.

In our example, we chose the gas within the cylinder as our system. The surroundings were the cylinder and piston (and everything beyond), and the surface separating the system from the surroundings was the inside face of the cylinder and the inside face of the piston. The only part of this surface at which work was being done was on the inside face of the piston. At this surface, the work done by the gas (system) on the surroundings was equal in magnitude to the work done by the surroundings on the gas (system).
It is very beautiful how for understanding working, we only have to see what happens at the boundary, whatever is inside is irrelevant.
 
  • Like
Likes Delta2
  • #31
vanhees71 said:
Sure, that was only the ideal-fluid case. For real fluids you have to take into account "friction", i.e., dissipation, and that's of course also part of the stress. There you need a difference in speed between the fluid in the volume and outside of it along the boundary of the volume. In the next approximation thus the corresponding stress from friction must be of first order in the gradient of ##\vec{v}##. So it should be proportional to the components ##\partial_j v_k##. Now the antisymmetric part of this tensor refers to a rotation of the fluid element as a whole and thus doesn't describe true velocity differences. So it's the symmetric part which must enter the first-order contribution to the stress. Since in a liquid or gas locally no direction is preferred there can only be two pieces, corresponding to the irreducible representations of the rotation group. For a symmetric 2nd rank tensor this are the five components of the trace-less part as well as the trace part. Thus one has
$$\sigma_{jk}^{(1)}=\eta (\partial_j v_k + \partial_k v_j - \frac{2}{3} \partial_{i} v_i \delta_{jk} )+\zeta \partial_i v_i \delta_{jk}.$$
As it must be the tensor only depends on two scalar quantities ##\eta##, and ##\zeta##, the shear and bulk viscosities.

Then you end up with the Navier-Stokes equation,
$$\rho (\partial_t \vec{v} + \vec{v} \cdot \vec{\nabla} \vec{v})=-\vec{\nabla} P + \eta \Delta \vec{v} + \left (\frac{\eta}{3}+\zeta \right) \vec{\nabla}(\vec{\nabla} \cdot \vec{v}),$$
where I have assumed the ##\eta## and ##\zeta## can be considered constant within the fluid (though they depend on temperature and density and thus are not strictly constant).
I am thrown of by the tensor notation xD. I'll learn it and reattend your reply some day.
 
  • Like
Likes vanhees71 and Delta2
  • #32
burian said:
How did you conclude that speed of pressure transmission is same as speed of gas?
I assume you mean speed of sound?? Well, the speed of sound in a substance is the speed at which disturbances travel through it. What other speed would be involved?
The piston moves and causes a difference in pressure at its face. The change in pressure is transferred to the rest of the gas. It's easier to consider it happening 'slowly enough' but there is a change and there is a time interval.
Chestermiller said:
work will have been done.
Yes, but I said no work is being done (when the piston is no longer moving and its KE is now zero).
burian said:
I can't believe the last equality, then what about the energy which goes into accelerating the piston?
By the time the piston reaches its final position the KE will be zero and will have ben transferred to Potential Energy change / Work. This sort of confusion happens all over the place when Potential Energy differences are discussed as things move from A to B. As with Elevators etc, the KE is zero at A and B (but not at a mid point C in the building).
 
  • #33
burian said:
I can't believe the last equality, then what about the energy which goes into accelerating the piston?
It is dissipated by the viscous behavior of the gas. Think of the gas as if it is a pre-compressed spring in parallel with a viscous damper. The spring mimics the equilibrium P-V behavior of the gas and the damper comes into play in rapid irreversible deformations in mimicking the viscous effect. So, think of mean compressive stress in the rapidly deforming gas as being approximated by the linearized relationship $$P_{int}=\bar{\sigma}_z=P_{int,init}-C_1(V-V_{init})-C_2\frac{dV}{dt}$$where C2 is proportional to the gas viscosity. So, from our force balance on the piston, we have the linearized differential equation: $$\frac{m}{A}\frac{d^2V}{dt^2}+C_1A(V-V_{init})+C_2A\frac{dV}{dt}$$$$+
(P_0(t)-P_{int,init})A=0$$This equation describes a forced oscillation on the piston. Basically, what will happen is that the piston will oscillate about the final equilibrium position until the amplitude of its oscillation is damped to zero by viscous stresses in the gas.
 
Last edited:
  • Like
Likes sophiecentaur
  • #34
sophiecentaur said:
I assume you mean speed of sound?? Well, the speed of sound in a substance is the speed at which disturbances travel through it. What other speed would be involved?
The piston moves and causes a difference in pressure at its face. The change in pressure is transferred to the rest of the gas. It's easier to consider it happening 'slowly enough' but there is a change and there is a time interval.

Yes, but I said no work is being done (when the piston is no longer moving and its KE is now zero).

By the time the piston reaches its final position the KE will be zero and will have ben transferred to Potential Energy change / Work. This sort of confusion happens all over the place when Potential Energy differences are discussed as things move from A to B. As with Elevators etc, the KE is zero at A and B (but not at a mid point C in the building).
I'm thinking of a horizontal cylinder and piston, without potential energy effect. The piston stops moving because its motion is damped by viscous stresses in the gas.
 
  • #35
Chestermiller said:
burian said:
I can't believe the last equality, then what about the energy which goes into accelerating the piston?
It is dissipated by the viscous behavior of the gas.
I don't like that answer. What if there are no viscous behaviors?

I would prefer to say that the energy required to accelerate the piston is stored as kinetic energy in the piston, which can be released by decelerating the piston. Granted it can be a viscous force but it could be some other opposing force too.

In the problem I was referring to in post #6 (a piston held in a cylinder with both ends closed and different pressures on each side), if we assume no friction or viscous behaviors, when the piston is release we would end up with a never ending harmonic motion, just like a mass stuck between two springs. That is possible because the energy is continuously stored to, and retrieved from the moving mass.
 
  • #36
jack action said:
I don't like that answer. What if there are no viscous behaviors?
All gases are Newtonian fluids and exhibit viscous behavior. Bird, Stewart, and Lightfoot, Transport Phenomena, Section 1.4 MOLECULAR THEORY OF THE VISCOSITY OF GASES AT LOW DENSITY (i.e., ideal gas limit).
 
  • #37
Chestermiller said:
without potential energy effect.
I didn't say Gravitational Potential Energy. I was referring to the potential energy of changing the volume of a gas / spring etc..

I don't know why the mass of the piston is of interest here, in any case. That's a bit like wanting to know the sort of battery or PSU that's connected to a theoretical circuit. We (more than often) assume the supply is constant voltage and I would say that the power for the piston is a high impedance source ( 'constant displacement' could be the name).
 
  • #38
First off, this thread is a great resource. If it's possible to pin it to the thermodynamics subforum, it has my vote.

Beyond that, I have a very nitpicky question (sorry in advance). Regarding this statement:
sophiecentaur said:
The speed at which the effect of applied pressure transmits through the gas is basically the speed of sound in the gas. There will be a delay as with any force deforming anything.
I was under the impression that this was only true for perfectly inviscuous fluids (or viscous fluids in very high pressure gradients or flowing in a converging nozzle). For viscous fluids at lower pressure gradients, I thought it was flow instability (turbulence) that limits the speed at which energy can be transported? Am I wrong about this? Sorry again, not trying to nitpick, just testing my understanding.
 
  • #39
Twigg said:
Am I wrong about this?
The context of the thread is a gas, which is why I introduced the speed of sound. I have no strong feelings about this though.
 
  • #40
sophiecentaur said:
I didn't say Gravitational Potential Energy. I was referring to the potential energy of changing the volume of a gas / spring etc..

I don't know why the mass of the piston is of interest here, in any case. That's a bit like wanting to know the sort of battery or PSU that's connected to a theoretical circuit. We (more than often) assume the supply is constant voltage and I would say that the power for the piston is a high impedance source ( 'constant displacement' could be the name).
The mass of the piston is important only in so far as some members thought that it might affect the total amount of work that is done by the gas between the initial and final thermodynamic equilibrium states. The analysis I have done has shown that, because of the viscous damping of the piston motion, even though the piston mass affects the amount of work done by the gas during the process, in the end it has no effect on the ultimate work done by the gas from initial to final thermodynamic equilibrium states.
 
  • Like
Likes sophiecentaur
  • #41
Chestermiller said:
It is dissipated by the viscous behavior of the gas. Think of the gas as if it is a pre-compressed spring in parallel with a viscous damper. The spring mimics the equilibrium P-V behavior of the gas and the damper comes into play in rapid irreversible deformations in mimicking the viscous effect. So, think of mean compressive stress in the rapidly deforming gas as being approximated by the linearized relationship $$P_{int}=\bar{\sigma}_z=P_{int,init}-C_1(V-V_{init})-C_2\frac{dV}{dt}$$where C2 is proportional to the gas viscosity. So, from our force balance on the piston, we have the linearized differential equation: $$\frac{m}{A}\frac{d^2V}{dt^2}+C_1A(V-V_{init})+C_2A\frac{dV}{dt}$$$$+
(P_0(t)-P_{int,init})A=0$$This equation describes a forced oscillation on the piston. Basically, what will happen is that the piston will oscillate about the final equilibrium position until the amplitude of its oscillation is damped to zero by viscous stresses in the gas.
In this case, why didn't you include the viscous foces in the energy balance in the post where you introduced the Newton's second law and integrate it to get the energy balance
 
  • #42
burian said:
In this case, why didn't you include the viscous foces in the energy balance in the post where you introduced the Newton's second law and integrate it to get the energy balance
The viscous forces are implicitly included in ##P_{int}## in the energy balance I introduced and in its integration. To complete the derivation, we needed to assume that at infinite time, the piston is no longer moving.

The more recent equation in which the viscous forces are explicitly included in the analysis uses only a crude approximation to ##P_{int}## (in terms of gas volume V and its time derivative) to provide us with a rough qualitative understanding of how the viscous forces come into play in damping the piston motion.
 
Last edited:
  • Like
Likes burian
  • #43
Chestermiller said:
some members thought that it might affect the total amount of work that is done by the gas between the initial and final thermodynamic equilibrium states.
If you take my point about the way people approach electric circuit theory then there's definitely a different attitude to the behaviour of gases. How many people even stop to think about what happens in an electrical supply when they are given a value for the supply voltage? Does the battery charge or discharge when a Potentiometer is moved?
I suppose there is one big difference in that Heat Engines involve Work Done on a piston but the behaviour of gases under pressure is the first thing that we're taught.

Chestermiller said:
The piston stops moving because its motion is damped by viscous stresses in the gas.
In the basic model, it's the piston that is being moved (by an irresistible applied force) so doesn't the piston stops moving when you choose to make it stop?

PS I find you a terrific source of help with Thermodynamics.
 
  • #44
sophiecentaur said:
I suppose there is one big difference in that Heat Engines involve Work Done on a piston but the behaviour of gases under pressure is the first thing that we're taught.
It's the first thing we're taught for gases at thermodynamic equilibrium. It isn't until we take a course in fluid mechanics that we learn about the irreversible deformational behavior of gases at finite deformation rates; that's when we learn about the viscous aspect of their behavior.
sophiecentaur said:
In the basic model, it's the piston that is being moved (by an irresistible applied force) so doesn't the piston stops moving when you choose to make it stop?
In homework problems in thermodynamics, there are cases where the piston is stopped manually or with a detent within the cylinders, but in most of the cases, the gas, piston, and other surroundings are allow to continue moving spontaneously until they finally re-equilibrate on their own.
sophiecentaur said:
PS I find you a terrific source of help with Thermodynamics.
Thank you. You are very kind, and it's a pleasure interacting with you.

I'm a chemical engineer, and thermodynamics is our bread and butter. ChE is founded on the application of thermodynamics in the design and operation of chemical plant processing equipment.
 
  • Like
Likes burian, Twigg, vanhees71 and 1 other person
  • #45
Chestermiller said:
I'm a chemical engineer, and thermodynamics is our bread and butter.
yeah well - my thermodynamics extends to the basics of A level. Not surprisingly. I can easily get hold of the wrong end of the stick. But it's all grist to the mill.
 
  • #46
Chestermiller said:
I'm going to continue what I was discussing in post #7 for an irreversible deformation of the gas. If ##\bar{\sigma_z}=P_{int}## is the average force per unit area exerted by the gas on the inside face of the piston, and we choose the gas alone as our system, then, calling the average external force per unit area exerted by the piston on the gas ##P_{ext}##, we must have that $$P_{ext}=P_{int}=\bar{\sigma_z}$$
I would like to add that it is always true in force of 3rd Newton law: the average force per unit area the gas exerts on the inside face of the piston is the same as the average force the inside face of the piston exerts on the gas (here we are assuming the gas inside the cylinder is the system).
 
Back
Top