GRINS-0.6.0
dbc_container.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 
26 // This class
27 #include "grins/dbc_container.h"
28 
29 namespace GRINS
30 {
31 
33  : _var_names( std::vector<VariableName>() ),
34  _bc_ids( std::set<BoundaryID>() ),
35  _func( std::tr1::shared_ptr<libMesh::FunctionBase<libMesh::Number> >() ),
36  _parsed_fem_func_string()
37  {
38  return;
39  }
40 
42  {
43  return;
44  }
45 
47  {
48  _var_names.push_back( var );
49  return;
50  }
51 
52  void DBCContainer::add_bc_id( const BoundaryID bc_id )
53  {
54  _bc_ids.insert( bc_id );
55  return;
56  }
57 
58  void DBCContainer::set_func( std::tr1::shared_ptr<libMesh::FunctionBase<libMesh::Number> > func )
59  {
60  _func = func;
61  return;
62  }
63 
64  void DBCContainer::set_fem_func_string( const std::string& s)
65  {
67  return;
68  }
69 
70  std::vector<VariableName> DBCContainer::get_var_names() const
71  {
72  return _var_names;
73  }
74 
75  std::set<BoundaryID> DBCContainer::get_bc_ids() const
76  {
77  return _bc_ids;
78  }
79 
80  const std::string&
82  {
84  }
85 
86  std::tr1::shared_ptr<libMesh::FunctionBase<libMesh::Number> > DBCContainer::get_func() const
87  {
88  return _func;
89  }
90 
91 } // namespace GRINS
std::vector< GRINS::VariableName > _var_names
Definition: dbc_container.h:79
libMesh::boundary_id_type BoundaryID
More descriptive name of the type used for boundary ids.
Definition: var_typedefs.h:54
std::tr1::shared_ptr< libMesh::FunctionBase< libMesh::Number > > _func
Definition: dbc_container.h:81
void set_fem_func_string(const std::string &s)
Definition: dbc_container.C:64
std::set< GRINS::BoundaryID > _bc_ids
Definition: dbc_container.h:80
std::string VariableName
Definition: var_typedefs.h:50
std::tr1::shared_ptr< libMesh::FunctionBase< libMesh::Number > > get_func() const
Definition: dbc_container.C:86
std::vector< GRINS::VariableName > get_var_names() const
Definition: dbc_container.C:70
std::set< GRINS::BoundaryID > get_bc_ids() const
Definition: dbc_container.C:75
void add_var_name(const GRINS::VariableName &var)
Add variables that are constrained by the Dirichlet bc.
Definition: dbc_container.C:46
std::string _parsed_fem_func_string
Definition: dbc_container.h:82
GRINS namespace.
const std::string & get_fem_func_string() const
Definition: dbc_container.C:81
void add_bc_id(const GRINS::BoundaryID bc_id)
Add boundary id's for which this Dirichlet bc is to be applied.
Definition: dbc_container.C:52
void set_func(std::tr1::shared_ptr< libMesh::FunctionBase< libMesh::Number > > func)
Add the Dirichlet bc functor.
Definition: dbc_container.C:58

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