dune-fem 2.8.0
Loading...
Searching...
No Matches
Classes | Static Public Member Functions | Static Protected Member Functions | List of all members
Dune::Fem::GridWidth Class Reference

utility functions for calculating the maximum grid width More...

#include <dune/fem/misc/gridwidth.hh>

Classes

struct  MinMaxInit
 
struct  MinMaxInit< Max< T > >
 
struct  MinMaxInit< Min< T > >
 

Static Public Member Functions

template<class GridPartType , class MinMax >
static double calcGridWidth (const GridPartType &gridPart, const bool communicate, const MinMax &minmax)
 calculate minimal grid width as $h_{E} :=\frac{|E|}{h^{E}_{m}}$ with $h^{E}_{m} := \min_{e \in \mathcal{I}_{E}} |e| $.
 
template<class GridPartType >
static double calcGridWidth (const GridPartType &gridPart, const bool communicate=true)
 

Static Protected Member Functions

template<class GridPartType , class EntityType , class ElemGeoInfoType , class FaceGeoInfoType >
static double maxEdgeWidth (const GridPartType &gridPart, const EntityType &entity, const ElemGeoInfoType &geoInfo, const FaceGeoInfoType &faceGeoInfo)
 

Detailed Description

utility functions for calculating the maximum grid width

Member Function Documentation

◆ calcGridWidth() [1/2]

template<class GridPartType , class MinMax >
static double Dune::Fem::GridWidth::calcGridWidth ( const GridPartType &  gridPart,
const bool  communicate,
const MinMax &  minmax 
)
inlinestatic

calculate minimal grid width as $h_{E} :=\frac{|E|}{h^{E}_{m}}$ with $h^{E}_{m} := \min_{e \in \mathcal{I}_{E}} |e| $.

Parameters
gridPartset of element the minmal with is calculated for
communicatedo global communication to get minimal width for all processes (default = true)
minmaxFunction which switches between the overall minimun and maximum

◆ calcGridWidth() [2/2]

template<class GridPartType >
static double Dune::Fem::GridWidth::calcGridWidth ( const GridPartType &  gridPart,
const bool  communicate = true 
)
inlinestatic

◆ maxEdgeWidth()

template<class GridPartType , class EntityType , class ElemGeoInfoType , class FaceGeoInfoType >
static double Dune::Fem::GridWidth::maxEdgeWidth ( const GridPartType &  gridPart,
const EntityType &  entity,
const ElemGeoInfoType &  geoInfo,
const FaceGeoInfoType &  faceGeoInfo 
)
inlinestaticprotected

The documentation for this class was generated from the following file: