OpenWAM
Source
Turbocompressor
TInterpMapaComp.cpp
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
#pragma hdrstop
30
31
#include "TInterpMapaComp.h"
32
33
TInterpMapaComp::TInterpMapaComp(
dVector
Speed,
dMatrix
Mass,
dMatrix
Pre,
dMatrix
Eff) {
34
TCompIsoReg
*IsoReg;
35
36
fRegimen = Speed;
37
38
for
(
Uint
i = 0; i < Speed.size(); ++i) {
39
IsoReg =
new
TCompIsoReg
(Speed[i], Mass[i], Pre[i], Eff[i]);
40
fIsoReg.push_back(IsoReg);
41
delete
IsoReg;
42
}
43
44
}
45
46
TInterpMapaComp::~TInterpMapaComp() {
47
48
}
49
50
//---------------------------------------------------------------------------
51
52
#pragma package(smart_init)
Uint
unsigned int Uint
Unsigned integer.
Definition:
Math_wam.h:69
dMatrix
std::vector< std::vector< double > > dMatrix
2-dimensional double matrix
Definition:
Math_wam.h:71
TCompIsoReg
Definition:
TCompIsoReg.h:36
dVector
std::vector< double > dVector
Double vector.
Definition:
Math_wam.h:70
Generated on Tue Jun 22 2021 07:09:40 for OpenWAM by
1.8.17