33 #ifndef __H__UG__LIB_DISC__DOMAIN_UTIL__
34 #define __H__UG__LIB_DISC__DOMAIN_UTIL__
50 template <
typename TDomain>
51 void LoadDomain(TDomain& domain,
const char* filename);
53 template <
typename TDomain>
54 void LoadDomain(TDomain& domain,
const char* filename,
int procId);
58 template <
typename TDomain>
59 void SaveDomain(TDomain& domain,
const char* filename);
74 template <
typename TElem,
typename TAAPos>
76 const TElem& elem,
const TAAPos& aaPos,
77 bool clearContainer =
true);
92 template <
typename TElem,
typename TDomain>
94 const TElem& elem,
const TDomain& domain,
95 bool clearContainer =
true);
110 template <
typename TDomain>
112 std::vector<typename TDomain::position_type>& vCornerCoordsOut,
113 GridObject& elem,
const TDomain& domain,
bool clearContainer);
125 template <
typename TElem,
typename TPosition>
127 const Grid::VertexAttachmentAccessor<Attachment<TPosition> >& aaPos);
139 template <
typename TElem,
typename TDomain>
145 template <
typename TElem,
typename TDomain>
149 template <
typename TElem,
typename TDomain>
153 template <
typename TDomain>
157 template <
typename TDomain>
number ElementDiameter(const TElem &elem, TDomain &domain)
returns the maximal distance between to element vertices
void SaveDomain(TDomain &domain, const char *filename)
Saves the domain to a grid-file.
Definition: domain_util.cpp:79
number ElementDiameterSq(const TElem &elem, TDomain &domain)
returns the maximal squared distance between to element vertices
number MinElementDiameter(TDomain &domain, int level)
returns the minimal diameter of all elements between iterBegin and iterEnd.
Definition: domain_util.cpp:113
number MaxElementDiameter(TDomain &domain, int level)
returns the maximal diameter of all elements between iterBegin and iterEnd.
Definition: domain_util.cpp:104
void LoadDomain(TDomain &domain, const char *filename)
Loads a domain from a grid-file.
Definition: domain_util.cpp:48
void CollectCornerCoordinates(std::vector< typename TAAPos::ValueType > &vCornerCoordsOut, const TElem &elem, const TAAPos &aaPos, bool clearContainer=true)
returns the corner coordinates of a geometric object
Definition: domain_util_impl.h:75
double number
Definition: types.h:124
number ElementSize(const MathVector< TWorldDim > *vCornerCoords)
Volume of an Element in a given Dimension.