GRINS-0.6.0
primitive_temp_variables.C
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 // This class
27 
28 // libMesh
29 #include "libmesh/getpot.h"
30 #include "libmesh/fem_system.h"
31 
32 // GRINS
34 
35 namespace GRINS
36 {
38  : _T_var(invalid_var_index),
39  _T_var_name( input("Physics/VariableNames/Temperature", T_var_name_default ) )
40  {
41  return;
42  }
43 
45  {
46  return;
47  }
48 
49  void PrimitiveTempVariables::init( libMesh::FEMSystem* system )
50  {
51  libmesh_assert( system->has_variable(_T_var_name) );
52 
53  _T_var = system->variable_number( _T_var_name );
54 
55  return;
56  }
57 
58 } // end namespace GRINS
const unsigned int invalid_var_index
Invalid varaible index id.
Definition: var_typedefs.h:48
std::string _T_var_name
Names of each variable in the system.
GRINS namespace.
virtual void init(libMesh::FEMSystem *system)
const std::string T_var_name_default
temperature
VariableIndex _T_var
Indices for each variable;.

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