OpenWAM
TDepVolVariable.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 TDepVolVariableH
30 #define TDepVolVariableH
31 
32 #include "Constantes.h"
33 #include "TDeposito.h"
34 
35 class TDepVolVariable: public TDeposito {
36  private:
37  //---------------------------------------------------------------------------
38  // VARIABLES PRIVADAS
39  //---------------------------------------------------------------------------
40 
41  int FNumeroCompresorVol;
42  double FLBiela;
43  double FCarrera;
44  double FDiametro;
45  double FDescentramiento;
46  double FRelCompre;
47  double FDesfase;
48  double FVolumenMuerto;
49  double FAngulo;
50 
51  double FRegimen;
52  nmRegimenValv FControlRegimen;
53  double FRelacionVelocidades;
54 
55  //---------------------------------------------------------------------------
56  // FUNCIONES PRIVADAS
57  //---------------------------------------------------------------------------
58 
59  double CalculaVolumen(double CrankAngle, double carrera, double lbiela, double diametro, double vol_muerto);
60 
61  public:
62  //---------------------------------------------------------------------------
63  // VARIABLES PUBLICAS
64  //---------------------------------------------------------------------------
65 
66  double getRegimen() {
67  return FRegimen;
68  }
69  ;
70  double getRelacionVelocidades() {
71  return FRelacionVelocidades;
72  }
73  ;
74 
75  //---------------------------------------------------------------------------
76  // FUNCIONES PUBLICAS
77  //---------------------------------------------------------------------------
78 
79  TDepVolVariable(int i, int ncv, nmTipoCalculoEspecies SpeciesModel, int numeroespecies, nmCalculoGamma GammaCalculation,
80  bool ThereIsEGR);
81 
82  ~TDepVolVariable();
83 
84  void ActualizaPropiedades(double TimeCalculo);
85 
86  void IniciaVolumen(double Theta);
87 
88  void LeeDatosDepVolVariable(const char *FileWAM, fpos_t &filepos, bool HayMotor);
89 
90  void UpdateProperties0DModel(double TimeCalculo);
91 
92  void UpdateSpeed(double NewSpeed);
93 
94 };
95 //---------------------------------------------------------------------------
96 #endif
Constantes.h
TDeposito
Definition: TDeposito.h:44
TDepVolVariable
Definition: TDepVolVariable.h:35