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
include
compressedAir
AirVelocity.h
Go to the documentation of this file.
1
#pragma once
2
12
#include "
PipeData.h
"
13
14
class
AirVelocity
{
15
public
:
27
AirVelocity
(
double
airFlow,
double
pipePressure,
double
atmosphericPressure)
28
: airFlow(airFlow), pipePressure(pipePressure), atmosphericPressure(atmosphericPressure) {}
29
30
PipeData
calculate() {
31
auto
const
compressedAirVelocity = [
this
](
const
double
traverseArea) {
32
return
(airFlow * atmosphericPressure / (pipePressure + atmosphericPressure)) * (144 / traverseArea) *
33
(1.0 / 60);
34
};
35
36
return
PipeData
(compressedAirVelocity);
37
}
38
39
private
:
40
double
airFlow, pipePressure, atmosphericPressure;
41
};
42
PipeData.h
Implementations of Pipe Data of a compressed air system.
AirVelocity
Definition
AirVelocity.h:14
AirVelocity::AirVelocity
AirVelocity(double airFlow, double pipePressure, double atmosphericPressure)
Definition
AirVelocity.h:27
PipeData
Definition
PipeData.h:17
Generated by
1.9.8