GRINS-0.7.0
generic_fe_type_variable.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_GENERIC_FE_TYPE_VARIABLE_H
26 #define GRINS_GENERIC_FE_TYPE_VARIABLE_H
27 
28 // libMesh forward declarations
29 class GetPot;
30 
31 // GRINS
34 
35 namespace GRINS
36 {
38 
42  {
43  public:
44 
45  GenericFETypeVariable( const GetPot& input,
46  const std::string& physics_name,
47  bool _is_constraint_var = false )
49  {}
50 
52 
53  VariableIndex var() const;
54 
55  std::string section_name(const std::string& physics_name) const
56  { return VariablesParsing::generic_section()+":"+physics_name; }
57 
58  protected:
59 
61 
62  std::string default_name() const
63  { return "u"; }
64 
65  };
66 
67  inline
69  {
70  return _vars[0];
71  }
72 
73 } // end namespace GRINS
74 
75 #endif // GRINS_GENERIC_FE_TYPE_VARIABLE_H
unsigned int VariableIndex
More descriptive name of the type used for variable indices.
Definition: var_typedefs.h:42
bool _is_constraint_var
Tracks whether this is a constraint variable.
Generic FE variable for generic physics.
GRINS namespace.
GenericFETypeVariable(const GetPot &input, const std::string &physics_name, bool _is_constraint_var=false)
std::vector< VariableIndex > _vars
Base class for variables with a single component.
static std::string generic_section()
std::string section_name(const std::string &physics_name) const

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