GRINS-0.6.0
primitive_temp_fe_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
26 #include "grins/grins_enums.h"
28 
29 // libMesh
30 #include "libmesh/getpot.h"
31 #include "libmesh/string_to_enum.h"
32 #include "libmesh/fem_system.h"
33 
34 namespace GRINS
35 {
36  PrimitiveTempFEVariables::PrimitiveTempFEVariables( const GetPot& input, const std::string& physics_name )
37  : PrimitiveTempVariables(input),
38  _T_FE_family( libMesh::Utility::string_to_enum<GRINSEnums::FEFamily>( input("Physics/"+physics_name+"/T_FE_family", input("Physics/"+physics_name+"/FE_family", "LAGRANGE") ) ) ),
39  _T_order( libMesh::Utility::string_to_enum<GRINSEnums::Order>( input("Physics/"+physics_name+"/T_order", "SECOND") ) )
40  {
41  return;
42  }
43 
45  {
46  return;
47  }
48 
49  void PrimitiveTempFEVariables::init( libMesh::FEMSystem* system )
50  {
51  _T_var = system->add_variable( _T_var_name, this->_T_order, _T_FE_family );
52 
53  return;
54  }
55 
56 } // end namespace GRINS
GRINSEnums::Order _T_order
Element orders, read from input.
std::string _T_var_name
Names of each variable in the system.
GRINS namespace.
GRINSEnums::FEFamily _T_FE_family
Element type, read from input.
virtual void init(libMesh::FEMSystem *system)
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