MEASUR-Tools-Suite v1.2.4
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
pipe_data.h
Go to the documentation of this file.
1#pragma once
2
11#include <functional>
12
21namespace pipe_data {
22
31struct PipeData {
36 PipeData() = default;
37
61 PipeData(double one_half, double three_fourths, double one, double one_and_one_fourth, double one_and_one_half,
62 double two, double two_and_one_half, double three, double three_and_one_half, double four, double five,
63 double six, double eight, double ten, double twelve, double fourteen, double sixteen, double eighteen,
64 double twenty, double twenty_four);
65
71 explicit PipeData(const std::function<double(double)>& velocity_from_area);
72
73 double oneHalf = 0.0;
74 double threeFourths = 0.0;
75 double one = 0.0;
76 double oneAndOneFourth = 0.0;
77 double oneAndOneHalf = 0.0;
78 double two = 0.0;
79 double twoAndOneHalf = 0.0;
80 double three = 0.0;
81 double threeAndOneHalf = 0.0;
82 double four = 0.0;
83 double five = 0.0;
84 double six = 0.0;
85 double eight = 0.0;
86 double ten = 0.0;
87 double twelve = 0.0;
88 double fourteen = 0.0;
89 double sixteen = 0.0;
90 double eighteen = 0.0;
91 double twenty = 0.0;
92 double twentyFour = 0.0;
93 double totalPipeVolume = 0.0;
94};
95
96} // namespace pipe_data
Shared pipe data for compressed air calculators.
Per-size values for standard compressed air pipe sizes.
Definition pipe_data.h:31
double twenty
Nominal 20 in value; ft3 for capacity, ft/s for velocity.
Definition pipe_data.h:91
double totalPipeVolume
Sum of per-size pipe volumes .
Definition pipe_data.h:93
double eighteen
Nominal 18 in value; ft3 for capacity, ft/s for velocity.
Definition pipe_data.h:90
double oneAndOneHalf
Nominal 1-1/2 in value; ft3 for capacity, ft/s for velocity.
Definition pipe_data.h:77
double twelve
Nominal 12 in value; ft3 for capacity, ft/s for velocity.
Definition pipe_data.h:87
double eight
Nominal 8 in value; ft3 for capacity, ft/s for velocity.
Definition pipe_data.h:85
double ten
Nominal 10 in value; ft3 for capacity, ft/s for velocity.
Definition pipe_data.h:86
double oneAndOneFourth
Nominal 1-1/4 in value; ft3 for capacity, ft/s for velocity.
Definition pipe_data.h:76
double threeAndOneHalf
Nominal 3-1/2 in value; ft3 for capacity, ft/s for velocity.
Definition pipe_data.h:81
PipeData(double one_half, double three_fourths, double one, double one_and_one_fourth, double one_and_one_half, double two, double two_and_one_half, double three, double three_and_one_half, double four, double five, double six, double eight, double ten, double twelve, double fourteen, double sixteen, double eighteen, double twenty, double twenty_four)
Constructs per-size pipe volumes from pipe lengths.
double threeFourths
Nominal 3/4 in value; ft3 for capacity, ft/s for velocity.
Definition pipe_data.h:74
double four
Nominal 4 in value; ft3 for capacity, ft/s for velocity.
Definition pipe_data.h:82
PipeData()=default
Constructs an empty pipe-data object with all values set to zero.
double twentyFour
Nominal 24 in value; ft3 for capacity, ft/s for velocity.
Definition pipe_data.h:92
double two
Nominal 2 in value; ft3 for capacity, ft/s for velocity.
Definition pipe_data.h:78
PipeData(const std::function< double(double)> &velocity_from_area)
Constructs per-size velocity results from a velocity function.
double twoAndOneHalf
Nominal 2-1/2 in value; ft3 for capacity, ft/s for velocity.
Definition pipe_data.h:79
double five
Nominal 5 in value; ft3 for capacity, ft/s for velocity.
Definition pipe_data.h:83
double one
Nominal 1 in value; ft3 for capacity, ft/s for velocity.
Definition pipe_data.h:75
double six
Nominal 6 in value; ft3 for capacity, ft/s for velocity.
Definition pipe_data.h:84
double sixteen
Nominal 16 in value; ft3 for capacity, ft/s for velocity.
Definition pipe_data.h:89
double three
Nominal 3 in value; ft3 for capacity, ft/s for velocity.
Definition pipe_data.h:80
double oneHalf
Nominal 1/2 in value; ft3 for capacity, ft/s for velocity.
Definition pipe_data.h:73
double fourteen
Nominal 14 in value; ft3 for capacity, ft/s for velocity.
Definition pipe_data.h:88