GRINS-0.6.0
primitive_flow_variables.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------bl-
2 //--------------------------------------------------------------------------
3 //
4 // GRINS - General Reacting Incompressible Navier-Stokes
5 //
6 // Copyright (C) 2014-2015 Paul T. Bauman, Roy H. Stogner
7 // Copyright (C) 2010-2013 The PECOS Development Team
8 //
9 // This library is free software; you can redistribute it and/or
10 // modify it under the terms of the Version 2.1 GNU Lesser General
11 // Public License as published by the Free Software Foundation.
12 //
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Lesser General Public License for more details.
17 //
18 // You should have received a copy of the GNU Lesser General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc. 51 Franklin Street, Fifth Floor,
21 // Boston, MA 02110-1301 USA
22 //
23 //-----------------------------------------------------------------------el-
24 
25 
26 #ifndef GRINS_PRIMITIVE_FLOW_VARIABLES_H
27 #define GRINS_PRIMITIVE_FLOW_VARIABLES_H
28 
29 // libMesh forward declarations
30 class GetPot;
31 namespace libMesh
32 {
33  class FEMSystem;
34 }
35 
36 // GRINS
37 #include "grins/var_typedefs.h"
38 
39 namespace GRINS
40 {
41 
43  {
44  public:
45 
46  PrimitiveFlowVariables( const GetPot& input );
48 
49  virtual void init( libMesh::FEMSystem* system );
50 
51  VariableIndex u_var() const;
52  VariableIndex v_var() const;
53  VariableIndex w_var() const;
54  VariableIndex p_var() const;
55 
56  protected:
57 
59  VariableIndex _u_var; /* Index for x-velocity field */
60  VariableIndex _v_var; /* Index for y-velocity field */
61  VariableIndex _w_var; /* Index for z-velocity field */
62  VariableIndex _p_var; /* Index for pressure field */
63 
66 
67  private:
68 
70 
71  };
72 
73  inline
75  {
76  return _u_var;
77  }
78 
79  inline
81  {
82  return _v_var;
83  }
84 
85  inline
87  {
88  return _w_var;
89  }
90 
91  inline
93  {
94  return _p_var;
95  }
96 
97 } // end namespace GRINS
98 
99 #endif //GRINS_PRIMITIVE_FLOW_VARIABLES_H
unsigned int VariableIndex
More descriptive name of the type used for variable indices.
Definition: var_typedefs.h:40
GRINS namespace.
virtual void init(libMesh::FEMSystem *system)
VariableIndex _u_var
Indices for each (owned) variable;.
std::string _u_var_name
Names of each (owned) variable in the system.

Generated on Mon Jun 22 2015 21:32:20 for GRINS-0.6.0 by  doxygen 1.8.9.1