[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ASEPSQ13ZV5CT6K9JAR7YD":3,"skill-same:01M7ASEPSQ13ZV5CT6K9JAR7YD":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7ASEPSQ13ZV5CT6K9JAR7YD","thermo-laws-entropy-property-relations-and-phase-behaviour",null,"Use when setting up a thermodynamic analysis: systems, properties and choosing the control volume, the zeroth law and temperature, the first law and energy accounting, the second law and entropy as direction and as energy quality, property relations and the Maxwell relations, equations of state from ideal gas through cubic equations and compressibility, and phase behaviour including saturation, quality and phase diagrams. Includes the router for the whole thermodynamics and fluid mechanics reference.","the-vibey-project\u002Fvibey","the-vibey-project","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F329298758?v=4","01M7AJHGZ9722CTJ4JNQZVRH0Q","the vibey project","01M7AJHGZVMG2K7TGXQ6XFHVG3",5,"MIT","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fthermodynamics-fluid-mechanics\u002Fskills\u002Fthermo-laws-entropy-property-relations-and-phase-behaviour\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: thermo-laws-entropy-property-relations-and-phase-behaviour\ndescription: \"Use when setting up a thermodynamic analysis: systems, properties and choosing the control volume, the zeroth law and temperature, the first law and energy accounting, the second law and entropy as direction and as energy quality, property relations and the Maxwell relations, equations of state from ideal gas through cubic equations and compressibility, and phase behaviour including saturation, quality and phase diagrams. Includes the router for the whole thermodynamics and fluid mechanics reference.\"\n---\n\n# Thermodynamics and Fluid Mechanics: Systems and Properties, the Zeroth and First Laws, the Second Law and Entropy, Property Relations, Equations of State, and Phase Behaviour\n\n> **Part 1 of 6** of the *Thermodynamics and Fluid Mechanics* reference (plugin `thermodynamics-fluid-mechanics`), covering §0–§7. Sibling skills: `thermo-cycles-exergy-combustion-and-psychrometrics` (§8–§12), `thermo-fluid-statics-control-volume-bernoulli-and-navier-stokes` (§13–§18), `thermo-dimensional-analysis-flows-turbulence-and-turbomachinery` (§19–§24), `thermo-heat-transfer-conduction-convection-radiation-and-exchangers` (§25–§28), `thermo-reference` (§29–§35). Section numbers are shared across the set; a reference written as §N → `skill` points into that sibling skill.\n>\n> **Currency:** The laws are permanent — Carnot 1824, Navier-Stokes 1845. Two areas of practice moved. See §29 → `thermo-reference` for CFD and turbulence modelling, and high-density thermal management.\n\n> **⚠️ These are one subject, not two.** **Both are continuum theories built on the same\n> conservation laws applied to a control volume; heat transfer is the third face of the\n> same object.** **Complements a fundamental-physics reference (statistical mechanics\n> underneath), an aerospace reference (external aerodynamics), and a power-engineering\n> reference (cycles at plant scale).**\n>\n> **⚠️ Unusual epistemic status for this series: this content is as close to permanent as\n> engineering knowledge gets.** ⚠️ **The Second Law has survived every attempt to violate\n> it; Navier-Stokes dates to the 1840s.** **What changes is COMPUTATIONAL PRACTICE and\n> APPLICATION — which is what §29 → `thermo-reference` covers.**\n>\n> **⚠️ GOTCHA** boxes mark the classic misconceptions, and the places where a correct\n> formula applied outside its assumptions gives confidently wrong answers.\n>\n> **The three ideas that organize this document:**\n> 1. **⚠️ Define the control volume first.** **Most thermo and fluids errors are\n>    bookkeeping errors — the wrong boundary, or a term crossing it unaccounted**\n>    (§2, §16 → `thermo-fluid-statics-control-volume-bernoulli-and-navier-stokes`).\n> 2. **⚠️ The Second Law is about DIRECTION and about QUALITY of energy** (§4). **The\n>    First Law says you can't win; the Second says you can't break even — and the Second\n>    is where all the engineering lives.**\n> 3. **⚠️ Dimensionless groups are the most powerful tool in the subject** (§19 → `thermo-dimensional-analysis-flows-turbulence-and-turbomachinery`). **They\n>    tell you which physics dominates before you compute anything, and they let a model\n>    predict a full-scale ship.**\n\n---\n\n## §0. Routing\n\n| You want... | Go to |\n|---|---|\n| Systems, properties, state | §1–§2 |\n| First Law | §3 |\n| **⚠️ Second Law and entropy** | **§4** |\n| Property relations | §5 |\n| Equations of state | §6 |\n| Phase behaviour | §7 |\n| **Power cycles** | **§8 → `thermo-cycles-exergy-combustion-and-psychrometrics`** |\n| Refrigeration and heat pumps | §9 → `thermo-cycles-exergy-combustion-and-psychrometrics` |\n| **⚠️ Exergy** | **§10 → `thermo-cycles-exergy-combustion-and-psychrometrics`** |\n| Combustion | §11 → `thermo-cycles-exergy-combustion-and-psychrometrics` |\n| Psychrometrics | §12 → `thermo-cycles-exergy-combustion-and-psychrometrics` |\n| Fluid properties and statics | §13–§14 → `thermo-fluid-statics-control-volume-bernoulli-and-navier-stokes` |\n| **⚠️ Control volume** | **§15 → `thermo-fluid-statics-control-volume-bernoulli-and-navier-stokes`** |\n| **⚠️ Bernoulli — and the myth** | **§16 → `thermo-fluid-statics-control-volume-bernoulli-and-navier-stokes`** |\n| Navier-Stokes | §17 → `thermo-fluid-statics-control-volume-bernoulli-and-navier-stokes` |\n| Boundary layers | §18 → `thermo-fluid-statics-control-volume-bernoulli-and-navier-stokes` |\n| **⚠️ Dimensional analysis** | **§19 → `thermo-dimensional-analysis-flows-turbulence-and-turbomachinery`** |\n| Internal flow | §20 → `thermo-dimensional-analysis-flows-turbulence-and-turbomachinery` |\n| External flow and drag | §21 → `thermo-dimensional-analysis-flows-turbulence-and-turbomachinery` |\n| **⚠️ Turbulence** | **§22 → `thermo-dimensional-analysis-flows-turbulence-and-turbomachinery`** |\n| Compressible flow | §23 → `thermo-dimensional-analysis-flows-turbulence-and-turbomachinery` |\n| Turbomachinery | §24 → `thermo-dimensional-analysis-flows-turbulence-and-turbomachinery` |\n| **Conduction** | **§25 → `thermo-heat-transfer-conduction-convection-radiation-and-exchangers`** |\n| Convection | §26 → `thermo-heat-transfer-conduction-convection-radiation-and-exchangers` |\n| Radiation | §27 → `thermo-heat-transfer-conduction-convection-radiation-and-exchangers` |\n| Heat exchangers, boiling | §28 → `thermo-heat-transfer-conduction-convection-radiation-and-exchangers` |\n| **What's live** | **§29 → `thermo-reference`** |\n| Anti-patterns, misconceptions | §30–§31 → `thermo-reference` |\n| Numbers, books, quick ref | §32–§34 → `thermo-reference` |\n\n---\n\n# PART I — THERMODYNAMICS\n\n## §1. Systems and Properties\n\n```\nSYSTEM      ⚠️ what you draw the boundary around. CLOSED (no mass crossing),\n            OPEN\u002Fcontrol volume (mass crosses), ISOLATED (nothing crosses)\nPROPERTY    ⚠️ INTENSIVE (independent of amount: T, P, ρ, v) vs\n            EXTENSIVE (scales with amount: V, m, U, S)\nSTATE       ⚠️ fixed by a sufficient number of independent intensive\n            properties. For a simple compressible substance, TWO\nPROCESS     the path between states. ⚠️ Properties are path-independent;\n            WORK AND HEAT ARE NOT\nEQUILIBRIUM ⚠️ thermal, mechanical, chemical, phase — all required\n```\n> **⚠️ GOTCHA — heat and work are not properties, and this is the deepest bookkeeping point\n> in the subject.** ⚠️ **A system does not \"contain heat.\"** **It contains internal energy;\n> heat and work are ENERGY IN TRANSIT across the boundary.** **⚠️ That's why we write\n> δQ and δW (inexact differentials, path-dependent) but dU and dS (exact, state\n> functions).** **Nearly every confused thermodynamics argument traces to treating heat as\n> a stored quantity.**\n\n**⚠️ Quasi-static vs real processes**: ⚠️ **the reversible idealization requires infinitely\nslow change through equilibrium states — it never happens, and it's the benchmark\neverything real is measured against** (§10 → `thermo-cycles-exergy-combustion-and-psychrometrics`).\n\n---\n\n## §2. The Zeroth Law and Temperature\n\n**⚠️ If A is in thermal equilibrium with C, and B is with C, then A is with B.** ⚠️ **This\nsounds trivial and is what makes TEMPERATURE a meaningful property and thermometry\npossible** — **it was named \"zeroth\" because it was recognized as logically prior after\nthe first and second were already numbered.**\n**⚠️ Temperature is not heat and not thermal energy.** ⚠️ **A spark at 1000°C carries far\nless energy than a bathtub at 40°C.** **Temperature is intensive; thermal energy is\nextensive.**\n\n---\n\n## §3. The First Law\n\n```\nCLOSED SYSTEM      ΔU = Q − W\n⚠️ CONTROL VOLUME  (steady flow energy equation, SFEE)\n   Q̇ − Ẇ = Σṁ_out(h + V²\u002F2 + gz) − Σṁ_in(h + V²\u002F2 + gz)\n⚠️ ENTHALPY  h = u + Pv  — ⚠️ NOT a form of energy; a bookkeeping convenience\n   that bundles internal energy with the FLOW WORK (Pv) needed to push\n   mass across the boundary. It exists because open systems are common\n```\n**⚠️ Sign conventions vary between textbooks and cause endless errors** — ⚠️ **be explicit\nabout whether W is work done BY or ON the system.** **Most engineering texts take W as\nwork done by the system (so it's positive in a turbine).**\n**Specific heats**: **c_v and c_p**; ⚠️ **c_p > c_v always, because constant-pressure\nheating must also do expansion work.** **For ideal gases, c_p − c_v = R.**\n\n---\n\n## §4. ⚠️ The Second Law and Entropy\n\n**⚠️ The conceptual core of the whole subject, and the most-mangled idea in popular\nscience.**\n```\nKELVIN-PLANCK  ⚠️ no cycle can convert heat entirely into work with a\n   SINGLE reservoir. You always reject heat somewhere\nCLAUSIUS       ⚠️ heat does not spontaneously flow cold → hot\nENTROPY        dS ≥ δQ\u002FT, equality for reversible processes\n⚠️ ENTROPY GENERATION  S_gen ≥ 0 for any real process. THE statement\n```\n> **⚠️ GOTCHA — \"entropy is disorder\" is a misleading pop-science gloss and it generates\n> bad intuitions.** ⚠️ **Entropy is a measure of the number of microstates consistent\n> with the macrostate (Boltzmann: S = k ln Ω) — it's about MULTIPLICITY, or equivalently\n> about missing information.** **\"Disorder\" is a loose visual metaphor that fails on real\n> cases: ⚠️ oil and water separating LOOKS more ordered while entropy increases; some\n> crystallization and self-assembly processes increase total entropy while producing\n> visibly ordered structures.**\n> **⚠️ Better intuitions**: **entropy measures how much energy is unavailable for work at\n> a given ambient temperature** (§10 → `thermo-cycles-exergy-combustion-and-psychrometrics`), **and it measures how many ways the microscopic\n> configuration could be arranged without changing what you can measure.**\n\n**⚠️ Carnot efficiency — the ceiling nothing beats:**\n```\n⚠️ η_Carnot = 1 − T_C\u002FT_H     (⚠️ ABSOLUTE temperatures, always)\n```\n⚠️ **This is a limit set by the temperatures alone — not by materials, engineering skill\nor budget.** **⚠️ Which is why raising T_H is the perennial goal in power generation and\nwhy it's a materials problem more than a thermodynamics problem.**\n**⚠️ The local-decrease point, since it recurs**: ⚠️ **entropy of a SYSTEM can decrease\n(that's what a refrigerator does); the entropy of system plus surroundings cannot.**\n**Life, crystals and engines are not violations — they export entropy.**\n\n---\n\n## §5. Property Relations\n\n```\n⚠️ Tds RELATIONS   Tds = du + Pdv     Tds = dh − vdP\n⚠️ MAXWELL RELATIONS  from equality of mixed second partials of the\n   thermodynamic potentials (U, H, A, G). ⚠️ They let you get\n   HARD-TO-MEASURE quantities (entropy changes) from EASY ones (P, v, T)\nPOTENTIALS   ⚠️ U (internal), H (enthalpy), A (Helmholtz, useful at\n   constant T and V), G (Gibbs, constant T and P — the one that governs\n   phase equilibrium and chemical reaction)\n```\n**⚠️ Gibbs free energy is the practical criterion for spontaneity at constant T and P**:\n**ΔG \u003C 0.** ⚠️ **And ΔG = ΔH − TΔS shows the competition directly — enthalpy and entropy\npulling against each other, with temperature setting the exchange rate.**\n\n---\n\n## §6. Equations of State\n\n```\nIDEAL GAS      Pv = RT. ⚠️ Assumes point particles, no intermolecular forces.\n   ⚠️ Good at LOW pressure and HIGH temperature relative to critical\nCOMPRESSIBILITY FACTOR  Z = Pv\u002FRT. ⚠️ Z = 1 is ideal; the deviation tells\n   you how wrong the ideal assumption is\nVAN DER WAALS  ⚠️ adds molecular volume (b) and attraction (a). Qualitatively\n   right, quantitatively mediocre — and historically important for\n   predicting the critical point\nCUBIC EOS      ⚠️ Redlich-Kwong, Soave-RK, Peng-Robinson. The practical\n   workhorses in process engineering\n⚠️ PRINCIPLE OF CORRESPONDING STATES  gases at the same REDUCED\n   temperature and pressure (T\u002FT_crit, P\u002FP_crit) behave similarly.\n   ⚠️ Remarkable, and the basis of generalized charts\n```\n**⚠️ For liquids and solids, use tabulated properties or incompressible approximations** —\n⚠️ **the ideal gas law is not a general-purpose tool and applying it near saturation is a\nclassic error.**\n\n---\n\n## §7. Phase Behaviour\n\n**⚠️ The P-v-T surface and its projections** (**P-T phase diagram, T-s and P-h diagrams —\n⚠️ and P-h is the working diagram for refrigeration, T-s for power cycles**).\n```\nSATURATION       ⚠️ at a given pressure, boiling occurs at ONE temperature —\n   and adding heat then changes QUALITY, not temperature\nQUALITY x        mass fraction vapour in a two-phase mixture\nCRITICAL POINT   ⚠️ above it, no distinction between liquid and vapour;\n   supercritical fluids have liquid-like density and gas-like transport\nTRIPLE POINT     all three phases coexist\n⚠️ CLAUSIUS-CLAPEYRON  dP\u002FdT = h_fg\u002F(T·v_fg) — the slope of the phase\n   boundary. ⚠️ Explains why water's solid-liquid line slopes BACKWARD\n   (ice is less dense than water), which is nearly unique\nLATENT HEAT      ⚠️ enormous compared to sensible heat — water's latent heat\n   of vaporization is roughly 540× the energy to raise 1 g by 1°C.\n   ⚠️ This is why phase change dominates thermal engineering (§28)\n```\n","# Thermodynamics and Fluid Mechanics: Systems and Properties, the Zeroth and First Laws, the Second Law and Entropy, Property Relations, Equations of State, and Phase Behaviour\n\n> **Part 1 of 6** of the *Thermodynamics and Fluid Mechanics* reference (plugin `thermodynamics-fluid-mechanics`), covering §0–§7. Sibling skills: `thermo-cycles-exergy-combustion-and-psychrometrics` (§8–§12), `thermo-fluid-statics-control-volume-bernoulli-and-navier-stokes` (§13–§18), `thermo-dimensional-analysis-flows-turbulence-and-turbomachinery` (§19–§24), `thermo-heat-transfer-conduction-convection-radiation-and-exchangers` (§25–§28), `thermo-reference` (§29–§35). Section numbers are shared across the set; a reference written as §N → `skill` points into that sibling skill.\n>\n> **Currency:** The laws are permanent — Carnot 1824, Navier-Stokes 1845. Two areas of practice moved. See §29 → `thermo-reference` for CFD and turbulence modelling, and high-density thermal management.\n\n> **⚠️ These are one subject, not two.** **Both are continuum theories built on the same\n> conservation laws applied to a control volume; heat transfer is the third face of the\n> same object.** **Complements a fundamental-physics reference (statistical mechanics\n> underneath), an aerospace reference (external aerodynamics), and a power-engineering\n> reference (cycles at plant scale).**\n>\n> **⚠️ Unusual epistemic status for this series: this content is as close to permanent as\n> engineering knowledge gets.** ⚠️ **The Second Law has survived every attempt to violate\n> it; Navier-Stokes dates to the 1840s.** **What changes is COMPUTATIONAL PRACTICE and\n> APPLICATION — which is what §29 → `thermo-reference` covers.**\n>\n> **⚠️ GOTCHA** boxes mark the classic misconceptions, and the places where a correct\n> formula applied outside its assumptions gives confidently wrong answers.\n>\n> **The three ideas that organize this document:**\n> 1. **⚠️ Define the control volume first.** **Most thermo and fluids errors are\n>    bookkeeping errors — the wrong boundary, or a term crossing it unaccounted**\n>    (§2, §16 → `thermo-fluid-statics-control-volume-bernoulli-and-navier-stokes`).\n> 2. **⚠️ The Second Law is about DIRECTION and about QUALITY of energy** (§4). **The\n>    First Law says you can't win; the Second says you can't break even — and the Second\n>    is where all the engineering lives.**\n> 3. **⚠️ Dimensionless groups are the most powerful tool in the subject** (§19 → `thermo-dimensional-analysis-flows-turbulence-and-turbomachinery`). **They\n>    tell you which physics dominates before you compute anything, and they let a model\n>    predict a full-scale ship.**\n\n---\n\n## §0. Routing\n\n| You want... | Go to |\n|---|---|\n| Systems, properties, state | §1–§2 |\n| First Law | §3 |\n| **⚠️ Second Law and entropy** | **§4** |\n| Property relations | §5 |\n| Equations of state | §6 |\n| Phase behaviour | §7 |\n| **Power cycles** | **§8 → `thermo-cycles-exergy-combustion-and-psychrometrics`** |\n| Refrigeration and heat pumps | §9 → `thermo-cycles-exergy-combustion-and-psychrometrics` |\n| **⚠️ Exergy** | **§10 → `thermo-cycles-exergy-combustion-and-psychrometrics`** |\n| Combustion | §11 → `thermo-cycles-exergy-combustion-and-psychrometrics` |\n| Psychrometrics | §12 → `thermo-cycles-exergy-combustion-and-psychrometrics` |\n| Fluid properties and statics | §13–§14 → `thermo-fluid-statics-control-volume-bernoulli-and-navier-stokes` |\n| **⚠️ Control volume** | **§15 → `thermo-fluid-statics-control-volume-bernoulli-and-navier-stokes`** |\n| **⚠️ Bernoulli — and the myth** | **§16 → `thermo-fluid-statics-control-volume-bernoulli-and-navier-stokes`** |\n| Navier-Stokes | §17 → `thermo-fluid-statics-control-volume-bernoulli-and-navier-stokes` |\n| Boundary layers | §18 → `thermo-fluid-statics-control-volume-bernoulli-and-navier-stokes` |\n| **⚠️ Dimensional analysis** | **§19 → `thermo-dimensional-analysis-flows-turbulence-and-turbomachinery`** |\n| Internal flow | §20 → `thermo-dimensional-analysis-flows-turbulence-and-turbomachinery` |\n| External flow and drag | §21 → `thermo-dimensional-analysis-flows-turbulence-and-turbomachinery` |\n| **⚠️ Turbulence** | **§22 → `thermo-dimensional-analysis-flows-turbulence-and-turbomachinery`** |\n| Compressible flow | §23 → `thermo-dimensional-analysis-flows-turbulence-and-turbomachinery` |\n| Turbomachinery | §24 → `thermo-dimensional-analysis-flows-turbulence-and-turbomachinery` |\n| **Conduction** | **§25 → `thermo-heat-transfer-conduction-convection-radiation-and-exchangers`** |\n| Convection | §26 → `thermo-heat-transfer-conduction-convection-radiation-and-exchangers` |\n| Radiation | §27 → `thermo-heat-transfer-conduction-convection-radiation-and-exchangers` |\n| Heat exchangers, boiling | §28 → `thermo-heat-transfer-conduction-convection-radiation-and-exchangers` |\n| **What's live** | **§29 → `thermo-reference`** |\n| Anti-patterns, misconceptions | §30–§31 → `thermo-reference` |\n| Numbers, books, quick ref | §32–§34 → `thermo-reference` |\n\n---\n\n# PART I — THERMODYNAMICS\n\n## §1. Systems and Properties\n\n```\nSYSTEM      ⚠️ what you draw the boundary around. CLOSED (no mass crossing),\n            OPEN\u002Fcontrol volume (mass crosses), ISOLATED (nothing crosses)\nPROPERTY    ⚠️ INTENSIVE (independent of amount: T, P, ρ, v) vs\n            EXTENSIVE (scales with amount: V, m, U, S)\nSTATE       ⚠️ fixed by a sufficient number of independent intensive\n            properties. For a simple compressible substance, TWO\nPROCESS     the path between states. ⚠️ Properties are path-independent;\n            WORK AND HEAT ARE NOT\nEQUILIBRIUM ⚠️ thermal, mechanical, chemical, phase — all required\n```\n> **⚠️ GOTCHA — heat and work are not properties, and this is the deepest bookkeeping point\n> in the subject.** ⚠️ **A system does not \"contain heat.\"** **It contains internal energy;\n> heat and work are ENERGY IN TRANSIT across the boundary.** **⚠️ That's why we write\n> δQ and δW (inexact differentials, path-dependent) but dU and dS (exact, state\n> functions).** **Nearly every confused thermodynamics argument traces to treating heat as\n> a stored quantity.**\n\n**⚠️ Quasi-static vs real processes**: ⚠️ **the reversible idealization requires infinitely\nslow change through equilibrium states — it never happens, and it's the benchmark\neverything real is measured against** (§10 → `thermo-cycles-exergy-combustion-and-psychrometrics`).\n\n---\n\n## §2. The Zeroth Law and Temperature\n\n**⚠️ If A is in thermal equilibrium with C, and B is with C, then A is with B.** ⚠️ **This\nsounds trivial and is what makes TEMPERATURE a meaningful property and thermometry\npossible** — **it was named \"zeroth\" because it was recognized as logically prior after\nthe first and second were already numbered.**\n**⚠️ Temperature is not heat and not thermal energy.** ⚠️ **A spark at 1000°C carries far\nless energy than a bathtub at 40°C.** **Temperature is intensive; thermal energy is\nextensive.**\n\n---\n\n## §3. The First Law\n\n```\nCLOSED SYSTEM      ΔU = Q − W\n⚠️ CONTROL VOLUME  (steady flow energy equation, SFEE)\n   Q̇ − Ẇ = Σṁ_out(h + V²\u002F2 + gz) − Σṁ_in(h + V²\u002F2 + gz)\n⚠️ ENTHALPY  h = u + Pv  — ⚠️ NOT a form of energy; a bookkeeping convenience\n   that bundles internal energy with the FLOW WORK (Pv) needed to push\n   mass across the boundary. It exists because open systems are common\n```\n**⚠️ Sign conventions vary between textbooks and cause endless errors** — ⚠️ **be explicit\nabout whether W is work done BY or ON the system.** **Most engineering texts take W as\nwork done by the system (so it's positive in a turbine).**\n**Specific heats**: **c_v and c_p**; ⚠️ **c_p > c_v always, because constant-pressure\nheating must also do expansion work.** **For ideal gases, c_p − c_v = R.**\n\n---\n\n## §4. ⚠️ The Second Law and Entropy\n\n**⚠️ The conceptual core of the whole subject, and the most-mangled idea in popular\nscience.**\n```\nKELVIN-PLANCK  ⚠️ no cycle can convert heat entirely into work with a\n   SINGLE reservoir. You always reject heat somewhere\nCLAUSIUS       ⚠️ heat does not spontaneously flow cold → hot\nENTROPY        dS ≥ δQ\u002FT, equality for reversible processes\n⚠️ ENTROPY GENERATION  S_gen ≥ 0 for any real process. THE statement\n```\n> **⚠️ GOTCHA — \"entropy is disorder\" is a misleading pop-science gloss and it generates\n> bad intuitions.** ⚠️ **Entropy is a measure of the number of microstates consistent\n> with the macrostate (Boltzmann: S = k ln Ω) — it's about MULTIPLICITY, or equivalently\n> about missing information.** **\"Disorder\" is a loose visual metaphor that fails on real\n> cases: ⚠️ oil and water separating LOOKS more ordered while entropy increases; some\n> crystallization and self-assembly processes increase total entropy while producing\n> visibly ordered structures.**\n> **⚠️ Better intuitions**: **entropy measures how much energy is unavailable for work at\n> a given ambient temperature** (§10 → `thermo-cycles-exergy-combustion-and-psychrometrics`), **and it measures how many ways the microscopic\n> configuration could be arranged without changing what you can measure.**\n\n**⚠️ Carnot efficiency — the ceiling nothing beats:**\n```\n⚠️ η_Carnot = 1 − T_C\u002FT_H     (⚠️ ABSOLUTE temperatures, always)\n```\n⚠️ **This is a limit set by the temperatures alone — not by materials, engineering skill\nor budget.** **⚠️ Which is why raising T_H is the perennial goal in power generation and\nwhy it's a materials problem more than a thermodynamics problem.**\n**⚠️ The local-decrease point, since it recurs**: ⚠️ **entropy of a SYSTEM can decrease\n(that's what a refrigerator does); the entropy of system plus surroundings cannot.**\n**Life, crystals and engines are not violations — they export entropy.**\n\n---\n\n## §5. Property Relations\n\n```\n⚠️ Tds RELATIONS   Tds = du + Pdv     Tds = dh − vdP\n⚠️ MAXWELL RELATIONS  from equality of mixed second partials of the\n   thermodynamic potentials (U, H, A, G). ⚠️ They let you get\n   HARD-TO-MEASURE quantities (entropy changes) from EASY ones (P, v, T)\nPOTENTIALS   ⚠️ U (internal), H (enthalpy), A (Helmholtz, useful at\n   constant T and V), G (Gibbs, constant T and P — the one that governs\n   phase equilibrium and chemical reaction)\n```\n**⚠️ Gibbs free energy is the practical criterion for spontaneity at constant T and P**:\n**ΔG \u003C 0.** ⚠️ **And ΔG = ΔH − TΔS shows the competition directly — enthalpy and entropy\npulling against each other, with temperature setting the exchange rate.**\n\n---\n\n## §6. Equations of State\n\n```\nIDEAL GAS      Pv = RT. ⚠️ Assumes point particles, no intermolecular forces.\n   ⚠️ Good at LOW pressure and HIGH temperature relative to critical\nCOMPRESSIBILITY FACTOR  Z = Pv\u002FRT. ⚠️ Z = 1 is ideal; the deviation tells\n   you how wrong the ideal assumption is\nVAN DER WAALS  ⚠️ adds molecular volume (b) and attraction (a). Qualitatively\n   right, quantitatively mediocre — and historically important for\n   predicting the critical point\nCUBIC EOS      ⚠️ Redlich-Kwong, Soave-RK, Peng-Robinson. The practical\n   workhorses in process engineering\n⚠️ PRINCIPLE OF CORRESPONDING STATES  gases at the same REDUCED\n   temperature and pressure (T\u002FT_crit, P\u002FP_crit) behave similarly.\n   ⚠️ Remarkable, and the basis of generalized charts\n```\n**⚠️ For liquids and solids, use tabulated properties or incompressible approximations** —\n⚠️ **the ideal gas law is not a general-purpose tool and applying it near saturation is a\nclassic error.**\n\n---\n\n## §7. Phase Behaviour\n\n**⚠️ The P-v-T surface and its projections** (**P-T phase diagram, T-s and P-h diagrams —\n⚠️ and P-h is the working diagram for refrigeration, T-s for power cycles**).\n```\nSATURATION       ⚠️ at a given pressure, boiling occurs at ONE temperature —\n   and adding heat then changes QUALITY, not temperature\nQUALITY x        mass fraction vapour in a two-phase mixture\nCRITICAL POINT   ⚠️ above it, no distinction between liquid and vapour;\n   supercritical fluids have liquid-like density and gas-like transport\nTRIPLE POINT     all three phases coexist\n⚠️ CLAUSIUS-CLAPEYRON  dP\u002FdT = h_fg\u002F(T·v_fg) — the slope of the phase\n   boundary. ⚠️ Explains why water's solid-liquid line slopes BACKWARD\n   (ice is less dense than water), which is nearly unique\nLATENT HEAT      ⚠️ enormous compared to sensible heat — water's latent heat\n   of vaporization is roughly 540× the energy to raise 1 g by 1°C.\n   ⚠️ This is why phase change dominates thermal engineering (§28)\n```\n",{"name":5,"description":7},"develop","ae32736a1aabddabca5d2c96d665aa0ebc7d8700","src\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fthermodynamics-fluid-mechanics\u002Fskills\u002Fthermo-laws-entropy-property-relations-and-phase-behaviour",3,"https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey","https:\u002F\u002Fthe-vibey-project.github.io\u002Fvibey\u002F","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project","https:\u002F\u002Fvibewithadam.matthewsteinberger.com","freedom for software engineers","2026-11-15 05:47:42",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add the-vibey-project\u002Fvibey --skill thermo-laws-entropy-property-relations-and-phase-behaviour",{"tool":40,"command":41},"bunx","bunx skills add the-vibey-project\u002Fvibey --skill thermo-laws-entropy-property-relations-and-phase-behaviour",{"tool":43,"command":44},"pnpm","pnpm dlx skills add the-vibey-project\u002Fvibey --skill thermo-laws-entropy-property-relations-and-phase-behaviour","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fthermodynamics-fluid-mechanics\u002Fskills\u002Fthermo-laws-entropy-property-relations-and-phase-behaviour\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7AT1FQJAE1FQYAMDTF490Y4","white-paper-writing","Use when writing white papers, technical reports, policy documents, thought leadership pieces, or any long-form authoritative document. Triggers on requests to write, structure, outline, or review white papers, technical reports, position papers, policy briefs, or evidence-driven arguments. Also use for B2B content marketing strategy, technical documentation requiring authority, academic-style reports, or any document that must educate while persuading. Use when someone asks \"how should I structure this\" for a long-form document.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fwhite-paper-writing\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7AT16BJRJJKK2MASXRZS76G","prose-technical-mechanics","Use when editing or writing prose at a technical\u002Fmechanical level: choosing between Anglo-Saxon and Latinate diction, placing information in topic vs stress positions, writing periodic vs cumulative sentences, handling sentence rhythm, punctuation as logic, transitions, paragraph structure, or phonesthetics. Use when someone wants to understand WHY prose works or doesn't, not just surface-level style advice. Triggers on word choice, sentence structure, emphasis, rhythm, diction, or any deep writing mechanics question.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-technical-mechanics\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7AT0W9HT0ZZ9Y287NW99MR3","prose-mechanics","Use when writing, editing, or analyzing prose style; when trying to avoid generic AI-sounding writing; when applying specific prose styles such as journalistic, academic, narrative, KJV biblical, Hemingway plain, Latinate\u002FJamesian, Orwellian, Augustan, Victorian, Early Modern (Bacon, Browne, Milton), or free indirect discourse; or when coaching someone on writing voice and mechanics. Triggers on any request to improve, analyze, or write in a specific prose style, to fix \"AI-sounding\" writing, to make prose more vivid or concrete, to vary sentence rhythm, or to understand how a particular writer achieves their effects.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fprose-mechanics\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7AT0KR635JX66X2X6F3E2CP","narrative-structure","Use when structuring stories, pitches, presentations, white papers, or any persuasive narrative; analyzing the hero's journey in fiction or non-fiction; applying StoryBrand for business communication; designing narrative arcs for thought leadership; or understanding Vogler, Snyder, Propp, or Campbell frameworks. Triggers on any narrative structure, storytelling, pitch structure, StoryBrand, hero's journey, three-act structure, Freytag, Save the Cat, narrative arc, or \"how should I structure this story\u002Fpitch\u002Fpresentation\" request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fnarrative-structure\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7AT0AKGW09NKKZDYBT8VRDE","legal-brief-writing","Use when writing legal briefs, motions, or any court filing; when analyzing judicial cognition and persuasion; when applying elite brief-writing techniques from Roberts, Clement, Kagan, Garner; or when structuring legal arguments for maximum persuasion. Also use for autistic\u002Fneurodivergent advocates who need to understand how their natural communication style maps to elite legal advocacy. Triggers on any legal writing, brief drafting, motion preparation, or legal argument structuring request.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Flegal-brief-writing\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7AT00VWPS4Q8B5VEMXX9NQT","journal-publishability-criteria","Use whenever a research paper, article or preprint is being written, revised, reviewed or published, and specifically before every publication of docs\u002Fpaper.md. Covers what legitimate journals actually gate on, in order of gating — the editor's desk screen (scope, novelty, package problems), what reviewers judge (methodological soundness, claims the evidence can carry, statistical and qualitative reporting), EQUATOR reporting guidelines, the ICMJE authorship criteria, COPE's view of text recycling, the near-universal generative-AI policy (no AI author, disclosure, author responsibility), TOP 2025 transparency standards, how to verify a journal is legitimate, submitting without an institution, and a pre-submission checklist. Triggers on requests to evaluate, review, prepare or submit a paper, to judge publishability, to write a declarations or data-availability section, to disclose AI use, or to check a journal.","https:\u002F\u002Fgithub.com\u002Fthe-vibey-project\u002Fvibey\u002Fblob\u002Fdevelop\u002Fsrc\u002Fvibey_tools\u002Fskills\u002Fplugins\u002Fwriting-craft\u002Fskills\u002Fjournal-publishability-criteria\u002FSKILL.md",[],[]]