Dune-Fufem 2.11-git
Loading...
Searching...
No Matches
improvegrid.hh File Reference

Go to the source code of this file.

Namespaces

namespace  Dune
 
namespace  Dune::Fufem
 

Functions

template<class EntityType >
double aspectRatio (const EntityType &entity)
 
template<class GridType >
int improveGridLevel (GridType &grid, double threshold, int level)
 Improve maximal aspect ratio of the grid by moving vertices.
 
template<class GridType >
void improveGrid (GridType &grid, double threshold, int maxIter=10)
 
template<class GridView >
void printAspectRatios (const GridView &gridView)
 

Function Documentation

◆ aspectRatio()

template<class EntityType >
double aspectRatio ( const EntityType &  entity)

◆ improveGrid()

template<class GridType >
void improveGrid ( GridType &  grid,
double  threshold,
int  maxIter = 10 
)

◆ improveGridLevel()

template<class GridType >
int improveGridLevel ( GridType &  grid,
double  threshold,
int  level 
)

Improve maximal aspect ratio of the grid by moving vertices.

Parameters
gridThe grid
thresholdThe threshold on the aspect ratio that determines which elements should be refined.
levelThe function will process the vertices of the grid view with given level.

◆ printAspectRatios()

template<class GridView >
void printAspectRatios ( const GridView &  gridView)