OpenWAM
TConcentrico.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 TConcentricoH
30 #define TConcentricoH
31 
32 #include "Constantes.h"
33 #include "Globales.h"
34 
35 #include <cstdio>
36 #include <iostream>
37 //---------------------------------------------------------------------------
38 //---------------------------------------------------------------------------
39 
40 class TTubo;
41 class TDPF;
42 class TCondicionContorno;
43 class TBloqueMotor;
44 
45 class TConcentrico {
46  protected:
47 //---------------------------------------------------------------------------
48 // VARIABLES PRIVADAS
49 //---------------------------------------------------------------------------
50 
51  int FNumeroConcentrico;
52  int FNumeroTubos;
53  int FNumeroNodosTemp;
54  int FCicloTubo; // Controla el c�lculo de la Temp de pared una vez por ciclo.
55  int FCicloActual;
56  int FDuracionCiclo;
57  int FNumCiclosSinInerciaTermica;
58  int FNumTuboInterno;
59  int FNumTuboExterno;
60  int FNumDPFInterna;
61 
62  double FEspesor_fluido;
63  double FEspesorTotalInt;
64  double FEspesorTotalExt;
65  double FDiametroExtGap;
66 
67  double FSUMTime;
68 
69  double *FTg;
70  double *FTpantant;
71  double *FTpantpos;
72  double *FTpant0;
73  double *FTpant1;
74  double *FTpant2;
75  double ***FTPared;
76  double ***FTParedAnt;
77 
78  double *FRg_int; // Resistencia de convecci�n en el tubo interior
79  double *FRg_int_ext; // Resistencia de convecci�n del tubo interior al gas de la c�mara de aire
80  double *FRg_ext_int; // Resistencia de convecci�n del tubo exterior al gas de la c�mara de aire
81  double *FR_ext; // Resistencia del tubo exterior con el medio ambiente
82  double *FR_int_radiacion; // Resistencia por radiaci�n entre las parades del tubo interior y las del tubo exterior
83  double *FR_int_RadExt; // Resistencia radial del tubo interno entre el nodo medio y el exterior
84  double *FR_int_AxiAnt; // Resistencia axial del tubo interno con el nodo anterior
85  double *FR_int_AxiPos; // Resistencia axial del tubo interno con el nodo posterior
86  double *FR_int_RadInt; // Resistencia radial del tubo interno entre el nodo medio y el interior
87  double *FR_ext_RadExt; // Resistencia radial del tubo externo entre el nodo medio y el exterior
88  double *FR_ext_AxiAnt; // Resistencia axial del tubo externo con el nodo anterior
89  double *FR_ext_AxiPos; // Resistencia axial del tubo externo con el nodo posterior
90  double *FR_ext_RadInt; // Resistencia radial del tubo externo entre el nodo medio y el interior
91 
92  double *FCapIntExt; // Capacidad t�rmica del tubo interno en el nodo externo
93  double *FCapIntMed; // Capacidad t�rmica del tubo interno en el nodo medio
94  double *FCapIntInt; // Capacidad t�rmica del tubo interno en el nodo interno
95  double *FCapExtExt; // Capacidad t�rmica del tubo externo en el nodo externo
96  double *FCapExtMed; // Capacidad t�rmica del tubo externo en el nodo medio
97  double *FCapExtInt; // Capacidad t�rmica del tubo interno en el nodo interno
98 
99  double ***FSUMTPTuboIntPro;
100  double ***FSUMTPTuboExtPro;
101 
102  TTubo **FTubo;
103  TDPF **FDPF;
104  bool FHayDPF;
105 
106 //---------------------------------------------------------------------------
107 // FUNCIONES PRIVADAS
108 //---------------------------------------------------------------------------
109 
110  public:
111 //---------------------------------------------------------------------------
112 // VARIABLES PUBLICAS
113 //---------------------------------------------------------------------------
114 
115 //---------------------------------------------------------------------------
116 // FUNCIONES PUBLICAS
117 //---------------------------------------------------------------------------
118  TConcentrico();
119 
120  ~TConcentrico();
121 
122  virtual void LeeDatosTuboConcentrico(const char *FileWAM, fpos_t &filepos, TTubo **Tubo, TDPF **DPF) = 0;
123 
124  virtual void CalculaTemperaturaPared(TBloqueMotor **Motor, double theta, TCondicionContorno **CC) = 0;
125 
126  virtual void CalculaTemperaturaParedSinMotor(TCondicionContorno **CC) = 0;
127 
128  virtual void CalculaResistenciasdePared(TCondicionContorno **CC) = 0;
129 
130  double GetTiempo(int i);
131 
132  double GetTiempoDPF();
133 
134  void PutTiempo(int i, double Tiempo);
135 
136  void PutTiempoDPF(double Tiempo);
137 
138  int GetNumTubo(int i);
139 
140  int GetNumDPF();
141 
142  int GetNumTuboExterno();
143 
144  double GetTPared(int j, int k, int i);
145 
146  double GetEspesorFluido();
147 
148  double GetRg_ext_int(int i);
149 
150  bool GetHayDPF();
151 
152 };
153 
154 //---------------------------------------------------------------------------
155 #endif
TTubo
a Finite differences pipe.
Definition: TTubo.h:116
Constantes.h
TDPF
Definition: TDPF.h:45
TCondicionContorno
Definition: TCondicionContorno.h:54
TBloqueMotor
Definition: TBloqueMotor.h:43
TConcentrico
Definition: TConcentrico.h:45