GRINS-0.6.0
pbc_container.h
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 #ifndef PBC_CONTAINER_H
27 #define PBC_CONTAINER_H
28 
29 // libMesh
30 #include "libmesh/vector_value.h"
31 
32 // GRINS
33 #include "grins/var_typedefs.h"
34 
35 namespace GRINS
36 {
38 
44  {
45  public:
46 
47  PBCContainer();
48  ~PBCContainer();
49 
51  void set_master_bcid( const GRINS::BoundaryID bc_id );
52  void set_slave_bcid( const GRINS::BoundaryID bc_id );
53 
54  void set_offset_vector( const libMesh::RealVectorValue& offset_vector );
55 
58  const libMesh::RealVectorValue& get_offset_vector() const;
59 
60  private:
61 
63  libMesh::RealVectorValue _offset_vector;
64 
65  };
66 }
67 #endif //PBC_CONTAINER_H
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
Simple helper class to setup periodic boundary conditions.
Definition: pbc_container.h:43
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:19 for GRINS-0.6.0 by  doxygen 1.8.9.1