patch.h
Go to the documentation of this file.00001 00002 // The libMesh Finite Element Library. 00003 // Copyright (C) 2002-2012 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 00020 00021 #ifndef LIBMESH_PATCH_H 00022 #define LIBMESH_PATCH_H 00023 00024 // Local includes 00025 00026 // C++ includes 00027 #include <vector> 00028 #include <string> 00029 #include <set> 00030 00031 namespace libMesh 00032 { 00033 00034 // Forward Declarations 00035 class Elem; 00036 00037 00038 00046 class Patch : public std::set<const Elem *> 00047 { 00048 public: 00049 00053 Patch() {} 00054 00058 ~Patch() {} 00059 00064 void add_face_neighbors(); 00065 00070 void add_local_face_neighbors(); 00071 00077 void add_semilocal_face_neighbors(); 00078 00083 void add_point_neighbors(); 00084 00089 void add_local_point_neighbors(); 00090 00096 void add_semilocal_point_neighbors(); 00097 00101 typedef void (Patch::*PMF)(); 00102 00110 void build_around_element(const Elem* elem, 00111 const unsigned int target_patch_size = 10, 00112 PMF patchtype = &Patch::add_local_face_neighbors); 00113 00114 protected: 00115 00120 void find_face_neighbors(std::set<const Elem *> &neighbor_set); 00121 00126 void find_point_neighbors(std::set<const Elem *> &neighbor_set); 00127 }; 00128 00129 } // namespace libMesh 00130 00131 00132 #endif // LIBMESH_PATCH_H
Site Created By: libMesh Developers
Last modified: February 05 2013 19:54:48 UTC
Hosted By: