Hydraulic Valve
Hydraulics
Run the live example
Free · no sign-up · runs in your browser
The Hydraulic Valve is a sharp-edged orifice whose flow area follows an opening between 0 (shut) and 1 (fully open). Wire a signal to Opening to drive it from a controller, a step or a slider; unwired, the opening parameter holds.
A shut valve keeps a tiny leakage area, so the network stays solvable.
Real-World Analog: Represents a proportional flow control valve, metering throttle valve, or directional spool valve governing oil flow via opening command.
Mathematical Model
Where:
- For
|q| ≫ q_cthis is the orifice equationq = Cd·A·√(2Δp/ρ) q_cis the flow at Reynolds number 12, where the orifice turns laminar; it keeps the slope finite at zero flowuis the opening,λthe leakage fraction
Inputs & Outputs
| Direction | ID | Label | Type | Status |
|---|---|---|---|---|
| → In | p |
A | number | Required |
| → In | n |
B | number | Required |
| → In | in |
Opening | number | Optional |
| → In | H |
H | number | Optional |
| ← Out | q_diss |
Q_diss | number | Output |
Parameters
| Parameters | Label | Type | Default | Description |
|---|---|---|---|---|
diameter |
Orifice diameter | number | 0.005 |
Diameter of the fully open flow area |
discharge_coefficient |
Discharge coefficient | number | 0.7 |
Cd of the orifice; 0.6–0.7 for a sharp edge |
opening |
Opening | number | 1 |
Used when the Opening input is not wired |
leakage_fraction |
Leakage area | number | 0.000001 |
Area left when shut, as a fraction of the full area |
Usage Examples
Proportional Orifice Throttling
The example examples/basic-hydraulicvalve.json throttles oil flow between a 20 bar supply and atmospheric tank from 100% to 20% area, verifying the orifice pressure-flow characteristic.
Valve closing against a relief valve
The example examples/basic-hydraulicpipe.json feeds a valve from a 20 bar oil supply through a pipe.
Remarks & Best Practices
- Opening is clamped to [0, 1].
- Closing fast against a pump needs a relief path; see Relief Valve.
- Gauge pressure: every hydraulic pressure is relative to ambient; an open tank is 0 Pa.
- Units: pressure in Pa (1 bar = 100 000 Pa), flow in m³/s (1 L/min ≈ 1.667e-5 m³/s).
Related Components
- FluidReservoir: Fluid Reservoir
- HydraulicPipe: Hydraulic Pipe
- ReliefValve: Relief Valve
- HydraulicVolume: Hydraulic Volume
- PressureSensor: Pressure Sensor
- FlowSensor: Flow Sensor