GRINS-0.7.0
turbulence_fe_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-2016 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 #ifndef GRINS_TURBULENCE_FE_VARIABLES_H
26 #define GRINS_TURBULENCE_FE_VARIABLES_H
27 
28 // GRINS
31 
32 // libMesh forward declarations
33 class GetPot;
34 namespace libMesh
35 {
36  class FEMSystem;
37 }
38 
39 namespace GRINS
40 {
42  {
43  public:
44 
45  TurbulenceFEVariables( const GetPot& input, const std::string& physics_name,
46  bool _is_constraint_var = false )
47  : SingleVarSingleFETypeVariable(input,physics_name,"TU_",this->old_var_name(),this->default_name(),
48  this->subsection(),"LAGRANGE","FIRST",_is_constraint_var)
49  {}
50 
52 
53  VariableIndex nu() const;
54 
55  private:
56 
58 
59  std::string old_var_name() const
60  { return "turbulent_viscosity"; }
61 
62  std::string subsection() const
64 
65  std::string default_name() const
66  { return "nu"; }
67 
68  };
69 
70  inline
72  {
73  return _vars[0];
74  }
75 
76 } // end namespace GRINS
77 
78 #endif // GRINS_TURBULENCE_FE_VARIABLES_H
unsigned int VariableIndex
More descriptive name of the type used for variable indices.
Definition: var_typedefs.h:42
TurbulenceFEVariables(const GetPot &input, const std::string &physics_name, bool _is_constraint_var=false)
bool _is_constraint_var
Tracks whether this is a constraint variable.
GRINS namespace.
static std::string turbulence_section()
std::vector< VariableIndex > _vars
Base class for variables with a single component.

Generated on Thu Jun 2 2016 21:52:28 for GRINS-0.7.0 by  doxygen 1.8.10