vtf-logo

shells/fragmentation/SElementFragment.h

Go to the documentation of this file.
00001 // -*- C++ -*- 
00002 //
00003 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
00004 //
00005 //                                   Fehmi Cirak
00006 //                        California Institute of Technology
00007 //                           (C) 2003 All Rights Reserved
00008 //
00009 // <LicenseText>
00010 //
00011 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
00012 //
00013 #ifndef SELEMENTFRAGMENT_H
00014 #define SELEMENTFRAGMENT_H
00015 #include "../fem/definitions.h"
00016 
00017 #include <vector>
00018 #include <utility>
00019 #include <functional>
00020 #include <iterator>
00021 
00022 
00023 namespace shells {
00024     struct SElementS;
00025     struct SVertexS;
00026     struct SElementFragment;
00027     struct SElementOneNeighborhood;
00028 }
00029 
00030 
00031 
00032 namespace shells {
00033     typedef std::pair<std::back_insert_iterator<std::vector<shells::SElementS* > >, 
00034                       std::back_insert_iterator<std::vector<shells::SElementS* > > > 
00035     SElementInserterPair;   
00036     typedef std::back_insert_iterator<std::vector<shells::SVertexS*> > SVertexInserter;
00037     typedef std::pair<SElementInserterPair, SVertexInserter> InserterColl;
00038 }
00039 
00040 struct shells::SElementFragment :
00041     public std::binary_function<shells::SElementS *, shells::InserterColl , void> {
00042     // fragment *element by duplicating all elements and vertices in *element's
00043     // one neighborhood
00044     // the newly created active element is inserted in inserters.first.first
00045     // the newly created ghost elements are inserted in inserters.first.second
00046     // the newly created vertices are inserted in inserters.second
00047 
00048     void operator()(shells::SElementS *element, shells::InserterColl inserters) const;
00049 };
00050 
00051 #endif
00052 

Generated on Fri Aug 24 13:00:24 2007 for SFC Thin-Shell Finite Element Solver by  doxygen 1.4.7