GRINS-0.7.0
thermo_pressure_fe_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_THERMO_PRESSURE_FE_VARIABLE_H
26 #define GRINS_THERMO_PRESSURE_FE_VARIABLE_H
27 
28 // GRINS
31 
32 namespace GRINS
33 {
34 
36  {
37  public:
38 
39  ThermoPressureFEVariable( const GetPot& input, const std::string& physics_name,
40  bool _is_constraint_var = false )
41  : SingleVarSingleFETypeVariable(input,physics_name,"",this->old_var_name(),this->default_name(),
42  this->subsection(),"SCALAR","FIRST",_is_constraint_var)
43  {
44  // Currently only support SCALAR and FIRST
45  libmesh_assert_equal_to( _family[0], libMesh::SCALAR );
46  libmesh_assert_equal_to( _order[0], libMesh::FIRST );
47  }
48 
50 
51  VariableIndex p0() const;
52 
53  private:
54 
56 
57  std::string old_var_name() const
58  { return "thermo_presure"; }
59 
60  std::string subsection() const
62 
63  std::string default_name() const
64  { return "p0"; }
65 
66  };
67 
68  inline
70  {
71  return _vars[0];
72  }
73 
74 } // end namespace GRINS
75 
76 #endif // GRINS_THERMO_PRESSURE_FE_VARIABLE_H
unsigned int VariableIndex
More descriptive name of the type used for variable indices.
Definition: var_typedefs.h:42
std::vector< GRINSEnums::FEFamily > _family
std::vector< GRINSEnums::Order > _order
bool _is_constraint_var
Tracks whether this is a constraint variable.
ThermoPressureFEVariable(const GetPot &input, const std::string &physics_name, bool _is_constraint_var=false)
GRINS namespace.
static std::string thermo_pressure_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