play phryzby with physics

The Speed of Sound in Air

solved SpeedOfSound

Q. The mass of 1 mole of air is 29.0 × 10⁻³ kg/molM=29.0×10−3kg/mol. Taking the ratio of specific heats of air as 1.4γ=1.4, what is the speed of sound in air at standard temperature and pressureT=273K, P=1.01×105Pa, in m/s?

v = ?T = 273 K
Inputs
M
0.029 kg/mol
γ
1.4
Outputs
speedv?

How it's solved

Solved with SpeedOfSound

Given

  • M=29.0×10−3kg/mol
  • γ=1.4
  • T=273K from “standard temperature and pressure”
  • P=1.01×105Pa from “standard temperature and pressure”

Find v.

Working
  1. density of an ideal gas(air)ρ=P⋅MR⋅T
  2. ρ=101000⋅0.0298.31446262⋅273
  3. ρ=1.29039461kg/m³
  4. laplaces speed of sound(air)v=γ⋅Pρ
  5. v=1.4⋅1010001.29039461
  6. v=331.0 m/s
  7. v≈331m/sto 3 significant figures
Conclusion

Sound squeezes the air too fast for heat to flow, so the springiness is the adiabatic one, γ times the pressure; Newton's guess without γ came out fifteen percent slow.

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 :the_speed_of_sound_in_air do4  kind :numerical5  describes "The mass of 1 mole of air is %{molar_mass}. Taking the ratio of specific heats of air as %{gamma}, " \6            "%{speed}, in m/s?"7  given molar_mass: "29.0e-3 kg/mol"8  given gamma: "1.4"9  asks speed: "what is the speed of sound in air at standard temperature and pressure"10end
solution.rb
1require_relative "../questions/the_speed_of_sound_in_air"2require_relative "../science/waves/speed_of_sound"34solve :the_speed_of_sound_in_air, using: SpeedOfSound do5  objects :air67  take molar_mass: air.molar_mass8  take gamma: air.ratio_of_specific_heats910  deduce_from "standard temperature and pressure", air.temperature => "273 K", air.pressure => "1.01e5 Pa"1112  speed = air.speed_of_sound13  answer speed:, in: "m/s", figures: 31415  conclusion "Sound squeezes the air too fast for heat to flow, so the springiness is the adiabatic one, " \16             "γ times the pressure; Newton's guess without γ came out fifteen percent slow."17end
playground.rb
1require_relative "../solutions/the_speed_of_sound_in_air"23play_with :the_speed_of_sound_in_air do4  title "The Speed of Sound in Air"5end
The laws it drew on
quantitywrittenunitswithinfrom
gas constantRJ mol⁻¹ K⁻¹—SpeedOfSound
pressurePPa0 … ∞SpeedOfSound
temperatureTK0 … ∞SpeedOfSound
molar massMkg/mol—SpeedOfSound
densityρkg/m³0 … ∞SpeedOfSound
ratio of specific heatsγ——SpeedOfSound
speed of soundvm/s—SpeedOfSound
density of groundρgkg/m³0 … ∞
pressure of groundPgPa0 … ∞
molar mass of groundMgkg/mol—
temperature of groundTgK0 … ∞
density of airρkg/m³0 … ∞
pressure of airPPa0 … ∞
molar mass of airMkg/mol—
temperature of airTK0 … ∞
speed of sound of groundvgm/s—
ratio of specific heats of groundγg——
speed of sound of airvm/s—
ratio of specific heats of airγ——
ρg=Pg⋅MgR⋅Tg
density of an ideal gas
vg=γg⋅Pgρg
laplaces speed of sound
ρg=Pg⋅MgR⋅Tg
density of an ideal gas(ground)
ρ=P⋅MR⋅T
density of an ideal gas(air)
vg=γg⋅Pgρg
laplaces speed of sound(ground)
v=γ⋅Pρ
laplaces speed of sound(air)