Dune Core Modules (2.3.1)
write a GridView to a DGF file More...
#include <dune/grid/io/file/dgfparser/dgfwriter.hh>
Public Types | |
typedef GV | GridView |
type of grid view | |
typedef GridView::Grid | Grid |
type of underlying hierarchical grid | |
Public Member Functions | |
DGFWriter (const GridView &gridView) | |
constructor More... | |
void | write (std::ostream &gridout, const std::vector< Index > &newElemOrder, const std::stringstream &addParams=std::stringstream()) const |
write the GridView into a std::ostream More... | |
void | write (std::ostream &gridout) const |
write the GridView into a std::ostream More... | |
void | write (std::ostream &gridout, const std::stringstream &addParams) const |
write the GridView into a std::ostream More... | |
void | write (const std::string &fileName) const |
write the GridView to a file More... | |
Static Public Attributes | |
static const int | dimGrid = GridView::dimension |
dimension of the grid | |
Detailed Description
class Dune::DGFWriter< GV >
write a GridView to a DGF file
The DGFWriter allows create a DGF file from a given GridView. It allows for the easy creation of file format converters.
- Template Parameters
-
GV GridView to write in DGF format
Constructor & Destructor Documentation
◆ DGFWriter()
|
inline |
constructor
- Parameters
-
[in] gridView grid view to operate on
Member Function Documentation
◆ write() [1/4]
|
inline |
write the GridView to a file
- Parameters
-
[in] fileName name of the write to write the grid to
◆ write() [2/4]
|
inline |
write the GridView into a std::ostream
- Parameters
-
gridout std::ostream to write the grid to
◆ write() [3/4]
|
inline |
write the GridView into a std::ostream
- Parameters
-
gridout std::ostream to write the grid to addParams additional data to write to dgf file, such as projections etc. (defaults to an emoty data stream)
◆ write() [4/4]
|
inline |
write the GridView into a std::ostream
- Parameters
-
gridout std::ostream to write the grid to newElemOrder vector providing a new ordering for the elements in the given GridView addParams additional data to write to dgf file, such as projections etc. (defaults to an emoty data stream)
References Dune::GeometryType::cube, DUNE_THROW, Dune::GridView< ViewTraits >::ibegin(), Dune::GridView< ViewTraits >::iend(), Dune::Intersection< GridImp, IntersectionImp >::indexInInside(), Dune::GridView< ViewTraits >::indexSet(), Dune::GeometryType::simplex, Dune::IndexSet< GridImp, IndexSetImp, IndexTypeImp >::size(), Dune::ReferenceElement< ctype, dim >::size(), and Dune::ReferenceElement< ctype, dim >::subEntity().
The documentation for this class was generated from the following file:
- dune/grid/io/file/dgfparser/dgfwriter.hh