Free Ebook cover Thermodynamics for Makers: Heat, Work, and Efficiency in Real Machines

Thermodynamics for Makers: Heat, Work, and Efficiency in Real Machines

New course

16 pages

Pressure–Volume Diagrams and Quasi-Static Processes You Can Plot

Capítulo 7

Estimated reading time: 0 minutes

+ Exercise

What a P–V Diagram Really Shows (and Why Makers Should Care)

A pressure–volume (P–V) diagram is a plot of a system’s pressure on the vertical axis versus its volume on the horizontal axis as the system changes state. For makers, the value is that many real machines—hand pumps, pneumatic cylinders, compressors, small steam engines, vacuum chambers, and even syringes—are fundamentally about pushing on a fluid while its volume changes. A P–V plot turns that “push and move” behavior into a picture you can measure, compare, and use to estimate mechanical work.

In a P–V diagram, each point corresponds to a thermodynamic state of the working fluid. A process is a path connecting points. Different paths between the same start and end states can require different work because the pressure during expansion/compression can differ along the way. That is the key maker takeaway: the path matters, and the P–V diagram is how you see the path.

Work as Area on a P–V Plot

For a quasi-static process (explained below), the boundary work done by the system is the integral of pressure with respect to volume: W = ∫ P dV. On a P–V diagram, that integral is literally the area under the process curve between the initial and final volumes. If the system expands (volume increases), the area is positive work done by the system; if it is compressed, the area is negative work done by the system (work input required).

This “area equals work” idea is extremely practical: if you can record pressure and volume during a slow process, you can estimate work without needing a torque sensor or dynamometer. For example, you can estimate the work a hand pump delivers to air, or the work a pneumatic cylinder can deliver to a load, by integrating the measured P–V data.

Quasi-Static Processes: The Plot-Friendly Idealization

A process is quasi-static (also called quasi-equilibrium) when it happens slowly enough that the system passes through a sequence of states that are very close to equilibrium. Practically, this means the pressure inside the working fluid is well-defined at each moment and is nearly uniform, so you can meaningfully plot a single pressure value against a single volume value.

Continue in our app.

You can listen to the audiobook with the screen off, receive a free certificate for this course, and also have access to 5,000 other free online courses.

Or continue reading below...
Download App

Download the app

How to Recognize When Your Setup Is Quasi-Static

  • Slow actuation: You move a piston or change volume slowly compared to the time it takes pressure waves to settle (typically milliseconds in small gas volumes). If you can pause mid-stroke and the pressure reading stabilizes quickly, you’re closer to quasi-static.
  • Minimal flow restrictions: If gas is rushing through a tiny orifice or valve, you can get large pressure gradients and non-equilibrium effects. Quasi-static is easier when the system is mostly closed and volume changes by moving a boundary (piston, diaphragm).
  • Low friction and low inertia: Stick-slip friction in pistons or seals can cause sudden jumps in volume at nearly constant pressure, or sudden pressure spikes at nearly constant volume. Those distort the path and make it less “smoothly plot-able.”
  • Uniform temperature (when relevant): If the process is slow enough for heat exchange with the surroundings, temperature may stay near ambient; if it’s fast, temperature can change significantly. Either can still be quasi-static, but you need to know which regime you’re in to interpret the curve.

Quasi-static does not mean “no losses.” You can have friction, heat transfer, and leakage; it means the state variables are still well-defined along the path. For makers, quasi-static is the regime where inexpensive sensors and simple logging can produce meaningful P–V curves.

Common P–V Process Shapes You Can Actually Plot

Constant-Pressure (Isobaric) Segments

A constant-pressure process appears as a horizontal line on a P–V diagram. In maker hardware, you can approximate constant pressure when a piston is loaded by a constant weight (plus atmospheric pressure), or when a regulator maintains a roughly constant pressure while volume changes.

Example: a vertical syringe with a known weight on the plunger. If the plunger moves slowly and friction is small, the internal pressure is approximately atmospheric pressure plus weight/area. As the volume changes, pressure stays nearly constant, giving a near-horizontal line.

Constant-Volume (Isochoric) Segments

A constant-volume process is a vertical line on a P–V diagram. You can approximate this when the volume is fixed (rigid container) and you change pressure by adding/removing heat or by adding/removing gas. In maker contexts, a rigid tank with a pressure sensor is the simplest way to get an isochoric segment.

Even if you are not focusing on heat transfer here, isochoric segments are useful as “connectors” in cycles you build experimentally: you can close a valve to lock volume, then change pressure by some controlled action, then reopen and continue.

Polytropic Curves (A Practical Family for Real Hardware)

Many real compression/expansion processes in small devices fall somewhere between “very slow with lots of heat exchange” and “very fast with little heat exchange.” A convenient way to fit real P–V data is the polytropic relation P V^n = constant, where n is an exponent you can estimate from data. On a P–V plot, polytropic processes are curved lines; the curvature depends on n.

For makers, the polytropic model is valuable because you can measure P and V and then infer n from the slope on a log–log plot. That lets you compare different builds: better insulation, different piston speed, different cylinder materials, or different lubrication can shift the effective n.

Why “Fast” and “Slow” Look Different on P–V

If you compress a gas quickly, pressure rises more for the same reduction in volume than it does in a slow compression that can exchange heat with the environment. On a P–V diagram, the fast compression curve sits above the slow compression curve (higher pressure at the same volume). That means the area under the compression curve (work input) is larger for the fast case. This is a practical reason compressors get hot and why multi-stage compression with cooling can reduce required work.

How to Measure and Plot a P–V Diagram in a Home Shop

You need two signals: pressure and volume. Volume can be measured directly (piston position times area) or inferred (known geometry). Pressure can be measured with a sensor referenced to atmosphere (gauge) or absolute. For P–V work calculations, absolute pressure is usually safer because the integral uses absolute pressure; if you only have gauge pressure, you must add atmospheric pressure to convert to absolute.

Hardware Setup A: Syringe + Pressure Sensor (Simple and Visual)

  • Parts: large syringe (50–100 mL), barbed fitting, short tubing, pressure sensor (0–200 kPa absolute or gauge), microcontroller/logger, ruler or calipers.
  • Volume measurement: use syringe graduations or measure plunger position and compute V = V0 + A x (A is syringe cross-sectional area).
  • Pressure measurement: mount sensor close to syringe to reduce dynamic lag; sample at 10–50 Hz for slow processes.

Step-by-Step: Recording a Quasi-Static Compression Curve

  • 1) Leak check: Seal the syringe tip and pull/push slightly; pressure should hold for several seconds. Fix leaks before logging.
  • 2) Choose a slow stroke: Move the plunger over 10–20 seconds. If you move too fast, you’ll see pressure overshoot and noisy readings.
  • 3) Log synchronized data: Record time, pressure, and volume. If volume is manual (reading graduations), pause at several volumes and wait for pressure to settle, then record steady values.
  • 4) Convert to absolute pressure: If using a gauge sensor, compute P_abs = P_gauge + P_atm (use a local barometer or assume ~101.3 kPa if precision is not critical).
  • 5) Plot P vs V: Use a spreadsheet or Python. The curve should be smooth and monotonic for a clean quasi-static compression.

Estimating Work from Your Data (Numerical Integration)

With discrete data points (V_i, P_i), approximate W = ∫ P dV using the trapezoidal rule. This is robust and easy in a spreadsheet.

# Given arrays V[0..N-1] in m^3 and P[0..N-1] in Pa (absolute) ordered by time/stroke direction: W = 0 for i in 0..N-2:     dV = V[i+1] - V[i]     Pavg = 0.5*(P[i+1] + P[i])     W += Pavg * dV

If the process is compression, dV is negative, so W will come out negative (work input). If you want “work required” as a positive number, report W_in = -W for compression.

Hardware Setup B: Pneumatic Cylinder + Linear Encoder (More “Machine-Like”)

  • Parts: single-acting or double-acting cylinder, pressure sensor on the chamber, linear potentiometer/encoder for piston position, known piston area, data logger.
  • Volume measurement: V = V_dead + A x, where V_dead is the clearance volume at zero stroke. Estimating V_dead matters if you want accurate curves near end-of-stroke.
  • Practical note: cylinder friction and seal stiction can create hysteresis; that’s not a reason to avoid the experiment—it’s a reason to measure it.

Hysteresis and Real-World Loops: What Your Plot Will Reveal

When you run a compression and then an expansion back to the starting volume, an ideal reversible quasi-static process would retrace the same curve. Real devices often produce a loop: the expansion path differs from the compression path. The enclosed area of that loop corresponds to net work lost per cycle (often dissipated as heat due to friction, turbulence, throttling through valves, or viscoelastic effects in diaphragms).

This is one of the most maker-useful features of P–V diagrams: you can quantify losses without needing to separately measure friction forces. If you build two versions of a piston seal and one yields a smaller hysteresis loop for the same cycle, it is likely reducing dissipative losses.

Step-by-Step: Measuring a Hysteresis Loop in a Syringe

  • 1) Compress slowly from V_max to V_min while logging P and V.
  • 2) Immediately expand slowly back to V_max while logging.
  • 3) Plot both paths on the same P–V axes. You will often see the expansion curve below the compression curve.
  • 4) Compute net work over the cycle: integrate over the full closed path. Numerically, integrate compression (negative) plus expansion (positive). The result is typically negative net work (you must supply energy each cycle), and its magnitude corresponds to dissipated energy per cycle.

Building and Plotting Simple Cycles You Can Reproduce

A “cycle” is a closed loop on a P–V diagram. You can create cycles with simple valves and a piston volume. The point is not to perfectly mimic an engine, but to create repeatable loops whose areas you can compare when you change design parameters (valve size, tubing length, piston speed, lubrication, heat sinking).

Cycle Idea 1: Regulated Fill + Piston Expansion + Exhaust

You can approximate a loop using a regulated air source and a cylinder:

  • A→B (fill at roughly constant pressure): connect the chamber to a regulator and let the piston move outward under load while pressure stays near the regulated value (horizontal-ish line).
  • B→C (isolate and expand/compress): close a valve and move the piston to change volume with no mass exchange; you’ll get a curved line.
  • C→A (exhaust at near-atmospheric pressure): vent to atmosphere while returning to the start volume; pressure stays near atmospheric (another horizontal-ish line).

This produces a loop whose area corresponds to net work output or input depending on direction. Even if the lines are not perfectly horizontal, the loop is still meaningful.

Cycle Idea 2: Vacuum Jar + Bellows (Low-Pressure P–V Loop)

Using a bellows or diaphragm attached to a sealed jar with a vacuum pump, you can create low-pressure loops. This is useful because pressure differences are smaller and safer, and you can explore how leaks and valve restrictions distort the path. The P–V area will be smaller, but the shape can be very informative.

Practical Data Quality: Getting a Clean, Interpretable P–V Curve

Absolute vs Gauge Pressure

Work calculations require absolute pressure. If you integrate gauge pressure directly, you are effectively subtracting atmospheric pressure, which changes the computed work by P_atm ΔV. That can be a large error for big volume changes. If you only care about differences between two builds under identical conditions, gauge may still be useful, but be explicit about what you integrated.

Dead Volume and Geometry Errors

In cylinders, fittings, and sensor ports, there is volume that does not change with piston motion. If you ignore it, your computed V may be off, especially near small volumes, which changes the curve shape and the fitted polytropic exponent. Measure or estimate dead volume by filling the chamber with water (if compatible) and measuring displaced volume, or by careful geometric calculation of ports and cavities.

Sensor Dynamics and Sampling

Pressure sensors have response times; long thin tubing can act like a low-pass filter and delay pressure changes. For quasi-static tests, this is less critical, but it can still cause phase lag between pressure and volume signals, creating artificial loops. Keep the sensor close, use wider tubing, and sample fast enough that you have many points per stroke (at least 200 points over a full compression/expansion is a good target).

Friction and Stick-Slip

Stick-slip shows up as jagged segments: volume changes in jumps while pressure ramps. If you see this, try lubrication, different seal materials, slower motion, or a different piston. If you are characterizing friction intentionally, keep it: the jaggedness is telling you about static vs kinetic friction and how it affects the effective process path.

Extracting Useful Numbers from Your P–V Plot

Average Pressure Over a Stroke

Sometimes you want a single “effective pressure” for actuator sizing. From a P–V curve, you can compute an average pressure over a volume change: P_avg = W/ΔV (using absolute pressure and the signed work). This is not the same as arithmetic mean of pressure samples unless the volume steps are uniform; using W/ΔV ties it directly to work.

Fitting a Polytropic Exponent n from Data

If your process roughly follows P V^n = C, then ln P = ln C − n ln V. Plot ln P vs ln V; the slope is −n. This is a practical way to compare how “heat-leaky” or “heat-trapping” your setup is under different speeds or insulation. Use only the portion of the stroke where the process is smooth and where valves are closed (no mass exchange), otherwise the fit will be misleading.

# Fit n using linear regression on log data: x = ln(V), y = ln(P) y = a + b x  => b = -n

Cycle Work and Power (When You Repeat the Loop)

If you run a closed loop repeatedly (e.g., a piston driven by a crank), the net work per cycle is the area enclosed by the loop. Multiply by cycles per second to estimate mechanical power associated with the fluid boundary work. This is a powerful diagnostic: if you change valve timing or reduce restriction and the loop area increases in the desired direction, you’ve improved the machine’s fluid-side work transfer.

Safety and Practical Limits When Plotting P–V at Home

P–V experiments can involve pressurized gas, which stores energy. Use conservative pressures, rated components, and protective eyewear. Prefer small volumes when exploring higher pressures. If you are using improvised vessels (jars, printed parts, thin acrylic), stay near atmospheric and focus on qualitative shape and low-pressure loops. For higher pressures, use metal-rated cylinders, proper regulators, and relief valves. Keep hands away from potential pinch points on pistons and linkages during slow quasi-static strokes; slow does not mean harmless.

Now answer the exercise about the content:

Why is using absolute pressure (rather than gauge pressure) important when calculating boundary work from a P–V diagram?

You are right! Congratulations, now go to the next page

You missed! Try again.

Work from a P–V curve uses absolute pressure in W = ∫ P dV. If you integrate gauge pressure, you omit atmospheric pressure, which changes the result by roughly P_atm·ΔV and can be a large error for big volume changes.

Next chapter

Heat Transfer Pathways: Conduction, Convection, and Radiation in Builds and Repairs

Arrow Right Icon
Download the app to earn free Certification and listen to the courses in the background, even with the screen off.