GRINS-0.7.0
primitive_temp_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_PRIMITIVE_TEMP_FE_VARIABLES_H
26 #define GRINS_PRIMITIVE_TEMP_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  PrimitiveTempFEVariables( const GetPot& input, const std::string& physics_name,
46  bool _is_constraint_var = false )
47  : SingleVarSingleFETypeVariable(input,physics_name,"T_",this->old_var_name(),this->default_name(),
48  this->subsection(),"LAGRANGE","SECOND",_is_constraint_var)
49  {}
50 
52 
53  VariableIndex T() const;
54 
55  protected:
56 
57  std::string old_var_name() const
59 
60  std::string subsection() const
62 
63  std::string default_name() const
64  { return "T"; }
65 
66  private:
67 
69 
70  };
71 
72  inline
74  {
75  return _vars[0];
76  }
77 
78 } // end namespace GRINS
79 
80 #endif // GRINS_PRIMITIVE_TEMP_FE_VARIABLES_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.
static std::string temperature_section()
GRINS namespace.
std::vector< VariableIndex > _vars
Base class for variables with a single component.
PrimitiveTempFEVariables(const GetPot &input, const std::string &physics_name, bool _is_constraint_var=false)

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