|
dune-grid 2.8.0
|
Loading...
Searching...
No Matches
subsamplingvtkwriter.hh
Go to the documentation of this file.
85 DUNE_THROW(Dune::IOError,"SubsamplingVTKWriter: Refinement intervals must be larger than zero! (One interval means no subsampling)");
99 SubElementIterator refinementBegin(const Refinement& refinement, Dune::RefinementIntervals intervals, IteratorSelector<SubElementIterator>)
104 SubVertexIterator refinementBegin(const Refinement& refinement, Dune::RefinementIntervals intervals, IteratorSelector<SubVertexIterator>)
109 SubElementIterator refinementEnd(const Refinement& refinement, Dune::RefinementIntervals intervals, IteratorSelector<SubElementIterator>)
114 SubVertexIterator refinementEnd(const Refinement& refinement, Dune::RefinementIntervals intervals, IteratorSelector<SubVertexIterator>)
120 void writeData(VTK::VTUWriter& writer, const Data& data, const Iterator begin, const Iterator end, int nentries, IteratorSelector<SubIterator> sis)
138 DUNE_THROW(IOError,"Cannot write VTK vectors with more than 3 components (components was " << writecomps << ")");
205 void SubsamplingVTKWriter<GridView>::countEntities(int &nvertices_, int &ncells_, int &ncorners_)
212 Refinement &refinement = buildRefinement<dim, ctype>(it->type(), subsampledGeometryType(it->type()));
iterator end()
iterator begin()
size_type dim() const
#define DUNE_THROW(E, m)
Provides file i/o for the visualization toolkit.
@ dimensionworld
The dimension of the world the grid lives in.
Definition common/gridview.hh:134
Precision
which precision to use when writing out data to vtk files
Definition common.hh:269
@ int32
@ uint8
@ float32
int renumber(const Dune::GeometryType &t, int i)
renumber VTK <-> Dune
Definition common.hh:184
GeometryType geometryType(const Dune::GeometryType &t)
mapping from GeometryType to VTKGeometryType
Definition common.hh:149
Include standard header files.
int intervals() const
VertexIterator vBegin(Dune::RefinementIntervals tag) const
ElementIterator eBegin(Dune::RefinementIntervals tag) const
virtual int nElements(Dune::RefinementIntervals tag) const=0
ElementIterator eEnd(Dune::RefinementIntervals tag) const
Codim< 0 >::SubEntityIterator ElementIterator
VertexIterator vEnd(Dune::RefinementIntervals tag) const
virtual int nVertices(Dune::RefinementIntervals tag) const=0
Codim< dimension >::SubEntityIterator VertexIterator
@ vector
vector-valued field (always 3D, will be padded if necessary)
Writer for the output of subsampled grid functions in the vtk format.
Definition subsamplingvtkwriter.hh:38
virtual void writeGridPoints(VTK::VTUWriter &writer)
write the positions of vertices
Definition subsamplingvtkwriter.hh:259
virtual void writeVertexData(VTK::VTUWriter &writer)
write vertex data
Definition subsamplingvtkwriter.hh:241
SubsamplingVTKWriter(const GridView &gridView, Dune::RefinementIntervals intervals_, bool coerceToSimplex_=false, VTK::Precision coordPrecision=VTK::Precision::float32)
Construct a SubsamplingVTKWriter working on a specific GridView.
Definition subsamplingvtkwriter.hh:78
virtual void countEntities(int &nvertices_, int &ncells_, int &ncorners_)
count the vertices, cells and corners
Definition subsamplingvtkwriter.hh:205
virtual void writeCellData(VTK::VTUWriter &writer)
write cell data
Definition subsamplingvtkwriter.hh:223
virtual void writeGridCells(VTK::VTUWriter &writer)
write the connectivity array
Definition subsamplingvtkwriter.hh:290
void addVertexData(const std::shared_ptr< const VTKFunction > &p)
Add a grid function that lives on the vertices of the grid to the visualization.
Definition vtkwriter.hh:711
void addCellData(const std::shared_ptr< const VTKFunction > &p)
Add a grid function that lives on the cells of the grid to the visualization.
Definition vtkwriter.hh:647
VTK::Precision coordPrecision() const
get the precision with which coordinates are written out
Definition vtkwriter.hh:780
std::list< VTKLocalFunction >::const_iterator FunctionIterator
Definition vtkwriter.hh:374
DataArrayWriter * makeArrayWriter(const std::string &name, unsigned ncomps, unsigned nitems, Precision prec)
acquire a DataArrayWriter
Definition vtuwriter.hh:378
void endCellData()
finish CellData section
Definition vtuwriter.hh:218
void beginCells()
start section for the grid cells/PolyData lines
Definition vtuwriter.hh:272
void endPointData()
finish PointData section
Definition vtuwriter.hh:180
void beginCellData(const std::string &scalars="", const std::string &vectors="")
start CellData section
Definition vtuwriter.hh:203
void beginPointData(const std::string &scalars="", const std::string &vectors="")
start PointData section
Definition vtuwriter.hh:165
void endPoints()
finish section for the point coordinates
Definition vtuwriter.hh:247
void endCells()
start section for the grid cells/PolyData lines
Definition vtuwriter.hh:283
void beginPoints()
start section for the point coordinates
Definition vtuwriter.hh:236
T data(T... args)
T min(T... args)
T reset(T... args)
T size(T... args)
T tie(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8