Urgent.News

What's breaking now, across thousands of outlets.

Tech

From Rocket Science to Code: 12 Real-World Thermodynamic Notebooks with pyglenn

Engineering textbooks routinely introduce gas dynamics under the convenient assumption of constant specific heats. Students memorize that air has a heat capacity ratio ( γ ) of 1.4, calculate cycle efficiencies on a pocket calculator, and move on. Inside a gas turbine combustor or a rocket nozzle, that simplification collapses. At 1500 K, molecular nitrogen and oxygen absorb energy in quantized…

Thermodynamic notebooks showcase the reality of gas properties beyond simplistic models. Dr. Reginaldo G. Leão Jr.'s collection of twelve Jupyter notebooks, called pyglenn-notebooks, provides practical examples of real-world thermodynamic modeling. A key example is Notebook 09, which examines the cold-air standard delusion in gas turbine applications.

The textbook formula for Brayton cycle efficiency assumes constant specific heats: ηcold = 1 - rp(γ−1)/γ. For a pressure ratio of 10 and γ = 1.4, this yields a thermal efficiency of 48.2%. However, when pyglenn accounts for temperature-dependent heat capacity, the real thermal efficiency falls to 45.6%. The 2.6 percentage point difference demonstrates the impact of real gas behavior at high turbine inlet temperatures.

The notebook employs scipy's root_scalar function to solve for compressor discharge temperature. By matching entropy across compressor and turbine stages with temperature-dependent Cp(T), pyglenn reveals the numerical differences between theoretical and practical performance. This highlights the importance of incorporating realistic thermodynamic properties in engineering designs, as neglecting them can lead to costly failures in real-world applications.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Using NLTP with MQTT: Healing 35% Wireless Packet Loss on ESP-NOW & UDP Before Your Broker

If you have ever deployed outdoor sensor nodes over noisy 2.4 GHz radio links, ESP-NOW, or rural 4G CGNAT modems, you have probably hit the First-Mile Wall : MQTT over TCP is great inside the cloud…

  • NLTP protocol developed to address wireless packet loss in ESP-NOW and UDP
  • NLTP improves packet loss recovery by up to 35% before reaching MQTT broker
  • NLTP uses compact header, LZ4 compression, AEAD, and Reed-Solomon error correction

Are your model's probabilities calibrated? Expected calibration error in NumPy

There was a comment on Hacker News this week saying LLM token probabilities are badly calibrated for making decisions. I think that's right, and it's also something you can measure yourself in about…

  • Expected calibration error (ECE) measures calibration of model probabilities
  • NumPy library used to calculate ECE in Python code snippet
  • Perfectly calibrated model has lowest ECE and Brier score among four tested

I wired my own Symfony invoicing to a French e-invoicing platform. Five things I learned.

France made e-invoicing mandatory in stages. Since 1 September 2026, every VAT-registered company must be able to receive electronic invoices through an approved platform (a "plateforme agréée"…

  • France mandates e-invoicing for VAT-registered businesses starting 2026
  • Symfony app integrated with approved e-invoicing platform for issuing and receiving invoices
  • Implement feature flags and local invoice storage before connecting to the platform

Best Time to Post on Social Media: 3 Studies, 3 Different Answers

Search for the best time to post on social media and you get a confident answer in the first result, a different confident answer in the second, and a third in the next one.

  • Hootsuite, Sprout Social, Buffer each recommend different posting times
  • Studies agree weekdays are better than weekends for most networks
  • Founder following all three studies would be confused by contradictory advice

Pace: Converting Time and Distance Into a Number You Can Train With

Pace looks like a single division: take the time you took, divide by the distance you covered, and you have a pace. The arithmetic is easy.

  • Pace calculated by dividing elapsed time by distance
  • Convert units consistently to avoid errors
  • Multiply pace by distance to estimate finish time

More from Saturday 14 November →