Unstruct2D  1.0
Solution of 2-D Euler- and Navier-Stokes Equations on Unstructured Triangular Grids
 All Classes Files Functions Variables Typedefs Enumerations Macros
boundaryConds.h
Go to the documentation of this file.
1 //*****************************************************************************
6 //
7 // (c) J. Blazek, CFD Consulting & Analysis, www.cfd-ca.de
8 // Created February 15, 2014
9 // Last modification: June 27, 2014
10 //
11 //=============================================================================
12 //
13 // This program is free software; you can redistribute it and/or
14 // modify it under the terms of the GNU General Public License
15 // as published by the Free Software Foundation; either version 2
16 // of the License, or (at your option) any later version.
17 //
18 // This program is distributed in the hope that it will be useful,
19 // but WITHOUT ANY WARRANTY; without even the implied warranty of
20 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 // GNU General Public License for more details.
22 //
23 // You should have received a copy of the GNU General Public License
24 // along with this program; if not, write to the Free Software
25 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 //
27 //*****************************************************************************
28 
29 #ifndef BOUNDARYCONDS_H_INCLUDED
30 #define BOUNDARYCONDS_H_INCLUDED
31 
32 #include "defs.h"
33 #include "geometry.h"
34 
39 {
40 public:
42  static enum class FlowType { External, Internal };
43 
46  // boundary conditions - external flow
47 
48  bool vortCorr;
49  REAL machinf,
50  alpha,
51  pinf,
52  tinf,
53  rhoinf,
54  uinf,
55  vinf,
56  qinf;
58  // boundary conditions - internal flow
59 
60  REAL ptinl,
61  ttinl,
62  betainl,
63  betaout,
64  p12rat,
65  pout;
67  // functions
68 
69  BoundaryConds();
71  void AllocateMemory( const Geometry *geometry );
72 
73 private:
74  // variables
75 
76  PRIMVARS *bndVals;
77 };
78 
79 #endif // BOUNDARYCONDS_H_INCLUDED
REAL qinf
Definition: boundaryConds.h:49
REAL rhoinf
Definition: boundaryConds.h:49
Definition: boundaryConds.h:38
REAL betainl
Definition: boundaryConds.h:60
bool vortCorr
Definition: boundaryConds.h:48
REAL betaout
Definition: boundaryConds.h:60
REAL pout
Definition: boundaryConds.h:60
FlowType flowType
Definition: boundaryConds.h:44
REAL p12rat
Definition: boundaryConds.h:60
REAL tinf
Definition: boundaryConds.h:49
Primitive variables.
Definition: defs.h:75
BoundaryConds()
Definition: boundaryConds.cpp:35
Definition: geometry.h:40
REAL alpha
Definition: boundaryConds.h:49
~BoundaryConds()
Definition: boundaryConds.cpp:66
REAL ptinl
Definition: boundaryConds.h:60
REAL ttinl
Definition: boundaryConds.h:60
REAL pinf
Definition: boundaryConds.h:49
REAL vinf
Definition: boundaryConds.h:49
REAL machinf
Definition: boundaryConds.h:49
void AllocateMemory(const Geometry *geometry)
Definition: boundaryConds.cpp:78
REAL uinf
Definition: boundaryConds.h:49
FlowType
types of fluid flow
Definition: boundaryConds.h:42