OpenWAM
TAcousticCompressor.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------------*\
2 |==========================|
3  |\\ /\ /\ // O pen | OpenWAM: The Open Source 1D Gas-Dynamic Code
4  | \\ | X | // W ave |
5  | \\ \/_\/ // A ction | CMT-Motores Termicos / Universidad Politecnica Valencia
6  | \\/ \// M odel |
7  ----------------------------------------------------------------------------------
8  | License
9  |
10  | This file is part of OpenWAM.
11  |
12  | OpenWAM is free software: you can redistribute it and/or modify
13  | it under the terms of the GNU General Public License as published by
14  | the Free Software Foundation, either version 3 of the License, or
15  | (at your option) any later version.
16  |
17  | OpenWAM is distributed in the hope that it will be useful,
18  | but WITHOUT ANY WARRANTY; without even the implied warranty of
19  | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  | GNU General Public License for more details.
21  |
22  | You should have received a copy of the GNU General Public License
23  | along with OpenWAM. If not, see <http://www.gnu.org/licenses/>.
24  |
25  \*--------------------------------------------------------------------------------*/
26 
27 // ---------------------------------------------------------------------------
28 #ifndef TAcousticCompressorH
29 #define TAcousticCompressorH
30 // ---------------------------------------------------------------------------
31 
32 #include "TTubo.h"
33 #include "TDeposito.h"
34 #include "Globales.h"
35 
67  private:
68 
69  TTubo *FInletPipe;
70  TTubo *FVolute;
71  TTubo *FOutletPipe;
72 
73  TDeposito *FRotorVolume;
74  TDeposito *FStatorVolume;
75 
76  int FInletPipeID;
77  int FVoluteID;
78  int FOutletPipeID;
79 
80  int FRotorVolumeID;
81  int FStatorVolumeID;
82 
83  public:
84 
89 
94 
95  TAcousticCompressor(int InletPipeID, int VoluteID, int OutletPipeID, int RotorVolumeID, int StatorVolumeID);
96 
104  double P10();
105 
106  double P1();
107 
115  double P20();
116 
124  double P2();
125 
133  double T10();
134 
143  double T2();
144 
145  double T20();
146 
147  double T1();
148 
149  double Din();
150 
151  double CompRatio();
152 
153  void PutHeatPower(double Power);
154 
155  void PutHeatPowerIn(double Power);
156 
157  void AsignInPipe(TTubo **Pipe) {
158  FInletPipe = Pipe[FInletPipeID - 1];
159  }
160  ;
161 
162  void AsignOutPipe(TTubo **Pipe) {
163  FOutletPipe = Pipe[FOutletPipeID - 1];
164  }
165  ;
166 
167  void AsignVolute(TTubo **Pipe) {
168  FVolute = Pipe[FVoluteID - 1];
169  }
170  ;
171 
172  void AsignRotorVol(TDeposito **Volume) {
173  FRotorVolume = Volume[FRotorVolumeID - 1];
174  }
175  ;
176 
177  void AsignStatorVol(TDeposito **Volume) {
178  FStatorVolume = Volume[FStatorVolumeID - 1];
179  }
180  ;
181 
182  void AsignElementsID(int InletPipeID, int VoluteID, int OutletPipeID, int RotorVolumeID, int StatorVolumeID);
183 
184  double CRCorrector();
185 
186  double EFCorrector(double rnew, double rorig);
187 
188  double MassFlow();
189 
190  double Efficiency();
191 
192 };
193 
194 #endif
double P10()
Compute the total pressure at compressor inlet.
double T2()
Compute the temperature at compressor outlet.
double P2()
Compute the pressure at compressor outlet.
double P20()
Compute the total pressure at compressor outlet.
a Finite differences pipe.
Definition: TTubo.h:116
double T10()
Compute the total temperature at compressor inlet.