Version 0.5.2#
Version 0.5.2 adds a cone (V-cone) differential pressure flow meter, following ISO 5167-5, and fixes the conversion of Hz to rotational speed.
New features#
Cone flow meter,
ccp.FlowCone(#193) — calculates mass and volume flow from the differential pressure of a cone meter, with an API mirroringFlowOrifice:fc = ccp.FlowCone(state, delta_p=Q_(0.1, "bar"), D=Q_(250, "mm"), dc=Q_(180, "mm")) fc.flow_m, fc.flow_v
The geometry is given by the pipe internal diameter
Dand either the cone diameterdcor the equivalent diameterd = beta * D. The discharge coefficient defaults to the ISO 5167-5 value of an uncalibrated meter (C = 0.82, 5 % uncertainty) and can be replaced by a calibrated value, a functionC(Re)or a calibration table(Re, C). Accp.fc.FlowMeterWarningis emitted when D, beta or the Reynolds number is outside the limits of the uncalibrated C, when the Reynolds number is outside a calibration table, and when p2/p1 is below 0.75, the limit of the expansibility equation.Cone meters in
Evaluation(#193) —delta_pdata from a cone meter is converted to flow withflow_meter="cone"andD,dordc, and optionallyC. Each exceeded ISO 5167-5 limit is reported once, with the number of rows.
Bug fixes#
Hz is one revolution per second (#190) — pint defines hertz as 1/s and treats radians as dimensionless, so a speed of 1 Hz converted to 1 rad/s (9.549 rpm) instead of 60 rpm. Speeds given in Hz are now converted correctly, which changes the results of any calculation that passed a speed in Hz.
Evaluationmeter checks (#193) — thetappingsdefault is now"flange", as documented; the previous default,None, was rejected byFlowOrificeand every row of adelta_pevaluation without explicit tappings was marked invalid. An invalid flow meter definition, ordelta_pdata without the meter geometry, now raises when theEvaluationis created instead of invalidating every row.