better collision detection
[engrid-github.git] / src / libengrid / physicalboundarycondition.h
blob4670eb45d633541b0c993a408e8a1f7cd6d774e8
1 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 // + +
3 // + This file is part of enGrid. +
4 // + +
5 // + Copyright 2008-2014 enGits GmbH +
6 // + +
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. +
11 // + +
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. +
16 // + +
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/>. +
19 // + +
20 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21 #ifndef PHYSICALBOUNDARYCONDITION_H
22 #define PHYSICALBOUNDARYCONDITION_H
24 #include <QString>
25 #include <QVector>
27 #include "engrid.h"
29 class PhysicalBoundaryCondition
32 private: // attributes
34 QString m_Name;
35 QString m_Type;
36 int m_Index;
37 QVector<QString> m_VarNames;
38 QVector<double> m_VarValues;
40 protected: // methods
42 public: // methods
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();
70 #endif