Valve Simulator
Thirteen industrial valves and a control valve lab in 2D & 3D — flow, Cv, cavitation, water hammer & loops — Simulate • Control • Compare • Explore • Practice • Quiz • Game
Display Controls
Σ Live working — from the state on screen
1 Overview
The simulator holds the thirteen valves most used to control fluid flow in industry: gate (with a knife-gate variant), globe, needle, ball, plug (with a three-way variant), butterfly, diaphragm, pinch, swing check, lift check, dual-plate check, pressure relief and pressure-reducing regulator. They are grouped in card 1 by function (isolation, regulation, non-return, pressure protection, pressure regulation), and every valve also carries a tag for how its closure member moves (linear across or toward the seat, quarter-turn, flexing, self-acting). Each valve sits in a live rig: a supply header, a pipe, the valve, a second pipe and a receiver, carrying water at the temperature you set.
There are seven modes: Simulate (operate one valve), Control valve lab (an actuated valve with a positioner in a flow or level loop), Compare (all the valves on the same rig), Explore (45 cards in seven groups), Practice (identify a valve from its section, or work a calculation), Quiz (8 questions) and Pick the valve (a selection game).
2 Getting Started
Pick a valve in card 1 and a variant under it. Drag the Opening slider in the 2 Operate bar under the picture, or drag the handwheel or lever in the picture, or focus the picture and use the arrow keys. ▲ Open and ▼ Close move the valve at the speed of a hand (one turn of a handwheel a second, 0.6 s for a lever); ⚡ Slam shut shuts it in 0.05 s. A scenario in card 3 sets up a ready-made case such as a cavitating butterfly or a check valve that slams.
The valves that work on their own have no handle. A check valve is opened by the flow: trip the pump to watch it shut. A relief valve has a Set pressure in the Operate bar: raise the supply pressure past it to make the valve lift (a safety valve pops, and chatters if its inlet pipe is long). A regulator has a set pressure and a Downstream demand: open the demand and watch the outlet droop below the setting.
The page opens in the 3D view on a computer or tablet and in the 2D view on a phone. The 2D | 3D switch is at the left of the bar under the picture, and the page remembers your choice. Add ?view=2d or ?view=3d to a link to open that view.
3 Simulate Mode: the 2D View
- The rig (top strip): the supply header, the pipe before the valve coloured by pressure, the valve with an inlet and an outlet gauge, the pipe after it and the receiver. When a valve shuts, the water-hammer wave runs up and down this pipe.
- The section: the valve cut open. Gate, globe, needle, diaphragm and check valves are cut through the stem (elevation); ball, plug and butterfly valves are cut across the stem, looking down it (plan), so the quarter turn is seen as it happens. The water is coloured by pressure (blue high, through cyan and yellow, to orange at the vapour pressure), moves at its real relative speed through the throat, and carries vapour bubbles where it cavitates or flashes.
- Pressure profile (under the section, on the same horizontal scale): the inlet pressure, the dip to the vena contracta, the recovery to the outlet pressure, and the vapour pressure as a dashed line.
- Characteristic (right): the inherent curve (dashed, constant pressure drop) and the installed curve on this rig (solid), with the valve authority N and the operating point.
- Pressure at the valve inlet (bottom right): the last 8 seconds, with the supply pressure and the Class 150 rating marked.
4 Simulate Mode: the 3D View
The valve in 3D, cut open along the pipe so you can see inside. Drag the handwheel or lever to operate it, drag anywhere else to orbit, and use Ctrl + scroll or pinch to zoom. Whole, Section and Seat move the camera. Untick Cut the valve open in Display Controls to see the closed casting. The water moves through the valve as particles coloured by pressure, with vapour bubbles where it cavitates.
5 The Physics
Each valve’s part-open loss coefficient K comes from the Hydraulic Institute table reproduced in Perry’s Handbook, and Cv and Kv are worked out from K exactly. The rig solves the flow at which the pipe friction (Darcy, Churchill) and the valve share the pressure from the supply to the receiver. Choking, cavitation and flashing follow ISA-75.01 / IEC 60534: the vena contracta pressure is p1 − Δp/FL² and the flow chokes at Δp = FL²(p1 − FF·pv). The pressure wave on closing is a method-of-characteristics calculation of the pipe before the valve, with the wave speed from the pipe wall (about 1360 m/s for water in a Schedule 40 steel pipe). The operating effort is an estimate by the valve-factor method and is labelled so.
Σ Calculations shows every step for the state on screen; the Live working panel at the foot of Simulate shows the main equations with numbers.
6 Compare Mode
Tick the valves to compare. The chart plots the installed characteristic of each on the rig you set in Simulate; the table gives, at the opening you choose, the full-open K and flow coefficient, the flow, the regime (clean, cavitating, choked or flashing), the turns and time to close by hand, and the peak pressure when each is closed by hand (a full pressure-wave run for each valve).
7 Control Valve Lab
Card 1 builds the assembly: the body (cage-guided globe, V-notch ball or high-performance butterfly), the trim (linear, equal percentage or quick opening on the globe), the size, the actuator action (air to open, fail closed, or air to close, fail open), whether a positioner is fitted, and the stem packing (PTFE or high-friction graphite). Card 2 chooses the loop: Bench (you set the signal), a flow loop or a tank level loop, with a controller faceplate: Auto/Manual, set point, output, gain Kc, integral time Ti and the controller action (reverse or direct). Tune it for me sets a sound tuning and the action that matches the valve. Card 3 sets the process: supply and receiver pressure, the valve authority, the water temperature, the tank outlet demand, and a supply-pressure dip as a disturbance.
The picture shows the assembly in section with the air coloured by pressure, the loop as a P&ID with ISA tag bubbles, and one chart: the trend (set point, measurement, output and travel), the characteristic (inherent and installed, with the operating point and installed gain) or signal–travel, where friction shows as a loop. Step test steps the output (manual) or the set point (auto) by 10 %; Stroke test ramps the signal 0 → 100 → 0 %; Cut the air vents the actuator so the spring drives the valve to its fail position. ×1, ×5 and ×20 speed the simulation up (level loops are slow). The 3D view shows the assembly cut open. Size a control valve, under the readouts, works out the Cv for water, gas or saturated steam by ISA-75.01 for each body and picks a size; Load puts that valve in the lab. Add ?mode=control to a link to open the lab.
8 Explore, Practice, Quiz & Game
Explore has 45 cards in seven groups: Classification (with the function × motion matrix), How each valve works, Flow & sizing, Cavitation & flashing, Water hammer, Selection & standards, and Control valves. Practice has two kinds: Identify the valve (the name and labels are hidden; pick it from four) and Calculations (nineteen kinds: Cv, flow from Kv, Cv ↔ Kv, Δp from K, choked Δp, vena contracta pressure, Joukowsky surge, critical closing time, authority, handwheel turns, equal-percentage trim, installed characteristic, actuator spring rate, 4–20 mA to 3–15 psi, dead band from friction, gas expansion factor, relief valve full lift, relief valve capacity, regulator droop). Quiz asks 8 questions with shuffled options and gives stars. Pick the valve deals 8 service cards: choose the function (1 point) and the valve (2 points for the best, 1 for an acceptable one), and see why.
9 SI, Imperial & Tips
SI shows bar (gauge), m³/h, m/s, °C, metres, DN sizes and Kv. Imperial shows psi (gauge), US gpm, ft/s, °F, feet, NPS sizes and Cv. Both flow coefficients are always in the calculation.
Try: throttle a gate valve and watch the flow hardly change until the last quarter; open a butterfly to 30 % at high pressure and watch it choke; heat the water to 95 °C with a low receiver pressure to see flashing; slam a ball valve on a long pipe and compare the peak with closing a gate valve by hand; trip the pump with the check valve.
Valve Simulator — Types of Valves and How They Control Flow
A valve controls a fluid by moving a closure member into or out of the flow path. Industry uses dozens of designs, but thirteen of them do most of the work: the gate, globe, needle, ball, plug, butterfly, diaphragm and pinch valves that isolate and throttle, the swing, lift and dual-plate check valves that stop backflow, the pressure relief valve that protects against overpressure and the pressure-reducing regulator that holds a pressure, with knife-gate and three-way variants. This simulator puts each one in a working pipe line so you can open it, throttle it and shut it, and see what it does to the flow, the pressure drop, cavitation and the water-hammer wave — in a 2D section and in 3D.
Classification of Valves: Types and Their Uses
Valves are classified first by function — what the valve is for — and then by how the closure member moves against the seat, the scheme EN 736-1 uses to name the basic valve types. The last column gives where each type is typically used.
| Valve | Function | Closure member moves | Throttling? | Product standard | Typical uses |
|---|---|---|---|---|---|
| Gate | Isolation | Linear, across the seat | No | API 600 / API 602 | On/off isolation in water mains and oil and gas lines |
| Globe | Regulation | Linear, toward the seat | Yes | API 623 | Throttling cooling water, steam and feedwater |
| Needle | Regulation | Linear, toward the seat | Yes (fine) | Manufacturer | Instrument lines, sample points, fine metering |
| Ball | Isolation | Rotary, quarter-turn | No | API 608 / API 6D | Quick on/off shut-off in gas, water and chemical lines |
| Plug | Isolation | Rotary, quarter-turn | No | API 599 | Gas distribution, dirty fluids, multi-port diverting |
| Butterfly | Regulation (and isolation) | Rotary, quarter-turn | Yes | API 609 | Large water lines, cooling water, HVAC |
| Diaphragm | Regulation | Flexing element | Yes | BS EN 13397 | Slurries, acids, food and pharmaceutical lines |
| Pinch | Regulation | Flexing element | Yes | Manufacturer | Abrasive slurries, mine tailings, powders |
| Swing check | Non-return | Self-acting (moved by the flow) | — | API 594 | Pump discharge and horizontal water lines |
| Lift check | Non-return | Linear, toward the seat (lifted by the flow) | — | API 602 / BS 5352 | Small high-pressure lines, boiler feed |
| Dual-plate check | Non-return | Self-acting (spring-assisted) | — | API 594 | Pump discharge where a slam must be avoided |
| Pressure relief | Pressure protection | Linear, toward the seat (lifted by the pressure) | — | API 526 / ASME VIII | Protecting vessels, pumps and boilers from overpressure |
| Pressure-reducing regulator | Pressure regulation | Linear, toward the seat (set by a spring) | Yes (self-acting) | Manufacturer / BS EN 334 | Cutting mains, steam or gas pressure to a building |
How Each Valve Works
- Gate valve: a wedge slides across the bore. Fully open it is a clear bore, so it costs almost nothing in pressure, but most of the flow change happens in the last quarter of travel, so it is an isolation valve, not a throttling valve.
- Globe valve: a disc moves down onto a horizontal seat, and the water follows an S-shaped path up through it. It costs more pressure but changes the flow smoothly over its whole stroke: the classic hand-throttling valve.
- Needle valve: a small globe valve with a long tapered needle on a fine thread, for small, precisely set flows.
- Ball valve: a ball with a bore turns a quarter turn. A full-bore ball open is a piece of straight pipe; shut, it seals tightly. The commonest valve sold.
- Plug valve: a plug with a rectangular port turns a quarter turn, sealed by injected lubricant or a PTFE sleeve. Good with dirty fluids and gas.
- Butterfly valve: a disc on a shaft turns a quarter turn in a short body. Light and cheap in large sizes, it throttles best between about 20 % and 70 % open.
- Diaphragm valve: a flexible diaphragm is pressed onto a weir. Only the diaphragm and the lining touch the fluid, which suits slurries, acids and hygienic service.
- Swing check valve: a hinged disc is pushed open by forward flow and falls shut when the flow stops, so the line cannot run backwards.
- Pinch valve: a rubber sleeve is flattened by bars or by air round it. Nothing metal touches the fluid, so it suits abrasive slurries.
- Lift check valve: a piston or ball lifts straight off a horizontal seat; for small, high-pressure lines, fitted cover up.
- Dual-plate check valve: two spring-loaded half-plates fold open like a book and snap shut before the flow can reverse: the non-slam check.
- Pressure relief valve: a spring holds a disc on a nozzle until the pressure beats it. A relief valve opens in proportion to the overpressure (full open 10 % over set); a safety valve pops open and reseats after a blowdown of about 7 %.
- Pressure-reducing regulator: a spring pushes it open and the outlet pressure on a diaphragm pushes it shut, so it holds the outlet near the setting, drooping as the demand rises.
- Knife gate and three-way valves: a knife gate is a gate with a thin blade that cuts through pulp and slurry; a three-way plug sends the flow straight on, down a branch, or divides it.
Flow Coefficient: Cv, Kv and K
Cv is the flow of water in US gallons per minute that passes with a 1 psi pressure drop, and Kv is the flow in m³/h at 1 bar; Kv = 0.865 Cv. For a liquid, Q = Cv√(Δp/G). Pipe engineers describe the same thing with the loss coefficient K, the pressure drop in velocity heads: Δp = K·ρv²/2, and Cv = 29.9 d²/√K with d in inches. The table gives the fully open values the simulator uses for a 4-inch (DN100, Schedule 40) line.
| Valve (DN100) | K, fully open | Cv | Kv (m³/h) |
|---|---|---|---|
| Full-bore ball | 0.04 | 2418 | 2092 |
| Gate | 0.17 | 1173 | 1015 |
| Butterfly (concentric) | 0.20 | 1081 | 935 |
| Plug (70 % port) | 0.53 | 664 | 575 |
| Swing check | 2.0 | 342 | 296 |
| Diaphragm (weir) | 2.3 | 319 | 276 |
| Globe (T-pattern, plug disk) | 9.0 | 161 | 139 |
In a real line the valve shares the pressure drop with the pipe, so the curve you get — the installed characteristic — bends towards quick opening. Valve authority N, the share of the run’s pressure drop the open valve takes, says how much: below about 0.25 a linear valve behaves almost like an on/off valve.
Cavitation, Flashing and Choked Flow
Just past the throat the jet is fastest and the pressure lowest: the vena contracta, at pvc = p1 − Δp/FL². If it falls below the vapour pressure, bubbles form and collapse violently downstream — cavitation. If the outlet itself stays below the vapour pressure, the vapour never collapses — flashing. Past Δp = FL²(p1 − FF·pv) the flow stops rising however low the outlet pressure goes — choked flow (ISA-75.01, IEC 60534). Ball and butterfly valves (FL ≈ 0.6) dip far deeper than globe valves (FL ≈ 0.9) for the same drop, so they cavitate first; hot water, with its higher vapour pressure, flashes far more easily.
Water Hammer When a Valve Closes
Shut a valve and the water arriving at it must stop. The stop travels back up the pipe as a pressure wave at about 1300 m/s in a steel pipe, and behind it the pressure has risen by Δp = ρ·a·Δv (Joukowsky). Stopping 2 m/s of water gives about 26 bar. A valve that shuts faster than 2L/a sees all of it; a slower closure lets the relief wave from the supply end cancel part. What matters is how fast the flow stops: a ball valve passes nearly full flow until the last few degrees, so even a slow turn of the lever can hammer a long line.
Control Valve Simulator: Actuator, Positioner and Characteristic
A control valve is a throttling body with a spring-and-diaphragm actuator and usually a positioner, driven by a 4–20 mA signal from a controller. The Control valve lab mode builds one from a cage-guided globe, a V-notch ball or a high-performance butterfly. Air at 0.2–1.0 bar (3–15 psi, the bench set) balances the spring, so travel follows pressure; packing friction makes the stem stick and jump, with a dead band of 2Fs/(k·L) that a positioner removes. The trim sets the inherent characteristic (linear, equal percentage f = Rx−1, or quick opening), and the line bends it into the installed characteristic Q/Qmax = f/√(N + (1 − N)f²). An air-to-open valve fails closed and needs a reverse-acting controller; an air-to-close valve fails open and needs a direct-acting one. The lab runs a flow loop and a tank level loop with a PI controller, and sizes valves for water, gas and steam by ISA-75.01. The pneumatics behind the actuator are the same as in the Pneumatic Circuit Simulator and Electro-Pneumatic Circuit Simulator.
Who Uses This Simulator?
Engineering and diploma students in fluid mechanics, process control and plant design; ITI and apprentice fitters, plumbers and instrument mechanics learning the valve types; process operators and maintenance staff who want to see inside the valves they work with; and instructors who need to show cavitation, choked flow and water hammer live rather than describe them.
Frequently Asked Questions
What are the main types of valves?
Classified by function, isolation valves (gate, ball, plug) are either fully open or fully shut; regulation valves (globe, needle, butterfly, diaphragm) throttle the flow anywhere between; and non-return valves (check valves) let the flow pass one way only. Classified by how the closure member moves, gate valves slide across the seat, globe and needle valves move toward it, ball, plug and butterfly valves turn a quarter turn, diaphragm valves flex, and check valves are moved by the flow itself.
What is the difference between a gate valve and a globe valve?
A gate valve slides a wedge across the bore and is meant to be fully open or fully shut; open, it is a clear bore with a loss coefficient of about 0.17. A globe valve lowers a disc onto a horizontal seat, so the flow follows an S-shaped path; it costs more pressure (K about 9 for a plug disk) but changes the flow smoothly over its whole stroke, so it is the valve for throttling.
What causes cavitation in a valve?
Just past the valve throat the jet is fastest and the pressure lowest, at the vena contracta. If that pressure falls below the liquid's vapour pressure, vapour bubbles form, and they collapse violently when the pressure recovers downstream, eroding the trim and the pipe. Valves with high pressure recovery, such as ball and butterfly valves (F_L about 0.6), dip deeper for the same pressure drop than globe valves (F_L about 0.9), so they cavitate sooner.
What is the difference between an air-to-open and an air-to-close control valve?
An air-to-open valve is pushed open by air on its diaphragm and closed by its spring, so if the instrument air fails it shuts: it fails closed, which suits fuel gas or steam to a heater. An air-to-close valve is pushed shut by air and opened by its spring, so it fails open, which suits cooling water. The controller action must match: with an air-to-open valve on a flow loop the controller is reverse acting, and with an air-to-close valve it must be direct acting, or the loop drives the valve the wrong way.
What is the difference between a relief valve and a safety valve?
Both are spring-loaded valves that open when the pressure passes their set pressure. A relief valve, used on liquids, opens gradually in proportion to the overpressure and is fully open about 10 % above the set pressure. A safety valve, used on steam and gas, pops fully open at the set pressure and stays open until the pressure has fallen by its blowdown, about 7 %, before it reseats. If the inlet pipe loses more than 3 % of the set pressure, either can chatter, slamming open and shut.
Can I simulate a control valve loop online?
Yes. The Control valve lab mode builds a control valve from a body (cage-guided globe, V-notch ball or high-performance butterfly), a trim characteristic, a spring-and-diaphragm actuator set air to open or air to close, and a positioner or a plain I/P converter. Run it on a bench signal, a flow loop or a tank-level loop with a PI controller, step the set point, cut the instrument air to see the fail position, and size the valve to ISA-75.01 for liquid, gas or steam. It runs free in the browser in 2D and 3D.
Explore Related Simulators
- Hydraulic Circuit Simulator: directional, relief, check and flow-control valves at work in a hydraulic circuit.
- Centrifugal Pump Test Rig: throttle the delivery valve and move the pump’s duty point along its curve.
- Fluid Flow in Pipes: the Darcy friction and minor losses that share the pressure drop with a valve.
- Orifice Experiment: the vena contracta and the discharge coefficient of a jet.
- Bernoulli’s Principle: why the pressure falls where the water speeds up.
Updated