Orifice

hydraulic.orifice

Sharp-edged orifice in turbulent flow: q = Cd A sqrt(2 dp / rho), signed with dp. Below about dp_reg the law blends into a straight line through zero so the solver never meets an infinite slope; well above dp_reg the error is about (dp_reg / dp)^2 / 4.

Ports

NameDomain
ahydraulic
bhydraulic

Parameters

NameUnitDefaultRangeDescription
Cd10.610 to ∞Discharge coefficient
Am20.000010 to ∞Flow area
rhokg/m38500 to ∞Fluid density
dp_regPa1000 to ∞Pressure drop below which the flow turns linear, so the slope stays finite at zero

Variables

NameUnit
dpPa
qm3/s

Equations

dp = a.p - b.p
0 = a.q + b.q
q = a.q
q = Cd * A * (2 * dp / rho) / sqrt(sqrt((2 * dp / rho)^2 + (2 * dp_reg / rho)^2))