GRINS-0.6.0
Public Member Functions | Private Attributes | List of all members
GRINS::PBCContainer Class Reference

Simple helper class to setup periodic boundary conditions. More...

#include <pbc_container.h>

Public Member Functions

 PBCContainer ()
 
 ~PBCContainer ()
 
void set_master_bcid (const GRINS::BoundaryID bc_id)
 Add variables that are constrained by the Dirichlet bc. More...
 
void set_slave_bcid (const GRINS::BoundaryID bc_id)
 
void set_offset_vector (const libMesh::RealVectorValue &offset_vector)
 
GRINS::BoundaryID get_master_bcid () const
 
GRINS::BoundaryID get_slave_bcid () const
 
const libMesh::RealVectorValue & get_offset_vector () const
 

Private Attributes

GRINS::BoundaryID _master_id
 
GRINS::BoundaryID _slave_id
 
libMesh::RealVectorValue _offset_vector
 

Detailed Description

Simple helper class to setup periodic boundary conditions.

This class is to temporarily stash data necessary for setting up libMesh::PeriodicBoundary objects. Actually instantiation of libMesh::DirichletBoundary object is handled internally by GRINS::BCHandlingBase::init_periodic_bcs. For each periodic bc pair there is a unique PBCContainer object.

Definition at line 43 of file pbc_container.h.

Constructor & Destructor Documentation

GRINS::PBCContainer::PBCContainer ( )

Definition at line 31 of file pbc_container.C.

32  : _master_id( -1 ),
33  _slave_id( -1 ),
34  _offset_vector( 0.0, 0.0, 0.0 )
35  {
36  return;
37  }
GRINS::BoundaryID _slave_id
Definition: pbc_container.h:62
libMesh::RealVectorValue _offset_vector
Definition: pbc_container.h:63
GRINS::BoundaryID _master_id
Definition: pbc_container.h:62
GRINS::PBCContainer::~PBCContainer ( )

Definition at line 39 of file pbc_container.C.

40  {
41  return;
42  }

Member Function Documentation

BoundaryID GRINS::PBCContainer::get_master_bcid ( ) const

Definition at line 62 of file pbc_container.C.

References _master_id.

63  {
64  return _master_id;
65  }
GRINS::BoundaryID _master_id
Definition: pbc_container.h:62
const libMesh::RealVectorValue & GRINS::PBCContainer::get_offset_vector ( ) const

Definition at line 72 of file pbc_container.C.

References _offset_vector.

73  {
74  return _offset_vector;
75  }
libMesh::RealVectorValue _offset_vector
Definition: pbc_container.h:63
BoundaryID GRINS::PBCContainer::get_slave_bcid ( ) const

Definition at line 67 of file pbc_container.C.

References _slave_id.

68  {
69  return _slave_id;
70  }
GRINS::BoundaryID _slave_id
Definition: pbc_container.h:62
void GRINS::PBCContainer::set_master_bcid ( const GRINS::BoundaryID  bc_id)

Add variables that are constrained by the Dirichlet bc.

Definition at line 44 of file pbc_container.C.

References _master_id.

Referenced by GRINS::BCHandlingBase::init_bc_types().

45  {
46  _master_id = bc_id;
47  return;
48  }
GRINS::BoundaryID _master_id
Definition: pbc_container.h:62
void GRINS::PBCContainer::set_offset_vector ( const libMesh::RealVectorValue &  offset_vector)

Definition at line 56 of file pbc_container.C.

References _offset_vector.

Referenced by GRINS::BCHandlingBase::init_bc_types().

57  {
58  _offset_vector = offset_vector;
59  return;
60  }
libMesh::RealVectorValue _offset_vector
Definition: pbc_container.h:63
void GRINS::PBCContainer::set_slave_bcid ( const GRINS::BoundaryID  bc_id)

Definition at line 50 of file pbc_container.C.

References _slave_id.

Referenced by GRINS::BCHandlingBase::init_bc_types().

51  {
52  _slave_id = bc_id;
53  return;
54  }
GRINS::BoundaryID _slave_id
Definition: pbc_container.h:62

Member Data Documentation

GRINS::BoundaryID GRINS::PBCContainer::_master_id
private

Definition at line 62 of file pbc_container.h.

Referenced by get_master_bcid(), and set_master_bcid().

libMesh::RealVectorValue GRINS::PBCContainer::_offset_vector
private

Definition at line 63 of file pbc_container.h.

Referenced by get_offset_vector(), and set_offset_vector().

GRINS::BoundaryID GRINS::PBCContainer::_slave_id
private

Definition at line 62 of file pbc_container.h.

Referenced by get_slave_bcid(), and set_slave_bcid().


The documentation for this class was generated from the following files:

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