4/3 directional valve
hydraulic.directional_valve_4_3
Closed-center, zero-lapped valve with four ports and three positions, moved by the input signal, clamped to -1..1. Above 0 it connects P to A and B to T; below 0 it connects P to B and A to T; at 0 every port is closed. Each open path is an orifice of area |u| times A_max with the same turbulent law and low-pressure blend as the orifice. Used as a proportional or servo valve.
Ports
| Name | Domain | Direction |
|---|---|---|
u | signal | in |
P | hydraulic | |
T | hydraulic | |
A | hydraulic | |
B | hydraulic |
Parameters
| Name | Unit | Default | Range | Description |
|---|---|---|---|---|
Cd | 1 | 0.61 | 0 to ∞ | Discharge coefficient |
A_max | m2 | 0.00001 | 0 to ∞ | Flow area of each path when fully open |
rho | kg/m3 | 850 | 0 to ∞ | Fluid density |
dp_reg | Pa | 100 | 0 to ∞ | Pressure drop below which the flow turns linear, so the slope stays finite at zero |
Variables
| Name | Unit | Description |
|---|---|---|
q_PA | m3/s | Flow from P to A |
q_BT | m3/s | Flow from B to T |
q_PB | m3/s | Flow from P to B |
q_AT | m3/s | Flow from A to T |
Equations
q_PA = min(max(u, 0), 1) * Cd * A_max * (2 * (P.p - A.p) / rho) / sqrt(sqrt((2 * (P.p - A.p) / rho)^2 + (2 * dp_reg / rho)^2)) q_BT = min(max(u, 0), 1) * Cd * A_max * (2 * (B.p - T.p) / rho) / sqrt(sqrt((2 * (B.p - T.p) / rho)^2 + (2 * dp_reg / rho)^2)) q_PB = min(max(-u, 0), 1) * Cd * A_max * (2 * (P.p - B.p) / rho) / sqrt(sqrt((2 * (P.p - B.p) / rho)^2 + (2 * dp_reg / rho)^2)) q_AT = min(max(-u, 0), 1) * Cd * A_max * (2 * (A.p - T.p) / rho) / sqrt(sqrt((2 * (A.p - T.p) / rho)^2 + (2 * dp_reg / rho)^2)) P.q = q_PA + q_PB T.q = -q_BT - q_AT A.q = q_AT - q_PA B.q = q_BT - q_PB