1 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 // + This file is part of enGrid. +
5 // + Copyright 2008-2014 enGits GmbH +
7 // + enGrid is free software: you can redistribute it and/or modify +
8 // + it under the terms of the GNU General Public License as published by +
9 // + the Free Software Foundation, either version 3 of the License, or +
10 // + (at your option) any later version. +
12 // + enGrid is distributed in the hope that it will be useful, +
13 // + but WITHOUT ANY WARRANTY; without even the implied warranty of +
14 // + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +
15 // + GNU General Public License for more details. +
17 // + You should have received a copy of the GNU General Public License +
18 // + along with enGrid. If not, see <http://www.gnu.org/licenses/>. +
20 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21 #ifndef PHYSICALBOUNDARYCONDITION_H
22 #define PHYSICALBOUNDARYCONDITION_H
29 class PhysicalBoundaryCondition
32 private: // attributes
37 QVector
<QString
> m_VarNames
;
38 QVector
<double> m_VarValues
;
44 PhysicalBoundaryCondition();
46 void setName(QString name
) { m_Name
= name
; }
47 void setIndex(int index
) { m_Index
= index
; }
48 void setValue(int i
, double v
) { m_VarValues
[i
] = v
; }
49 void setType(QString type
);
51 QString
getName() { return m_Name
; }
52 QString
getType() { return m_Type
; }
53 int getIndex() { return m_Index
; }
54 double getVarValue(int i
) { return m_VarValues
[i
]; }
55 QString
getVarName(int i
) { return m_VarNames
[i
]; }
56 int getNumVars() { return m_VarValues
.size(); }
58 QString
getFoamP(QString version
);
59 QString
getFoamU(QString version
, vec3_t n
);
60 QString
getFoamK(QString version
);
61 QString
getFoamEpsilon(QString version
);
62 QString
getFoamOmega(QString version
);
63 QString
getFoamT(QString version
);
64 QString
getFoamNut(QString version
);
66 QString
getFoamType();