OpenWAM
TTable1D.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 TTable1DH
30 #define TTable1DH
31 
32 #include "TController.h"
33 //#include "interp_1d.h"
34 //---------------------------------------------------------------------------
35 
37 class TTable1D: public TController {
38  private:
39 
40  int fID;
41  int fDimensiones;
42  dVector fX_map;
43  dVector fY_map;
44 
45  Base_interp *fDatos;
46 
47  double fOutput;
48 
49  double fPeriod;
50 
51  nmTipoInterpolacion fTipo;
52 
53  public:
54 
56  TTable1D(int i
57  );
58 
60  ~TTable1D();
61 
63  double Output(double Time
64  );
65 
67  void LeeController(const char *FileWAM,
68  fpos_t &filepos
69  );
70 
72  void AsignaObjetos(TSensor **Sensor,
73  TController **Controller
74  );
75 
77  void LeeResultadosMedControlador(const char *FileWAM,
78  fpos_t &filepos
79  );
80 
82  void LeeResultadosInsControlador(const char *FileWAM,
83  fpos_t &filepos
84  );
85 
87  void CabeceraResultadosMedControlador(stringstream& medoutput
88  );
89 
91  void CabeceraResultadosInsControlador(stringstream&
92  insoutput
93  );
94 
96  void ImprimeResultadosMedControlador(stringstream& medoutput
97  );
98 
100  void ImprimeResultadosInsControlador(stringstream& insoutput
101  );
102 
104  void IniciaMedias();
105 
108 
110  void AcumulaResultadosMediosController(double Actual
111  );
112 
115 
116 };
117 
118 #endif
TTable1D::LeeResultadosMedControlador
void LeeResultadosMedControlador(const char *FileWAM, fpos_t &filepos)
Definition: TTable1D.cpp:131
TTable1D::~TTable1D
~TTable1D()
Definition: TTable1D.cpp:46
TController
Definition: TController.h:37
TTable1D::LeeResultadosInsControlador
void LeeResultadosInsControlador(const char *FileWAM, fpos_t &filepos)
Definition: TTable1D.cpp:159
TTable1D::AsignaObjetos
void AsignaObjetos(TSensor **Sensor, TController **Controller)
Definition: TTable1D.cpp:123
TTable1D::ResultadosMediosController
void ResultadosMediosController()
Definition: TTable1D.cpp:263
TTable1D::AcumulaResultadosMediosController
void AcumulaResultadosMediosController(double Actual)
Definition: TTable1D.cpp:282
TTable1D::ImprimeResultadosMedControlador
void ImprimeResultadosMedControlador(stringstream &medoutput)
Definition: TTable1D.cpp:219
TTable1D::CabeceraResultadosInsControlador
void CabeceraResultadosInsControlador(stringstream &insoutput)
Definition: TTable1D.cpp:203
TTable1D::ResultadosInstantController
void ResultadosInstantController()
Definition: TTable1D.cpp:302
TTable1D::IniciaMedias
void IniciaMedias()
Definition: TTable1D.cpp:249
TTable1D::LeeController
void LeeController(const char *FileWAM, fpos_t &filepos)
Definition: TTable1D.cpp:61
Base_interp
Definition: Math_wam.h:285
TTable1D::Output
double Output(double Time)
Definition: TTable1D.cpp:50
TTable1D::CabeceraResultadosMedControlador
void CabeceraResultadosMedControlador(stringstream &medoutput)
Definition: TTable1D.cpp:187
TTable1D
Definition: TTable1D.h:37
TTable1D::ImprimeResultadosInsControlador
void ImprimeResultadosInsControlador(stringstream &insoutput)
Definition: TTable1D.cpp:234
TSensor
Definition: TSensor.h:42
dVector
std::vector< double > dVector
Double vector.
Definition: Math_wam.h:70
TTable1D::TTable1D
TTable1D(int i)
Definition: TTable1D.cpp:35