File-Writer for VTK .vtu files.
More...
#include <dune/vtk/writers/vtkunstructuredgridwriter.hh>
|
| void | writeData (std::ofstream &out, std::vector< pos_type > &offsets, VtkFunction const &fct, PositionTypes type, std::optional< std::size_t > timestep={}) const |
| |
| void | writeDataAppended (std::ofstream &out, std::vector< std::uint64_t > &blocks) const |
| |
| void | writePoints (std::ofstream &out, std::vector< pos_type > &offsets, std::optional< std::size_t > timestep={}) const |
| |
| void | writeAppended (std::ofstream &out, std::vector< pos_type > const &offsets) const |
| |
| template<class HeaderType , class FloatType > |
| std::uint64_t | writeValuesAppended (std::ofstream &out, std::vector< FloatType > const &values) const |
| |
| template<class T > |
| void | writeValuesAscii (std::ofstream &out, std::vector< T > const &values) const |
| |
| void | writeHeader (std::ofstream &out, std::string const &type) const |
| |
| std::string | getNames (std::vector< VtkFunction > const &data) const |
| | Return PointData/CellData attributes for the name of the first scalar/vector/tensor DataArray.
|
| |
| std::string | getEndian () const |
| |
| std::string | getFileExtension () const |
| |
| Vtk::FormatTypes | getFormat () const |
| |
| Vtk::DataTypes | getDatatype () const |
| |
| auto | comm () const |
| |
template<class
GridView, class
DataCollector = Vtk::ContinuousDataCollector<GridView>>
class Dune::VtkUnstructuredGridWriter< GridView, DataCollector >
File-Writer for VTK .vtu files.
Requirement:
◆ DataCollector
template<class GV , class DC >
◆ GridView
template<class GV , class DC >
◆ VtkFunction
template<class GV , class DC >
◆ PositionTypes
template<class GV , class DC >
| Enumerator |
|---|
| POINT_DATA | |
| CELL_DATA | |
◆ addCellData()
template<class GV , class DC >
template<class Function , class... Args>
Attach cell data to the writer.
Attach a global function to the writer that will be evaluated at cell centers. The global function must be assignable to the function wrapper Vtk::Function. Additional argument for output datatype and number of components can be passed. See Vtk::Function Constructor for possible arguments.
- Parameters
-
| fct | A GridFunction, LocalFunction, or Dune::VTKFunction |
| args... | Additional arguments, like name, numComponents, dataType or Vtk::FieldInfo |
◆ addPointData()
template<class GV , class DC >
template<class Function , class... Args>
Attach point data to the writer.
Attach a global function to the writer that will be evaluated at grid points (vertices and higher order points). The global function must be assignable to the function wrapper Vtk::Function. Additional argument for output datatype and number of components can be passed. See Vtk::Function Constructor for possible arguments.
- Parameters
-
| fct | A GridFunction, LocalFunction, or Dune::VTKFunction |
| args... | Additional arguments, like name, numComponents, dataType or Vtk::FieldInfo |
◆ comm()
template<class GV , class DC >
◆ getDatatype()
template<class GV , class DC >
◆ getEndian()
template<class GV , class DC >
◆ getFileExtension()
template<class GV , class DC >
◆ getFormat()
template<class GV , class DC >
◆ getNames()
template<class GV , class DC >
Return PointData/CellData attributes for the name of the first scalar/vector/tensor DataArray.
◆ setCompressor()
template<class GV , class DC >
Sets the compressor type used in binary data headers, Additionally a compression level can be passed with level = -1 means: default compression level. Level must be in [0-9]
◆ setDatatype()
template<class GV , class DC >
Sets the global datatype used for coordinates and other global float values.
◆ setFormat()
template<class GV , class DC >
◆ setHeadertype()
template<class GV , class DC >
Sets the integer type used in binary data headers.
◆ write()
template<class GV , class DC >
| std::string Dune::VtkWriterInterface< GV, DC >::write |
( |
std::string const & |
fn, |
|
|
std::optional< std::string > |
dir = {} |
|
) |
| const |
|
overridevirtualinherited |
Write the attached data to the file.
- Parameters
-
| fn | Filename of the VTK file. May contain a directory and any file extension. |
| dir | The optional parameter specifies the directory of the partition files for parallel writes. |
- Returns
- File name that is actually written.
Implements Dune::Vtk::FileWriter.
◆ writeAppended()
template<class GV , class DC >
◆ writeData()
template<class GV , class DC >
◆ writeDataAppended()
template<class GV , class DC >
| void Dune::VtkWriterInterface< GV, DC >::writeDataAppended |
( |
std::ofstream & |
out, |
|
|
std::vector< std::uint64_t > & |
blocks |
|
) |
| const |
|
protectedinherited |
◆ writeHeader()
template<class GV , class DC >
◆ writePoints()
template<class GV , class DC >
| void Dune::VtkWriterInterface< GV, DC >::writePoints |
( |
std::ofstream & |
out, |
|
|
std::vector< pos_type > & |
offsets, |
|
|
std::optional< std::size_t > |
timestep = {} |
|
) |
| const |
|
protectedinherited |
◆ writeValuesAppended()
template<class GV , class DC >
template<class HeaderType , class FloatType >
| std::uint64_t Dune::VtkWriterInterface< GV, DC >::writeValuesAppended |
( |
std::ofstream & |
out, |
|
|
std::vector< FloatType > const & |
values |
|
) |
| const |
|
protectedinherited |
◆ writeValuesAscii()
template<class GV , class DC >
template<class T >
| void Dune::VtkWriterInterface< GV, DC >::writeValuesAscii |
( |
std::ofstream & |
out, |
|
|
std::vector< T > const & |
values |
|
) |
| const |
|
protectedinherited |
◆ block_size
template<class GV , class DC >
◆ compression_level
template<class GV , class DC >
◆ compressor_
template<class GV , class DC >
The documentation for this class was generated from the following files: