OpenWAM
TControlFuel.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 TControlFuelH
30 #define TControlFuelH
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 
42 class TControlFuel {
43  private:
44 
45  FILE *FichFuel;
46  double FuelAct;
47  double FFuelDeseado;
48  int FNumeroDatos_Regimen;
49  int FNumeroDatos_Ma;
50  double *FVector_Ma_mapa;
51  double *FVector_Regimen_mapa;
52  double **FMapa_Limitador_Humos;
53 
54 //Funcion de interpolacion
55  double xit_(double vizq, double vder, double axid, double xif);
56 
57  public:
58  TControlFuel();
59 
60  ~TControlFuel();
61 
62  double getFuel() {
63  return FuelAct;
64  }
65  ;
66 
67  double getFuelDeseado() {
68  return FFuelDeseado;
69  }
70  ;
71 
72  double CalculaFuel(double MasaPorAdmision, double Regimen, double TiempoActual);
73 
74  void IniciaFuel(double mfuel);
75 
76  void LeeDatosEntrada(char *Dir, FILE *fich);
77 };
78 
79 #endif
TControlFuel
Definition: TControlFuel.h:42
TControlFuel::IniciaFuel
void IniciaFuel(double mfuel)
Definition: TControlFuel.cpp:229