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
pneumatic_valve.h
Go to the documentation of this file.
1#pragma once
2
34namespace pneumatic_valve {
35
45inline constexpr double kAirFlowFactor = 0.6875;
46
47// ============================================================
48// Flow Rate (Cv = 1)
49// ============================================================
50
57 double inlet_pressure = 0.0;
58 double outlet_pressure = 0.0;
59};
60
67 double flow_rate = 0.0;
68};
69
100
101// ============================================================
102// Flow Coefficient (Cv)
103// ============================================================
104
110struct CvInput {
111 double inlet_pressure = 0.0;
112 double outlet_pressure = 0.0;
113 double flow_rate = 0.0;
114};
115
121struct CvResult {
122 double flow_coefficient = 0.0;
123};
124
153
154} // namespace pneumatic_valve
Pneumatic valve flow rate and flow coefficient (Cv) calculations.
constexpr double kAirFlowFactor
Empirical air flow constant for dry air at standard conditions (60°F, 14.696 psia).
CvResult calculateCv(const CvInput &input)
Calculates the valve flow coefficient (Cv) for a pneumatic valve.
FlowRateResult calculateFlowRate(const FlowRateInput &input)
Calculates the air flow rate through a pneumatic valve with unit flow coefficient (Cv = 1).
Input parameters for the valve flow coefficient (Cv) calculation.
double outlet_pressure
Outlet (downstream) absolute pressure .
double flow_rate
Measured or required air flow rate .
double inlet_pressure
Inlet (upstream) absolute pressure .
Result of the valve flow coefficient (Cv) calculation.
double flow_coefficient
Dimensionless valve flow coefficient (Cv) .
Input parameters for the flow rate calculation (Cv = 1).
double outlet_pressure
Outlet (downstream) absolute pressure .
double inlet_pressure
Inlet (upstream) absolute pressure .
Result of the flow rate calculation (Cv = 1).
double flow_rate
Air flow rate through a valve with Cv = 1 .