ug4
subset_util_impl.hpp File Reference

Go to the source code of this file.

Namespaces

 ug
 the ug namespace
 

Functions

template<class TSubsetHandler >
void ug::AdjustSubsetsForSimulation (TSubsetHandler &sh, bool preserveExistingSubsets)
 Adjust the grid so that it is ready for simulation with ug4. More...
 
template<class TElem , class TSubsetHandler >
void ug::AssignAssociatedEdgesToSubsets (TSubsetHandler &sh, const ISubsetHandler &srcIndHandler)
 Assigns associated edges of elements of type TElem in sh to sh. More...
 
template<class TElem , class TSubsetHandler >
void ug::AssignAssociatedFacesToSubsets (TSubsetHandler &sh, const ISubsetHandler &srcIndHandler)
 Assigns associated faces of elements of type TElem in sh to sh. More...
 
template<class TElem , class TSubsetHandlerDest , class TSubsetHandlerSrc >
void ug::AssignAssociatedLowerDimElemsToSubsets (TSubsetHandlerDest &sh, const TSubsetHandlerSrc &srcIndHandler)
 Assigns associated elements of elements of type TElem in sh to sh. More...
 
template<class TElem , class TSubsetHandlerDest , class TSubsetHandlerSrc >
void ug::AssignAssociatedLowerDimElemsToSubsets (TSubsetHandlerDest &sh, const TSubsetHandlerSrc &srcIndHandler, const Edge &)
 helper with with dummy-param for compile-time function selection. More...
 
template<class TElem , class TSubsetHandlerDest , class TSubsetHandlerSrc >
void ug::AssignAssociatedLowerDimElemsToSubsets (TSubsetHandlerDest &sh, const TSubsetHandlerSrc &srcIndHandler, const Face &)
 helper with with dummy-param for compile-time function selection. More...
 
template<class TElem , class TSubsetHandlerDest , class TSubsetHandlerSrc >
void ug::AssignAssociatedLowerDimElemsToSubsets (TSubsetHandlerDest &sh, const TSubsetHandlerSrc &srcIndHandler, const Volume &)
 helper with with dummy-param for compile-time function selection. More...
 
template<class TElem , class TSubsetHandlerDest , class TSubsetHandlerSrc >
void ug::AssignAssociatedSidesToSubsets (TSubsetHandlerDest &sh, const TSubsetHandlerSrc &srcIndHandler)
 Assigns associated sides of elements of type TElem in sh to sh. More...
 
template<class TIterator >
void ug::AssignAssociatedVerticesToSubset (ISubsetHandler &sh, TIterator elemsBegin, TIterator elemsEnd, int subsetIndex)
 assigns vertices of the given elements to the subset at subsetIndex More...
 
template<class TElem , class TSubsetHandler >
void ug::AssignAssociatedVerticesToSubsets (TSubsetHandler &sh, const ISubsetHandler &srcIndHandler)
 Assigns associated vertices of elements of type TElem in sh to sh. More...
 
template<class TElem , class TSubsetHandler >
void ug::AssignUnassignedElemsToSubset (TSubsetHandler &sh, int si)
 Assigns all elements of type TElem with subset index -1 to subset at index si. More...
 
template<class TIterator >
void ug::CopySubsetIndicesToSides (ISubsetHandler &sh, TIterator elemsBegin, TIterator elemsEnd, bool toUnassignedOnly)
 copies subset-indices to side-elements More...
 
void ug::EraseEmptySubsets (ISubsetHandler &sh)
 Erases all subsets which do not contain any geometric objects. More...
 
template<class TAAPosVRT >
number ug::FaceArea (ISubsetHandler &sh, int si, size_t lvl, TAAPosVRT &aaPos)
 Returns the area sum of convex faces given by subset index and level. More...
 
template<typename TBaseObj >
void ug::FindSubsetGroups (std::vector< int > &minCondInd, const std::vector< bool > &isMarked, const ISubsetHandler &sh, const NeighborhoodType nbhType=NHT_VERTEX_NEIGHBORS)
 
template<class TElem >
int ug::GetMaxSubsetIndex (SubsetHandler &sh)
 returns the index of the last subset, that contains elements of type TElem. More...
 
template<class TElem >
void ug::MakeSubsetsConsecutive (SubsetHandler &sh)
 moves subsets so that no empty subset of type TElem is between filled ones. More...
 
template<class TElem >
void ug::SeparateSubsetsByLowerDimSelection (Grid &grid, SubsetHandler &sh, Selector &sel, bool appendAtEnd=false)
 Assigns all elements of the given type to subsets. More...
 
template<class TElem >
void ug::SeparateSubsetsByLowerDimSeparators (Grid &grid, SubsetHandler &sh, bool appendAtEnd, boost::function< bool(typename TElem::lower_dim_base_object *)> cbIsSeparator)
 Assigns all elements of the given type to subsets. More...
 
template<class TElem >
void ug::SeparateSubsetsByLowerDimSubsets (Grid &grid, SubsetHandler &sh, bool appendAtEnd=false)
 Assigns all elements of the given type to subsets. More...