OpenWAM
TAcousticTurbine.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------------
2 
3 #ifndef TAcousticTurbineH
4 #define TAcousticTurbineH
5 // ---------------------------------------------------------------------------
6 
7 #include "TTubo.h"
8 
40  private:
41 
42  std::vector<TTubo*> FInletPipe;
43  std::vector<TTubo*> FVolute;
44  TTubo *FOutletPipe;
45 
46  iVector FInletPipeID;
47  iVector FVoluteID;
48  int FOutletPipeID;
49 
50  public:
51  TAcousticTurbine(iVector InletPipeID, iVector VoluteID, int OutletPipeID);
52 
54 
56 
57  double T3(int i);
58 
59  double T3();
60 
61  double T30(int i);
62 
63  double P3(int i);
64 
65  double P3();
66 
67  double P30(int i);
68 
69  double ExpRatio(int i);
70 
71  double ExpRatio();
72 
73  double DiabEfficiency(int i);
74 
75  double P4();
76 
77  double T4();
78 
79  double R(int i) {
80  return FInletPipe[i]->GetRMezcla(0);
81  }
82  ;
83 
84  double SIn(int i) {
85  return FInletPipe[i]->GetArea(0);
86  }
87  ;
88 
89  double DIn(int i) {
90  return FInletPipe[i]->GetDiametro(0);
91  }
92  ;
93 
94  double DIn();
95 
96  double DOut() {
97  return FOutletPipe->GetDiametro(FOutletPipe->getNin() - 1);
98  }
99  ;
100 
101  double SOut() {
102  return FOutletPipe->GetArea(FOutletPipe->getNin() - 1);
103  }
104  ;
105 
106  double MassIn(int i);
107 
108  double MassIn();
109 
110  double MassOut();
111 
112  void AsignInPipe(TTubo **Pipe, int i) {
113  FInletPipe[i] = Pipe[FInletPipeID[i] - 1];
114  }
115  ;
116 
117  void AsignOutPipe(TTubo **Pipe) {
118  FOutletPipe = Pipe[FOutletPipeID - 1];
119  }
120  ;
121 
122 };
123 
124 #endif
125 
TTubo
a Finite differences pipe.
Definition: TTubo.h:116
TAcousticTurbine
Definition: TAcousticTurbine.h:39
TTubo::GetDiametro
double GetDiametro(int i) const
Gets the cell diameter.
Definition: TTubo.cpp:5436
iVector
std::vector< int > iVector
Integer vector.
Definition: Math_wam.h:72
TTubo.h
TTubo::GetArea
double GetArea(int i) const
Gets the cross section at a given cell.
Definition: TTubo.cpp:5408