← All exercises

DP Flow

medium

Converts a differential-pressure reading into a flow rate using a square-root characteristic.

What it teaches

Flow through a restriction raises a pressure drop that grows with the square of the velocity, so recovering flow from that drop means taking a square root — the job every DP flow meter needs done, known on site as square-root extraction. Normalize the reading against full scale, root it, then scale to engineering units. The counter-intuitive part: a quarter of full-scale pressure is half of full-scale flow, not a quarter.

Inputs and outputs

TagTypeDefaultDescription
In_DPREAL25Differential pressure from the transmitter
Cfg_DPMaxREAL100Differential pressure at full-scale flow
Cfg_FlowMaxREAL400Flow rate at full-scale differential pressure
Out_FlowREALComputed flow rate in engineering units

Required behavior