KASKADE 7 development version
|
Class that can sample a Function(View) on a uniform rectangular grid. More...
#include <gridscanner.hh>
Class that can sample a Function(View) on a uniform rectangular grid.
This is useful, when using higher order FunctionSpaceElement s or highly nonlinear FunctionViews on a relatively coarse grid. The output to PARAVIEW can then be performed in high resolution. The use together with EdgeScanner yields a nice visualization of these functions.
Moreover, it is possible to zoom into interesting regions by defining the area of sampling appropriately.
Here a sample of how an output of UniformSampler and EdgeScanner may look like:
Definition at line 48 of file gridscanner.hh.
Public Types | |
typedef Function::Space | Space |
typedef Space::Grid | Grid |
Public Member Functions | |
UniformSampler (Dune::FieldVector< typename Grid::ctype, spaceDim > const &lb, Dune::FieldVector< typename Grid::ctype, spaceDim > const &ub, Dune::FieldVector< typename Grid::ctype, spaceDim > const &st, Function const &fu, bool dataIsScalar=Function::components==1) | |
Performs a uniform sampling of fu on the cuboid marked by lb, ub with stepsize st. More... | |
void | writeVTK (std::string name) |
Print data in .vtk (Legacy) format. The extension ".vtk" is automatically appended. More... | |
Static Public Attributes | |
static int const | spaceDim = Grid::dimension |
typedef Space::Grid Kaskade::UniformSampler< Function >::Grid |
Definition at line 52 of file gridscanner.hh.
typedef Function::Space Kaskade::UniformSampler< Function >::Space |
Definition at line 51 of file gridscanner.hh.
|
inline |
Performs a uniform sampling of fu on the cuboid marked by lb, ub with stepsize st.
lb | defines the lower bounds of the cuboid |
ub | defines the upper bounds of the cuboid |
st | determines the stepsize that is taken for sampling in each direction |
fu | is a FunctionSpaceElement or a FunctionViews object: the function to be scanned |
dataIsScalar | determines whether a vectorial or a multicomponent scalar VTK file is written |
Definition at line 65 of file gridscanner.hh.
|
inline |
Print data in .vtk (Legacy) format. The extension ".vtk" is automatically appended.
Definition at line 79 of file gridscanner.hh.
|
static |
Definition at line 53 of file gridscanner.hh.
Referenced by Kaskade::UniformSampler< Function >::UniformSampler(), and Kaskade::UniformSampler< Function >::writeVTK().