GRINS-0.6.0
pbc_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 #include "grins/pbc_container.h"
27 
28 namespace GRINS
29 {
30 
32  : _master_id( -1 ),
33  _slave_id( -1 ),
34  _offset_vector( 0.0, 0.0, 0.0 )
35  {
36  return;
37  }
38 
40  {
41  return;
42  }
43 
45  {
46  _master_id = bc_id;
47  return;
48  }
49 
51  {
52  _slave_id = bc_id;
53  return;
54  }
55 
56  void PBCContainer::set_offset_vector( const libMesh::RealVectorValue& offset_vector )
57  {
58  _offset_vector = offset_vector;
59  return;
60  }
61 
63  {
64  return _master_id;
65  }
66 
68  {
69  return _slave_id;
70  }
71 
72  const libMesh::RealVectorValue& PBCContainer::get_offset_vector() const
73  {
74  return _offset_vector;
75  }
76 
77 } // namespace GRINS
void set_master_bcid(const GRINS::BoundaryID bc_id)
Add variables that are constrained by the Dirichlet bc.
Definition: pbc_container.C:44
const libMesh::RealVectorValue & get_offset_vector() const
Definition: pbc_container.C:72
libMesh::boundary_id_type BoundaryID
More descriptive name of the type used for boundary ids.
Definition: var_typedefs.h:54
GRINS::BoundaryID _slave_id
Definition: pbc_container.h:62
GRINS namespace.
void set_slave_bcid(const GRINS::BoundaryID bc_id)
Definition: pbc_container.C:50
libMesh::RealVectorValue _offset_vector
Definition: pbc_container.h:63
GRINS::BoundaryID get_master_bcid() const
Definition: pbc_container.C:62
GRINS::BoundaryID _master_id
Definition: pbc_container.h:62
GRINS::BoundaryID get_slave_bcid() const
Definition: pbc_container.C:67
void set_offset_vector(const libMesh::RealVectorValue &offset_vector)
Definition: pbc_container.C:56

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