Variable orifice
hydraulic.variable_orifice
Orifice whose flow area is the input signal times A_max. The input is clamped to 0..1. Same turbulent law and low-pressure blend as the orifice.
Ports
| Name | Domain | Direction |
|---|---|---|
u | signal | in |
a | hydraulic | |
b | hydraulic |
Parameters
| Name | Unit | Default | Range | Description |
|---|---|---|---|---|
Cd | 1 | 0.61 | 0 to ∞ | Discharge coefficient |
A | m2 | 0.00001 | 0 to ∞ | Flow area 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 |
|---|---|
dp | Pa |
q | m3/s |
Equations
dp = a.p - b.p 0 = a.q + b.q q = a.q q = min(max(u, 0), 1) * Cd * A * (2 * dp / rho) / sqrt(sqrt((2 * dp / rho)^2 + (2 * dp_reg / rho)^2))