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
Public Member Functions | Public Attributes | List of all members

Per-size values for standard compressed air pipe sizes. More...

#include <pipe_data.h>

Public Member Functions

 PipeData ()=default
 Constructs an empty pipe-data object with all values set to zero.
 
 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.
 
 PipeData (const std::function< double(double)> &velocity_from_area)
 Constructs per-size velocity results from a velocity function.
 

Public Attributes

double oneHalf = 0.0
 Nominal 1/2 in value; ft3 for capacity, ft/s for velocity.
 
double threeFourths = 0.0
 Nominal 3/4 in value; ft3 for capacity, ft/s for velocity.
 
double one = 0.0
 Nominal 1 in value; ft3 for capacity, ft/s for velocity.
 
double oneAndOneFourth = 0.0
 Nominal 1-1/4 in value; ft3 for capacity, ft/s for velocity.
 
double oneAndOneHalf = 0.0
 Nominal 1-1/2 in value; ft3 for capacity, ft/s for velocity.
 
double two = 0.0
 Nominal 2 in value; ft3 for capacity, ft/s for velocity.
 
double twoAndOneHalf = 0.0
 Nominal 2-1/2 in value; ft3 for capacity, ft/s for velocity.
 
double three = 0.0
 Nominal 3 in value; ft3 for capacity, ft/s for velocity.
 
double threeAndOneHalf = 0.0
 Nominal 3-1/2 in value; ft3 for capacity, ft/s for velocity.
 
double four = 0.0
 Nominal 4 in value; ft3 for capacity, ft/s for velocity.
 
double five = 0.0
 Nominal 5 in value; ft3 for capacity, ft/s for velocity.
 
double six = 0.0
 Nominal 6 in value; ft3 for capacity, ft/s for velocity.
 
double eight = 0.0
 Nominal 8 in value; ft3 for capacity, ft/s for velocity.
 
double ten = 0.0
 Nominal 10 in value; ft3 for capacity, ft/s for velocity.
 
double twelve = 0.0
 Nominal 12 in value; ft3 for capacity, ft/s for velocity.
 
double fourteen = 0.0
 Nominal 14 in value; ft3 for capacity, ft/s for velocity.
 
double sixteen = 0.0
 Nominal 16 in value; ft3 for capacity, ft/s for velocity.
 
double eighteen = 0.0
 Nominal 18 in value; ft3 for capacity, ft/s for velocity.
 
double twenty = 0.0
 Nominal 20 in value; ft3 for capacity, ft/s for velocity.
 
double twentyFour = 0.0
 Nominal 24 in value; ft3 for capacity, ft/s for velocity.
 
double totalPipeVolume = 0.0
 Sum of per-size pipe volumes \([\unit{\cubicFoot}]\).
 

Detailed Description

The length constructor converts pipe lengths in ft to contained pipe volumes in ft3. The velocity constructor applies a velocity function to each nominal pipe's internal area in in2 and stores velocities in ft/s.

Definition at line 31 of file pipe_data.h.

Constructor & Destructor Documentation

◆ PipeData() [1/3]

pipe_data::PipeData::PipeData ( )
default

Used by embind value-object conversion for module inputs/results.

◆ PipeData() [2/3]

pipe_data::PipeData::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 
)
Parameters
[in]one_halfNominal 1/2 in pipe length \([\unit{\foot}]\)
[in]three_fourthsNominal 3/4 in pipe length \([\unit{\foot}]\)
[in]oneNominal 1 in pipe length \([\unit{\foot}]\)
[in]one_and_one_fourthNominal 1-1/4 in pipe length \([\unit{\foot}]\)
[in]one_and_one_halfNominal 1-1/2 in pipe length \([\unit{\foot}]\)
[in]twoNominal 2 in pipe length \([\unit{\foot}]\)
[in]two_and_one_halfNominal 2-1/2 in pipe length \([\unit{\foot}]\)
[in]threeNominal 3 in pipe length \([\unit{\foot}]\)
[in]three_and_one_halfNominal 3-1/2 in pipe length \([\unit{\foot}]\)
[in]fourNominal 4 in pipe length \([\unit{\foot}]\)
[in]fiveNominal 5 in pipe length \([\unit{\foot}]\)
[in]sixNominal 6 in pipe length \([\unit{\foot}]\)
[in]eightNominal 8 in pipe length \([\unit{\foot}]\)
[in]tenNominal 10 in pipe length \([\unit{\foot}]\)
[in]twelveNominal 12 in pipe length \([\unit{\foot}]\)
[in]fourteenNominal 14 in pipe length \([\unit{\foot}]\)
[in]sixteenNominal 16 in pipe length \([\unit{\foot}]\)
[in]eighteenNominal 18 in pipe length \([\unit{\foot}]\)
[in]twentyNominal 20 in pipe length \([\unit{\foot}]\)
[in]twenty_fourNominal 24 in pipe length \([\unit{\foot}]\)

◆ PipeData() [3/3]

pipe_data::PipeData::PipeData ( const std::function< double(double)> &  velocity_from_area)
explicit
Parameters
[in]velocity_from_areaFunction that returns air velocity \([\unit{\foot\per\second}]\) from a pipe internal area \([\unit{\inch\squared}]\).

Member Data Documentation

◆ eight

double pipe_data::PipeData::eight = 0.0

Definition at line 85 of file pipe_data.h.

◆ eighteen

double pipe_data::PipeData::eighteen = 0.0

Definition at line 90 of file pipe_data.h.

◆ five

double pipe_data::PipeData::five = 0.0

Definition at line 83 of file pipe_data.h.

◆ four

double pipe_data::PipeData::four = 0.0

Definition at line 82 of file pipe_data.h.

◆ fourteen

double pipe_data::PipeData::fourteen = 0.0

Definition at line 88 of file pipe_data.h.

◆ one

double pipe_data::PipeData::one = 0.0

Definition at line 75 of file pipe_data.h.

◆ oneAndOneFourth

double pipe_data::PipeData::oneAndOneFourth = 0.0

Definition at line 76 of file pipe_data.h.

◆ oneAndOneHalf

double pipe_data::PipeData::oneAndOneHalf = 0.0

Definition at line 77 of file pipe_data.h.

◆ oneHalf

double pipe_data::PipeData::oneHalf = 0.0

Definition at line 73 of file pipe_data.h.

◆ six

double pipe_data::PipeData::six = 0.0

Definition at line 84 of file pipe_data.h.

◆ sixteen

double pipe_data::PipeData::sixteen = 0.0

Definition at line 89 of file pipe_data.h.

◆ ten

double pipe_data::PipeData::ten = 0.0

Definition at line 86 of file pipe_data.h.

◆ three

double pipe_data::PipeData::three = 0.0

Definition at line 80 of file pipe_data.h.

◆ threeAndOneHalf

double pipe_data::PipeData::threeAndOneHalf = 0.0

Definition at line 81 of file pipe_data.h.

◆ threeFourths

double pipe_data::PipeData::threeFourths = 0.0

Definition at line 74 of file pipe_data.h.

◆ totalPipeVolume

double pipe_data::PipeData::totalPipeVolume = 0.0

Definition at line 93 of file pipe_data.h.

◆ twelve

double pipe_data::PipeData::twelve = 0.0

Definition at line 87 of file pipe_data.h.

◆ twenty

double pipe_data::PipeData::twenty = 0.0

Definition at line 91 of file pipe_data.h.

◆ twentyFour

double pipe_data::PipeData::twentyFour = 0.0

Definition at line 92 of file pipe_data.h.

◆ two

double pipe_data::PipeData::two = 0.0

Definition at line 78 of file pipe_data.h.

◆ twoAndOneHalf

double pipe_data::PipeData::twoAndOneHalf = 0.0

Definition at line 79 of file pipe_data.h.


The documentation for this struct was generated from the following file: