OpenWAM
TRotorTurbina.h
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 //---------------------------------------------------------------------------
29 #ifndef TRotorTurbinaH
30 #define TRotorTurbinaH
31 
32 #include <cstdio>
33 #ifdef __BORLANDC__
34 #include <vcl.h>
35 #endif
36 #include <iostream>
37 //#include <cmath>
38 
39 #include "TTipoValvula.h"
40 
41 enum nmTipoRotor {
42  nmRotFijo = 0, nmRotVariable = 1, nmRotMapa = 2
43 };
44 
45 //---------------------------------------------------------------------------
46 //---------------------------------------------------------------------------
47 
48 class TRotorTurbina: public TTipoValvula {
49  private:
50 
51  nmTipoRotor FTipoRotor;
52  double FCDEInicial;
53  double FCDSInicial;
54 
55  double FCDVbl;
56 
57  double FAreaEff;
58 
59  double FDiametroRef;
60 
61  int FNumeroTurbina;
62 
63  int FValvula;
64 
65  public:
66 
67  TRotorTurbina(TRotorTurbina *Origen, int valv);
68 
69  TRotorTurbina();
70 
71  ~TRotorTurbina();
72 
73  int getNumeroTurbina() {
74  return FNumeroTurbina;
75  }
76  ;
77  nmTipoRotor getTipoRotor() {
78  return FTipoRotor;
79  }
80  ;
81  int getValv() {
82  return FValvula;
83  }
84  ;
85  double getCDescargaTubVol() {
86  return FCDTubVol;
87  }
88  ;
89  void PutCDVbl(double valor) {
90  FCDVbl = valor;
91  }
92  ;
93  void PutAreaEff(double valor) {
94  FAreaEff = valor;
95  }
96  ;
97 
98  void LeeDatosIniciales(const char *FileWAM, fpos_t &filepos, int norden, bool HayMotor, TBloqueMotor *Engine);
99 
100  void CalculaCD();
101 
102  void AsignaTurbina(int NTurb);
103 
104  void TipodeRotor(nmTipoRotor TipoRotor);
105 
106  void GetCDin(double Time);
107 
108  void GetCDout(double Time);
109 };
110 
111 //---------------------------------------------------------------------------
112 //---------------------------------------------------------------------------
113 #endif
TRotorTurbina
Definition: TRotorTurbina.h:48
TTipoValvula
Definition: TTipoValvula.h:53
TBloqueMotor
Definition: TBloqueMotor.h:43