MEASUR-Tools-Suite v1.0.11
The MEASUR Tools Suite is a collection of industrial efficiency calculations written in C++ and with bindings for compilation to WebAssembly.
Loading...
Searching...
No Matches
orifice_method.h
Go to the documentation of this file.
1#pragma once
2
13#include <cmath>
14
15#include "physics/constants.h"
16
45namespace orifice_method {
46
47// ============================================================
48// Orifice Method
49// ============================================================
50
56struct Input {
57 double operating_time = 0.0;
58 double air_temp = 0.0;
60 double discharge_coef = 1.0;
61 double diameter = 0.0;
62 double supply_pressure = 0.0;
63 int num_orifices = 1;
64};
65
71struct Result {
72 double standard_density = 0.0;
73 double sonic_density = 0.0;
74 double leak_velocity = 0.0;
75 double leak_rate_lbm_min = 0.0;
76 double leak_rate_scfm = 0.0;
77 double leak_rate_estimate = 0.0;
78 double annual_consumption = 0.0;
79};
80
239Result calculate(const Input& input);
240
241} // namespace orifice_method
Defines physical constants and unit conversions.
Compressed air leak flow estimation using orifice pressure and geometry.
Result calculate(const Input &input)
Estimates compressed air leak flow rate and annual consumption using the orifice method.
constexpr double kAtmosphericPressurePsi
Standard atmospheric pressure at sea level .
Definition constants.h:68
Input parameters for the orifice method compressed air leak calculation.
double diameter
Orifice (leak opening) diameter .
int num_orifices
Number of identical orifice leak points .
double discharge_coef
Orifice discharge coefficient, accounting for vena contracta .
double atm_pressure
Local atmospheric (barometric) pressure .
double operating_time
Annual system operating time .
double air_temp
Compressed air temperature at the leak point .
double supply_pressure
Compressed air supply pressure (gauge) .
Result of the orifice method leak flow rate and annual consumption calculation.
double leak_rate_lbm_min
Mass flow rate of leaked air through one orifice .
double standard_density
Air density at standard (atmospheric) conditions .
double leak_rate_scfm
Volumetric flow rate of leaked air through one orifice .
double leak_velocity
Sonic air velocity at the orifice throat .
double sonic_density
Air density at the isentropic sonic throat .
double leak_rate_estimate
Total volumetric leak flow rate through all orifices .
double annual_consumption
Estimated annual compressed air loss .