Unit test for Orifice (25 mm bore in a 50 mm pipe, area ratio 0.25). from_dp is pressure-driven and from_mflow uses a sinusoidal flow, verifying the loss and flow reversal.
from_dp
from_mflow