OpenWAM
TTurbineMap.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 TTurbineMapH
30 #define TTurbineMapH
31 
32 #include "TTurbPosition.h"
33 
34 class TTurbineMap {
35  private:
36 
37  double FDiamIN;
38  double FDiamOUT;
39  int FNumPositions;
40 
41  std::vector<TTurbPosition> FTurbPosition;
42 
43  bool FFixedTurbine;
44 
45  bool FIsAdiabatic;
46  double FTempMeasure;
47 
48  double FStatorES;
49  double FRotorES;
50  double FEffTurb;
51 
52  dVector FPowerMin;
53  dVector FPowerMax;
54 
55  public:
56  TTurbineMap();
57 
58  ~TTurbineMap();
59 
60  void LoadTurbineMap(FILE *Input, double Diam1, double Diam2, double Diam3, double Diam4, double CriticalAngle);
61 
62  void CurrentEffectiveSection(double n, double er, double rack, double T10T00);
63 
64  double StatorEF() {
65  return FStatorES;
66  }
67  ;
68 
69  double RotorEF() {
70  return FRotorES;
71  }
72  ;
73 
74  double EffTurb() {
75  return FEffTurb;
76  }
77  ;
78 
79  double getTempMeasure() {
80  return FTempMeasure;
81  }
82  ;
83 
84  void PrintFinalMap(FILE *fich);
85 
86  void CalculateAdiabaticEfficiency(TTC_HTM *HTM, double TinC);
87 
88  double TempMeasure() {
89  return FTempMeasure;
90  }
91  ;
92 
93 };
94 // ---------------------------------------------------------------------------
95 #endif
TTC_HTM
Definition: TTC_HTM.h:307
TTurbineMap
Definition: TTurbineMap.h:34
dVector
std::vector< double > dVector
Double vector.
Definition: Math_wam.h:70