play phryzby with physics

Two Ways from A to B

solved FirstLawOfThermodynamics

Q. In changing the state of a gas adiabaticallyΔQ(a)=0J from an equilibrium state A to another equilibrium state BΔU(t)=ΔU(a), an amount of work equal to 22.3 JWon(a)=22.3J is done on the system. If the gas is taken from state A to B via a process in which the net heat absorbed by the system is 39.18 JΔQ(t)=39.18J, how much is the net work done by the system in the latter case, in joules?

adiabaticallyQ = 0 JWΔUthe other wayQ = 39.2 JW = ?ΔUAB
Inputs
Won
22.3 J
ΔQ
39.18 J
Outputs
work byΔW?

How it's solved

Solved with FirstLawOfThermodynamics

Given

  • ΔQ(t)=39.18J
  • Won(a)=22.3J
  • ΔQ(a)=0J from “adiabatically”
  • ΔU(t)=ΔU(a) from “from an equilibrium state A to another equilibrium state B”

Find ΔW(t).

Working
  1. work on is work by turned round(adiabatically)Won(a)=−ΔW(a)
  2. 22.3=−ΔW(a)
  3. ΔW(a)=−22.3J
  4. first law(adiabatically)ΔQ(a)=ΔU(a)+ΔW(a)
  5. 0=ΔU(a)+(−22.3)
  6. ΔU(a)=22.3J
  7. from an equilibrium state A to another equilibrium state BΔU(t)=ΔU(a)
  8. ΔU(t)=22.3
  9. ΔU(t)=22.3J
  10. first law(the other way)ΔQ(t)=ΔU(t)+ΔW(t)
  11. 39.18=22.3+ΔW(t)
  12. ΔW(t)=16.88J
  13. ΔW(t)≈16.9Jto 3 significant figures
Conclusion

Internal energy depends only on the state, so both paths from A to B change it by the same amount; the heat the second path takes in, less that change, is the work it does.

The web of concepts

given read from the words equation asked

The Ruby that solves it

The question and its solution are small Ruby files. The engine runs them.

question.rb
1require_relative "../physics"23question :two_ways_from_a_to_b do4  kind :numerical5  describes "In changing the state of a gas adiabatically from an equilibrium state A to another equilibrium state " \6            "B, an amount of work equal to %{work_on} is done on the system. If the gas is taken from state A to B " \7            "via a process in which the net heat absorbed by the system is %{heat}, %{work_by}, in joules?"8  given work_on: "22.3 J"9  given heat: "39.18 J"10  asks work_by: "how much is the net work done by the system in the latter case"11end
solution.rb
1require_relative "../questions/two_ways_from_a_to_b"2require_relative "../science/thermodynamics/first_law_of_thermodynamics"34solve :two_ways_from_a_to_b, using: FirstLawOfThermodynamics do5  objects :gas6  gas.goes(:adiabatically)7  gas.goes(:the_other_way)89  take heat: gas.heat_absorbed(during: the_other_way)10  take work_on: gas.work_done_on_the_system(during: adiabatically)1112  deduce_from "adiabatically", gas.heat_absorbed(during: adiabatically) => "0 J"13  deduce_from "from an equilibrium state A to another equilibrium state B",14              gas.change_of_internal_energy(during: the_other_way) => gas.change_of_internal_energy(during: adiabatically)1516  work_by = gas.work_done_by_the_system(during: the_other_way)17  answer work_by:, in: "J", figures: 31819  conclusion "Internal energy depends only on the state, so both paths from A to B change it by the same " \20             "amount; the heat the second path takes in, less that change, is the work it does."21end
playground.rb
1require_relative "../solutions/two_ways_from_a_to_b"23play_with :two_ways_from_a_to_b do4  title "Two Ways from A to B"5end
The laws it drew on
quantitywrittenunitswithinfrom
heat absorbedΔQJ—FirstLawOfThermodynamics
work done by the systemΔWJ—FirstLawOfThermodynamics
work done on the systemWonJ—FirstLawOfThermodynamics
change of internal energyΔUJ—FirstLawOfThermodynamics
heat absorbed of gas during adiabaticallyΔQ(a)J—
change of internal energy of gas during adiabaticallyΔU(a)J—
work done by the system of gas during adiabaticallyΔW(a)J—
heat absorbed of gas during the other wayΔQ(t)J—
change of internal energy of gas during the other wayΔU(t)J—
work done by the system of gas during the other wayΔW(t)J—
work done on the system of gas during adiabaticallyWon(a)J—
work done on the system of gas during the other wayWon(t)J—
ΔQ(a)=ΔU(a)+ΔW(a)
first law(adiabatically)
ΔQ(t)=ΔU(t)+ΔW(t)
first law(the other way)
Won(a)=−ΔW(a)
work on is work by turned round(adiabatically)
Won(t)=−ΔW(t)
work on is work by turned round(the other way)
ΔU(t)=ΔU(a)
from an equilibrium state A to another equilibrium state B