$extrastylesheet
periodic_boundary.h
Go to the documentation of this file.
00001 
00002 // The libMesh Finite Element Library.
00003 // Copyright (C) 2002-2014 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
00004 
00005 // This library is free software; you can redistribute it and/or
00006 // modify it under the terms of the GNU Lesser General Public
00007 // License as published by the Free Software Foundation; either
00008 // version 2.1 of the License, or (at your option) any later version.
00009 
00010 // This library is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 // Lesser General Public License for more details.
00014 
00015 // You should have received a copy of the GNU Lesser General Public
00016 // License along with this library; if not, write to the Free Software
00017 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 
00019 #ifndef LIBMESH_PERIODIC_BOUNDARY_H
00020 #define LIBMESH_PERIODIC_BOUNDARY_H
00021 
00022 // Local Includes -----------------------------------
00023 #include "libmesh/libmesh_config.h"
00024 
00025 #ifdef LIBMESH_ENABLE_PERIODIC
00026 
00027 // Local Includes -----------------------------------
00028 #include "libmesh/periodic_boundary_base.h"
00029 #include "libmesh/vector_value.h" // RealVectorValue
00030 
00031 namespace libMesh {
00032 
00033 // Forward Declarations
00034 class Elem;
00035 class MeshBase;
00036 
00040 class PeriodicBoundary : public PeriodicBoundaryBase
00041 {
00042 public:
00046   PeriodicBoundary();
00047 
00051   virtual ~PeriodicBoundary() {}
00052 
00056   PeriodicBoundary(const PeriodicBoundary& o, TransformationType t = FORWARD);
00057 
00061   PeriodicBoundary(const RealVectorValue& vector);
00062 
00068   virtual Point get_corresponding_pos(const Point& pt) const;
00069 
00075   virtual UniquePtr<PeriodicBoundaryBase> clone(TransformationType t = FORWARD) const;
00076 
00077 protected:
00078   // One of these days we'll support rotated boundaries
00079   // RealTensor rotation_matrix;
00080 
00081   // The vector which is added to points in myboundary
00082   // to produce corresponding points in pairedboundary
00083   RealVectorValue translation_vector;
00084 };
00085 
00086 } // namespace libmesh
00087 
00088 #endif // LIBMESH_ENABLE_PERIODIC
00089 
00090 #endif // LIBMESH_PERIODIC_BOUNDARY_H