Ideal gases
An âidealâ gas is a gas that is not subject to interparticle interactions. Also commonly said to not being subject to âreact with other substancesâ.
In many applications of thermodynamics, ideal gases often come up, so itâs natural to understand them within a thermodynamic perspective.
Gases and Pressure
Before we begin with the real thermodynamical part of gases we need a bit of background with gases. Boyleâs law gives us a mathematical formula for our intuition of gases. Say we have setup a experiment where the mass of a gas and the temperature is constant. The only thing that could vary now is the pressure within in the gas, and its volume. How we define pressure is the key here - pressure is, in non-science terms, the force applied per area unit. Usually we write pressure as, $P$, with the formula:
$$ P = \frac{F}{A} $$
So if we expand our container which the gas is held in, intuitively, the pressure should release/decrease. This is exactly what Boyleâs law tells us.
Boyleâs law
$$ PV = Constant $$
This means we can, for example, write: $$ P_1 V_1 = P_2 V_2 $$
But in many cases we canât keep the amount of particles (mass) and temperature constant - so how do we describe it then?
Ideal Gas Law
Suppose we have a cylinder with height $h$, and a surface area of $A$, containing some gas. Simplified, the gas will have a gravitational force $F_mg$, since the gas has a mass $M$.
We can therefore describe the pressure as: $$ M = (h * A) * \rho \newline F = Mg \newline P = \frac{F}{A} = \frac{h * A * \rho * g}{A} = h \rho g $$
From observations and experiments, scientist have found that $PV = dT$ has linear relationship and found that: $$ PV = nRT \text{, where:} \newline P - \text{ Pressure } [N/m^2, Pa] \newline V - \text{ Volume } [m^3] \newline n - \text{ Amount of moles } [moles] \newline R - \text{ Gas constant, 8.3145 } [J/mol * K] \newline T - \text{ Temperature } [K] $$
Moles may something new that some havenât encountered. Itâs a way of describing how many particles there are in a given substance with some mass. The formula for moles is: $$ n = \frac{N}{N_A} \text{, where:} \newline N - \text{ Amount of particles } [Count] \newline N_A - \text{Avogadroâs constant, } 6.023 * 10^{23} \text{ } [1/mol] $$
We can also define something called âparticle intensityâ which is just $\frac{N}{V}$, which can we useful sometimes.
If we use this definition of moles, we can rewrite the Ideal gas law as: $$ PV = \frac{N}{N_A}RT \rightarrow P = \frac{N}{V} \frac{R}{N_A} T $$
This constant $\frac{R}{N_A}$ has a name, Boltzmannâs constant, denoted by $$ k_B = \frac{R}{N_A} = 1.38 * 10^{-23} \text{, therefore the equation becomes} \newline PV = N k_B T $$
Kinetic Gas Theory
Our day to day definition of temperature is how âhotâ or âcoldâ it is - but what is temperature really describing? One can think that temperature describes the average kinetic energy in a object. This of course varies with what substance we have and on many other factors - but in general we can say that gas particle, has an average kinetic energy of: $$ E_{average} = \frac{\alpha}{2} k_B T \text{, where } \alpha \text{ is so called âdegrees of freedomâ} $$
Therefore the total energy in a gas is: $$ E_{total} = N E_{average} = N \frac{\alpha}{2} k_B T $$
In our course and its applications, where we will only encounter monoatomic and diatomic gases - $\alpha = 3$ for monoatomic and $\alpha = 5$ diatomic.
Thereâs also a so called âinner energyâ in the gas which we denote with $U$ - for a monoatomic gas, $U$ is generally: $$ U = n \frac{3}{2}RT $$
Conductivity in Ideal Gases
Often when we encounter gases in a thermal system - we will encounter two different categories of them. One where we have constant volume, the gas can not expand more than its initial state. One where we have constant pressure, we may have a lid that can be expanded, therefore the volume will change.
For these kinds of problems the usual $Q = cm\Delta T$ becomes tricky. But luckily, the formula for these are: $$ Q = n C_v \Delta T \newline Q = n C_p \Delta T $$ Where the subscript of the $C$ denotes which is constant and the other varying.
With this we can also get formulas for $C_v$ and $C_p$ for ideal gases: $$ C_v = \frac{\alpha}{2}R \newline C_p = C_v + R $$
Work by Gases
Now that weâve encountered the different kind of categories of problems - we can understand which kind can perform work and which can not. If we have constant volume it means the gas cannot expand or âpushâ its surrounding. Therefore it cant do work!
But in the case where we have constant pressure, but not volume, the gas can perform work. As we remember from mechanics - work is defined as: $$ dW = \vec{F} dx $$
Since we have another equation for the force, $F = PA$, we can write: $$ dW = P(A dx) = P dV $$
We usually write this as $$ W = \int_i^f P dV $$
Now the âdirectionâ is really important here - and one may wonder what âdirectionâ do we have when weâre dealing with thermodynamics? Direction within thermodynamics means if the gas expands $(W > 0)$ or if it compresses $(W < 0)$.
Phase and Transition variables
In a given system, we may have a heat flux, $Q$ - we have a âinner energyâ, $U$, and the system may do work, $W$. Notice how I used may for $Q$ and $W$ - this is because they are so called âphase variablesâ, this because they are only present during a âphaseâ or âprocessâ.
While the system always has a inner energy, $U$.
Thermodynamics
Now we have finally arrived at what this section of the course is all about - âThermodynamicsâ. So how would one describe thermodynamics? Our lecturer described it as, âA transaction system for energyâ. Which I find as a simple - yet good - explanation. It really is about how systems âhandleâ energy in and out of it.
Weâve already defined a lot of variables that are essential in thermodynamics:
Q - heat exchange with the systems environment
U - the systems inner energy
W - Work which the gas performs - here we have to careful, sometimes work is defined by the work done by the outside on the system.
0th Law of Thermodynamics
Itâs quite a funny name since itâs a physics law - and not a Computer Science one - that itâs 0 indexed. But this law came after all the other laws, because people just assumed this was the case - but a proper formal law was needed.
The 0th law of thermodynamics states that:
âSuppose we have 3 bodies, 1, 2, and, 3. In that order, if 1 and 2 are in thermal equilibrium - 2 and 3 are also in thermal equilibrium. Then 1 and 3 are also in thermal equilibriumâ.
As stated - a quite âobviousâ law that is not so powerful, but needed.
1th Law of Thermodynamics
Now this is a really powerful law - The 1th law of thermodynamics states that: $$ Q = \Delta U + W $$
If we âtalkâ through this forumla we understand that - the heat flux/heat exchange in a system, will be the difference in inner energy added with the work done by the gas in the system.
Isoprocesses
As we already touched upon - thermodynamical gas problems often come in two categories. Here we will formally define them. The prefix âisoâ means that something is unchanged, so therefore a isobar process means that the pressure is constant. In all of these different processes, the ideal gas law and the difference in inner energy will be the same for all. $$ PV = nRT \newline \Delta U = n \frac{\alpha}{R} \Delta T $$
Isobar process
In a isobar process, the pressure will be held constant throughout the system. Which means: $$ W_{if} = P(V_f - V_i) \newline Q = n C_p \Delta T \newline \Delta U = n C_v \Delta T $$
Isochoric process
In a isochoric process, the volume will instead be held constant throughout the system. Which leads to: $$ W_{if} = 0 \newline Q = n C_v \Delta T \newline \Delta U = n C_v \Delta T $$
Isothermal process
In a isothermal process, the temperature will instead be held constant throughout the system. Which means: $$ W_{if} = \int P dV = nRT * ln(\frac{V_f}{V_i}) \newline \Delta U = n C_v \Delta T = 0 \newline Q = +W $$
Adiabatic process
In a adiabatic process, the heat exchange is 0 - this is quite a special case, but this means: $$ Q = 0 \newline W = n C_v (T_i - T_f) \newline W = - n C_V \Delta T \newline \Delta U = n C_v \Delta T $$
With this we can see that $\Delta U$ has to âpay the priceâ since $Q = 0$. This means the system takes its own inner energy to complete the transaction in energy.
We also have one more formula in the adiabatic case: $$ PV^\gamma = Constant $$
With the ideal gas law we can find that: $$ TV^{\gamma - 1} = Constant $$
As well as: $$ TP^{\frac{1 - \gamma}{\gamma}} = Constant $$
Thermal Efficiency
Now that we have gone through almost all process that weâre covering in this course - we will finally formally define thermal efficiency! As I promised in part 1!
Thermal efficiency can be defined as: $$ e = \frac{\sum W_g}{\sum Q_{pos}} = \frac{\sum Q_{total}}{\sum Q_{pos}} $$
Thermal efficiency can also sometimes be denoted as $\eta$.
Conclusion
This concludes this part - in the next part (coming next week, probably) weâll cover the 2nd law of thermodynamics, as well as summarize everything!