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
AirVelocity.h
Go to the documentation of this file.
1
10#ifndef TOOLS_SUITE_AIRVELOCITY_H
11#define TOOLS_SUITE_AIRVELOCITY_H
12
13#include "PipeData.h"
14
16 public:
28 AirVelocity(double airFlow, double pipePressure, double atmosphericPressure)
29 : airFlow(airFlow), pipePressure(pipePressure), atmosphericPressure(atmosphericPressure) {}
30
31 PipeData calculate() {
32 auto const compressedAirVelocity = [this](const double traverseArea) {
33 return (airFlow * atmosphericPressure / (pipePressure + atmosphericPressure)) * (144 / traverseArea) *
34 (1.0 / 60);
35 };
36
37 return PipeData(compressedAirVelocity);
38 }
39
40 private:
41 double airFlow, pipePressure, atmosphericPressure;
42};
43
44#endif
Implementations of Pipe Data of a compressed air system.
AirVelocity(double airFlow, double pipePressure, double atmosphericPressure)
Definition AirVelocity.h:28