|
dune-fem
2.8-git
|
samples values of a discrete function along a given line segment More...
#include <dune/fem/misc/linesegmentsampler.hh>
Public Types | |
| typedef GridPart | GridPartType |
| typedef GridPartType::GridType::ctype | DomainFieldType |
| typedef FieldVector< DomainFieldType, dimDomain > | DomainType |
| typedef FieldVector< DomainFieldType, dimGrid > | LocalDomainType |
Public Member Functions | |
| LineSegmentSampler (const GridPart &gridPart, const DomainType &left, const DomainType &right) | |
| constructor More... | |
| template<class GridFunction > | |
| void | operator() (const GridFunction &f, std::vector< typename GridFunction::RangeType > &samples) const |
| sample a given function More... | |
| void | samplePoints (std::vector< DomainType > &points) const |
| returns sampling points More... | |
| const GridPart & | gridPart () const |
| obtain grid part on which the LineSegmentSampler works More... | |
Static Public Attributes | |
| static const int | dimDomain = GridPartType::dimensionworld |
| static const int | dimGrid = GridPartType::dimension |
samples values of a discrete function along a given line segment
The class LineSegmentSampler provides a method for sampling the values of given discrete function along an arbitrary line contained in some GridPart. The sampling points are always equidistant and include the line segment's end points.
| GridPart | type of grid part to sample on |
| typedef GridPartType::GridType::ctype Dune::Fem::LineSegmentSampler< GridPart >::DomainFieldType |
| typedef FieldVector< DomainFieldType, dimDomain > Dune::Fem::LineSegmentSampler< GridPart >::DomainType |
| typedef GridPart Dune::Fem::LineSegmentSampler< GridPart >::GridPartType |
| typedef FieldVector< DomainFieldType, dimGrid > Dune::Fem::LineSegmentSampler< GridPart >::LocalDomainType |
|
inline |
constructor
| [in] | gridPart | the grid part to sample over |
| [in] | left | left end point of the line segment |
| [in] | right | right end point of the line segment |
|
inline |
obtain grid part on which the LineSegmentSampler works
|
inline |
sample a given function
The operator() actually samples the values of a given grid function.
| [in] | f | grid function to sample |
| [out] | samples | std::vector receiving the samples |
|
inline |
returns sampling points
The operator() actually samples the values of a given grid function.
| [out] | points | std::vector receiving the points |
|
static |
|
static |