OpenWAM
TControlInyeccion.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 TControlInyeccionH
30 #define TControlInyeccionH
31 
32 #include <string.h>
33 #include <cstdio>
34 #include <iostream>
35 #ifdef __BORLANDC__
36 #include <vcl.h>
37 #endif
38 //#include <cmath>
39 #include "Globales.h"
40 //---------------------------------------------------------------------------
41 
43  private:
44 
45  FILE *FichInyeccion;
46 
47  int FNumeroInyecciones;
48  double *FMasaFuel; // Masa de combustible inyectada en cada una de las inyecciones realizadas
49  double *FSOI; // Punto de inyeccion para cada una de la inyecciones realizadas
50  double FPrail; // Presion del common rail
51  double FDiferencia_SOI; // Diferencia entre el angulo de inyeccion de la principal y el de la piloto.
52 
53  int FNumeroDatos_Prail_Regimen;
54  int FNumeroDatos_Mf_Prail;
55  int FNumeroDatos_Mf;
56  int FNumeroDatos_Regimen;
57 
58  double *FVector_Mf_mapa;
59  double *FVector_Mf_mapaPrail;
60  double *FVector_Prail_Regimen_mapa;
61  double *FVector_Regimen_mapa;
62 
63  double **FMapa_Combustible_Piloto;
64  double **FMapa_SOI_Principal;
65  double **FMapa_SOI_Piloto;
66  double **FMapa_Prail;
67 
68  public:
69 
70  int getNumeroInyecciones() {
71  return FNumeroInyecciones;
72  }
73  ;
74  double getPresionInyeccion() {
75  return FPrail;
76  }
77  ;
78 // FUNCIONES PRIVADAS
79  double GetSOI(int i);
80 
81  double GetMasaFuel(int i);
82 
84 
86 
87  void CalculaSistemaInyeccion(double MasaFuel, double Regimen);
88 
89  void LeeDatosEntrada(char *Ruta, FILE *fich);
90 
91 };
92 
93 #endif
TControlInyeccion
Definition: TControlInyeccion.h:42