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#pragma once
2
12#include "PipeData.h"
13
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
Implementations of Pipe Data of a compressed air system.
AirVelocity(double airFlow, double pipePressure, double atmosphericPressure)
Definition AirVelocity.h:27