Related Resources: calculators

Orifice Plate Flow Calculation Python Application per. ISO 5167

Orifice Plate Flow Calculation Python Application per. ISO 5167

Python Script Measurement of fluid flow by means of pressure differential devices inserted in circular-cross section conduits running per. ISO 5167-2.

Python code - This application requires knowledge of Python installation and code execution.

Principles of the method of measurement and computation

The principle of the method of measurement is based on the installation of an orifice plate into a pipeline in which a fluid is running full. The presence of the orifice plate causes a static pressure difference between the upstream and downstream sides of the plate. The mass flowrate, qm, can be determined using Equation

q m = C 1 β 4 ε π 4 d 2 2 Δ p ρ 1

The uncertainty limits can be calculated using the procedure given in Clause 8 of ISO 5167-1

Computation of the mass flowrate, which is a purely arithmetic process, can be performed by replacing the different terms on the right hand side of the basic Equation (1) by their numerical values.

Similarly, the value of volume flowrate, qv , is calculated from:

q v = q m ρ

where ρ is the fluid density at the temperature and pressure for which the volume is stated.

As will be seen later in this part of ISO 5167, the coefficient of discharge, C, is dependent on the Reynolds number, Re, which is itself dependent on qm, and has to be obtained by iteration.

The diameters d and D mentioned in the formula are the values of the diameters at working conditions. Measurements taken at any other conditions should be corrected for any possible expansion or contraction of the orifice plate and the pipe due to the values of the temperature and pressure of the fluid during the measurement.

It is necessary to know the density and the viscosity of the fluid at the working conditions. In the case of a compressible fluid, it is also necessary to know the isentropic exponent of the fluid at working conditions.

NOTE: 

  • Refunds are not awarded after Python files have been downloaded - review your membership agreement for details.
  • Units (if utilized) utilized within calculators are either SI or Imperial (some enable both SI and Imperial) and member (you) are responsible for conversions. Ensure that you verify units utilized in excel application meet your requirements before downloading. 
  • Units utilized within Python applications are either SI or Imperial (some enable both SI and Imperial) and member (you) are responsible for conversions. Ensure that you verify units utilized in excel application meet your requirements before downloading.

Premium Membership Required for download

Download: Orifice Plate Flow Calculation per. ISO 5167

Output

Orifice Plate Flow Calculation Python Application per. ISO 5167

Noter, this calculation need some adjustment that relates to temperature correction of orifice bore size (calculation may be uncorrect at high temperature - for example: superheat steam flowrate measurement)

Python Code Execution Data:

ISO_5167_2_GUI.py

Source

Python code - This application requires knowledge of Python installation and code execution.

Support:

  • Engineers Edge has tested the basic functions and operation of this application using Python 3.11.9 and supporting modules.
  • Supporting Windows application "Visual Studio Code".
  • THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Related