GRINS-0.7.0
velocity_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-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 // This class
27 
28 // libMesh
29 #include "libmesh/getpot.h"
30 #include "libmesh/string_to_enum.h"
31 #include "libmesh/fem_system.h"
32 
33 namespace GRINS
34 {
35  VelocityFEVariables::VelocityFEVariables( const GetPot& input, const std::string& physics_name,
36  bool is_constraint_var)
37  : MultiVarSingleFETypeVariable(input,physics_name,"V_",this->old_var_names(),this->default_names(),
38  this->subsection(),"LAGRANGE","SECOND",is_constraint_var),
39  _u_idx(0),
40  _v_idx(1),
41  _w_idx(2)
42  {}
43 
44  void VelocityFEVariables::init( libMesh::FEMSystem* system )
45  {
46  libmesh_assert_greater_equal(system->get_mesh().mesh_dimension(), 2);
47 
48  if ( system->get_mesh().mesh_dimension() < 3)
49  _var_names.pop_back();
50 
52  }
53 
54 } // end namespace GRINS
virtual void init(libMesh::FEMSystem *system)
Add variables to the system.
virtual void init(libMesh::FEMSystem *system)
Add variables to the system.
Base class for variables with multiple components that all have the same FEType.
GRINS namespace.
std::vector< std::string > _var_names

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