OpenWAM
TCCUnionEntreTubos.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 TCCUnionEntreTubosH
30 #define TCCUnionEntreTubosH
31 
32 #include "TCondicionContorno.h"
33 
34 //---------------------------------------------------------------------------
35 //---------------------------------------------------------------------------
36 
38  private:
39 
40  int *FNodoFin; // Nodo del tubo en el extremo del tubo.
41  int *FIndiceCC; // Posicion del vector para tomar datos del tubo para la BC (0 Nodo izquierdo; 1 Nodo derecho)
42  double **FCC; // Caracteristica conocida del tubo.
43  double **FCD; // Caracteristica desconocida del tubo.
44  int *FNumeroTubo;
45  int *FTubo; // Almacena el numero de tubo en la condicion de contorno.
46  int FTuboActual;
47 
48  double FGamma3; // Son expresiones con Gamma. Se usan estas variables para no calcularlas tantas veces por instante de tiempo en la misma funcion.
49  double FGamma2;
50  double FGamma1;
51 
52  double FEspesor;
53  double FConductividad;
54 
55  void Estrechamiento(double CCS, double CCE, double rel_entropia, double rel_area, double smag, double *xa1, double *xa2,
56  double *xu2, double *xu1);
57 
58  void Ensanchamiento(double CCS, double CCE, double rel_entropia, double rel_area, double smag, double *xu1, double *xu2,
59  double *xa2, double *xa1, double *xx3);
60 
61  public:
62 
63  double getEspesor() {
64  return FEspesor;
65  }
66  ;
67  double getConductividad() {
68  return FConductividad;
69  }
70  ;
71 
72  TCCUnionEntreTubos(nmTypeBC TipoCC, int numCC, nmTipoCalculoEspecies SpeciesModel, int numeroespecies,
73  nmCalculoGamma GammaCalculation, bool ThereIsEGR);
74 
76 
77  void ReadBoundaryData(const char *FileWAM, fpos_t &filepos, int NumberOfPipes, TTubo **Pipe, int nDPF, TDPF **DPF);
78 
79  void CalculaCondicionContorno(double Time);
80 
81  void TuboCalculandose(int TuboActual);
82 
83 // void CalculaCaracteristicas(double Time);
84 
85 };
86 
87 #endif
88 
TTubo
a Finite differences pipe.
Definition: TTubo.h:116
TDPF
Definition: TDPF.h:45
TCondicionContorno
Definition: TCondicionContorno.h:54
TCCUnionEntreTubos
Definition: TCCUnionEntreTubos.h:37