OpenWAM
TAjusteTransCalorCil.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 TAjusteTransCalorCilH
30 #define TAjusteTransCalorCilH
31 //---------------------------------------------------------------------------
32 
33 #include <cstring>
34 #include <cstdio>
35 #include <iostream>
36 #ifdef __BORLANDC__
37 #include <vcl.h>
38 #endif
39 #include "Globales.h"
40 
41 //---------------------------------------------------------------------------
42 //---------------------------------------------------------------------------
43 
45  private:
46 
47  double FErrorGastoAire;
48  double FErrorT3;
49  double FGastoAireref;
50  double FT3ref;
51 //double FCaqAdm;
52 //double FCaqEsc;
53 //int FCicloCambioTC;
54 //double FCaqAdm2;
55 //double FCaqEsc2;
56 //int FCicloCambioTC2;
57 //double FCaqAdm3;
58 //double FCaqEsc3;
59  int *FCiclo;
60  double *FCadmision;
61  double *FCescape;
62  int FNumeroTramos;
63 
64  public:
65 
66  double FCaqAdm;
67  double getCAdmision() {
68  return FCaqAdm;
69  }
70  void putCAdmision(double valor) {
71  FCaqAdm = valor;
72  }
73  ;
74  double FCaqEsc;
75  double getCEscape() {
76  return FCaqEsc;
77  }
78  void putCEscape(double valor) {
79  FCaqEsc = valor;
80  }
81  ;
82  int FCicloCambioTC;
83  int getCicloCambioTC() {
84  return FCicloCambioTC;
85  }
86  void putCicloCambioTC(int valor) {
87  FCicloCambioTC = valor;
88  }
89  ;
90  double FCaqAdm2;
91  double getCAdmision2() {
92  return FCaqAdm2;
93  }
94  void putCAdmision2(double valor) {
95  FCaqAdm2 = valor;
96  }
97  ;
98  double FCaqEsc2;
99  double getCEscape2() {
100  return FCaqEsc2;
101  }
102  void putCEscape2(double valor) {
103  FCaqEsc2 = valor;
104  }
105  ;
106  int FCicloCambioTC2;
107  int getCicloCambioTC2() {
108  return FCicloCambioTC2;
109  }
110  void putCicloCambioTC2(int valor) {
111  FCicloCambioTC2 = valor;
112  }
113  ;
114  double FCaqAdm3;
115  double getCAdmision3() {
116  return FCaqAdm3;
117  }
118  void putCAdmision3(double valor) {
119  FCaqAdm3 = valor;
120  }
121  ;
122  double FCaqEsc3;
123  double getCEscape3() {
124  return FCaqEsc3;
125  }
126  void putCEscape3(double valor) {
127  FCaqEsc3 = valor;
128  }
129  ;
130  double getErrorGastoAire() {
131  return FErrorGastoAire;
132  }
133  ;
134 
136 
138 
139  void CalculaTCC(double TiempoActual, double Regimen);
140 
141  void IniciaTCC(int NumeroTramos, int *Ciclo, double *CoefTCAdm, double *CoefTCEsc);
142 
143  double xit_(double vizq, double vder, double axid, double xif);
144 
145 };
146 #endif
TAjusteTransCalorCil
Definition: TAjusteTransCalorCil.h:44