OpenWAM
TTurbPosition.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 TTurbPositionH
30 #define TTurbPositionH
31 
32 #include "TIsoSpeedLine.h"
33 //---------------------------------------------------------------------------
34 
36  private:
37 
38  double FPosition;
39  double FAngle;
40 
41  double FStatorSec;
42  double FRotorSec;
43 
44  double FEfficiency;
45 
46  double FSpeedMin;
47  double FSpeedMax;
48 
49  double FPowerMin;
50  double FPowerMax;
51 
52  int FLines;
53 
54  std::vector<TIsoSpeedLine> FSpeedLine;
55  std::vector<double> FERMax;
56  std::vector<double> h_FERMax;
57  std::vector<double> FERMin;
58  std::vector<double> h_FERMin;
59  std::vector<double> FSpeed;
60 
61  public:
62 
63  TTurbPosition();
64  ~TTurbPosition();
65 
66  void ReadTurbinPosition(FILE *Input, int rows, double pos, double ang);
67 
68  void EffectiveArea(double Area, bool CalculaGR, double Diam1, double Diam2, double Diam3, double n_limit);
69 
70  void CalculatePower(double Tin);
71 
72  void PutPosition(double Pos);
73 
74  void InterpolaPosicion(double n, double er);
75 
76  void SearchMapLimits();
77 
78  double StatorSec() /*{return FStatorSec;}*/;
79 
80  double RotorSec() /*{return FRotorSec;}*/;
81 
82  double Rack() /*{return FPosition;}*/;
83 
84  double Efficiency() /*{return FEfficiency;}*/;
85 
86  void PrintTurbinePosition(FILE *Fich);
87 
88  double MinPowerLimit(double rtc);
89 
90  double MaxPowerLimit(double rtc);
91 
92  void AdiabaticEfficiency(TTC_HTM *HTM, double TinT, double TinC);
93 
94 };
95 
96 #endif
TTC_HTM
Definition: TTC_HTM.h:307
TTurbPosition
Definition: TTurbPosition.h:35