OpenWAM
TTurbinaSimple.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 TTurbinaSimpleH
30 #define TTurbinaSimpleH
31 
32 #include <iostream>
33 #ifdef __BORLANDC__
34 #include <vcl.h>
35 #endif
36 #include "Constantes.h"
37 #include "TTurbina.h"
38 
39 //---------------------------------------------------------------------------
40 //---------------------------------------------------------------------------
41 
42 class TTurbinaSimple: public TTurbina {
43  private:
44  //---------------------------------------------------------------------------
45  // VARIABLES PRIVADAS
46  //---------------------------------------------------------------------------
47 
48  //---------------------------------------------------------------------------
49  // FUNCIONES PRIVADAS
50  //---------------------------------------------------------------------------
51 
52  public:
53  //---------------------------------------------------------------------------
54  // VARIABLES PUBLICAS
55  //---------------------------------------------------------------------------
56 
57  double GetEfficiency() {
58  return FRendTurbina[0];
59  }
60  ;
61 
62  //---------------------------------------------------------------------------
63  // FUNCIONES PUBLICAS
64  //---------------------------------------------------------------------------
65 
66  TTurbinaSimple(int i, nmTipoCalculoEspecies SpeciesModel, int numeroespecies, nmCalculoGamma GammaCalculation,
67  bool ThereIsEGR);
68 
69  ~TTurbinaSimple();
70 
71  void CalculaCondicionTurbina(double TimeCalculo);
72 
73  void AsignaEntradaSalidaCC();
74 
75  void ImprimeResultadosMediosPantalla();
76 
77  void ReadAverageResultsTurb(const char *FileWAM, fpos_t &filepos);
78 
79  void CabeceraResultadosMedTurb(stringstream& medoutput);
80 
81  void ImprimeResultadosMedTurb(stringstream& medoutput);
82 
83  void IniciaMedias();
84 
85  void AcumulaMedias(double Tiempo);
86 
87  void LeeResultadosInstantTurb(const char *FileWAM, fpos_t &filepos);
88 
89  void CabeceraResultadosInstantTurb(stringstream& insoutput);
90 
91  void ImprimeResultadosInstantTurb(stringstream& insoutput);
92 
93  void ResultadosInstantTurb();
94 
95  void CalculaResultadosMediosTurb();
96 
97  void UpdateProperties0DModel(double TimeCalculo);
98 
99 };
100 
101 //---------------------------------------------------------------------------
102 #endif
Constantes.h
TTurbina
Definition: TTurbina.h:41
TTurbinaSimple
Definition: TTurbinaSimple.h:42