limited volume meshing to boundary layer only
[engrid-github.git] / src / libengrid / guiypluscalculator.h
blob2066332f2fd106c8eb81ab7d94483a220544339b
1 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 // + +
3 // + This file is part of enGrid. +
4 // + +
5 // + Copyright 2008-2016 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 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
22 #ifndef GUIYPLUSCALCULATOR_H
23 #define GUIYPLUSCALCULATOR_H
25 #include "dialogoperation.h"
26 #include "ui_guiypluscalculator.h"
28 class GuiYPlusCalculator : public DialogOperation<Ui::GuiYPlusCalculator, Operation>
31 Q_OBJECT
33 protected: // attributes
35 bool m_Calculating;
36 bool m_ExternalFlow;
37 double m_L;
38 double m_U;
39 double m_Re;
40 double m_Mu;
41 double m_Rho;
42 double m_Y;
43 double m_YPlus;
46 protected: // methods
48 virtual void before();
49 virtual void operate() {}
51 double cfPlate(double Re_x);
52 double cfPipe(double Re);
53 void getValues();
54 void setValues();
55 void calc();
58 protected slots:
60 void changedFlowType(QString);
61 void changedL ();
62 void changedU ();
63 void changedMu ();
64 void changedRho ();
65 void changedY ();
66 void changedYPlus ();
67 void changedRe ();
70 public:
72 GuiYPlusCalculator();
76 #endif // GUIYPLUSCALCULATOR_H