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