- Home
- About DUNE
- Download
- Documentation
- Community
- Development
#include <dune/grid/io/file/vtk/boundarywriter.hh>
Public Types | |
typedef GV::Intersection | Cell |
typedef BoundaryIterator< GV > | CellIterator |
typedef VTK::Corner< Cell > | Corner |
typedef VTK::CornerIterator < CellIterator > | CornerIterator |
typedef Corner | Point |
typedef CornerIterator | PointIterator |
typedef NonConformingConnectivityWriter < Cell > | ConnectivityWriter |
typedef GV::CollectiveCommunication | CollectiveCommunication |
typedef FunctionWriterBase< Cell > | FunctionWriter |
Public Member Functions | |
NonConformingBoundaryWriter (const GV &gv_) | |
template<typename Func > | |
void | addCellData (const shared_ptr< Func > &p, const std::string &name) |
template<typename Func > | |
void | addCellData (Func *p, const std::string &name) |
template<typename Func > | |
void | addPointData (const shared_ptr< Func > &p, const std::string &name) |
template<typename Func > | |
void | addPointData (Func *p, const std::string &name) |
CellIterator | beginCells () const |
CellIterator | endCells () const |
CornerIterator | beginCorners () const |
CornerIterator | endCorners () const |
PointIterator | beginPoints () const |
PointIterator | endPoints () const |
ConnectivityWriter | makeConnectivity () const |
const CollectiveCommunication & | comm () const |
void | addCellData (const shared_ptr< FunctionWriter > &writer) |
void | addPointData (const shared_ptr< FunctionWriter > &writer) |
void | clear () |
void | writePiece (const std::string &filename, OutputType outputType) |
void | writeCollection (const std::string name, const std::string &piecename, const std::string &piecepath) |
write header file in parallel case to stream | |
std::string | getParallelPieceName (const std::string &name, const std::string &path, int rank) const |
return name of a parallel piece file | |
std::string | getParallelHeaderName (const std::string &name, const std::string &path) const |
return name of a parallel header file | |
std::string | getSerialPieceName (const std::string &name, const std::string &path) const |
return name of a serial piece file | |
std::string | pwrite (const std::string &name, const std::string &path, const std::string &extendpath, OutputType outputType) |
write output; interface might change later | |
std::string | write (const std::string &name, OutputType outputType) |
write output (interface might change later) | |
Static Public Attributes | |
static const unsigned | dimCell = GV::dimension-1 |
Protected Member Functions | |
void | writeCellFunction (VTUWriter &vtuWriter, FunctionWriter &functionWriter, unsigned ncells) const |
void | writePointFunction (VTUWriter &vtuWriter, FunctionWriter &functionWriter, unsigned npoints) const |
void | writeCornerFunction (VTUWriter &vtuWriter, FunctionWriter &functionWriter, unsigned ncorners) const |
void | writeCellData (VTUWriter &vtuWriter, unsigned ncells) const |
void | writePointData (VTUWriter &vtuWriter, unsigned npoints) const |
void | writeGrid (VTUWriter &vtuWriter, unsigned ncells, unsigned npoints, unsigned ncorners) |
void | writeAll (VTUWriter &vtuWriter, unsigned ncells, unsigned npoints, unsigned ncorners) |
Static Protected Member Functions | |
static std::string | getFirstScalar (const WriterList &data) |
static std::string | getFirstVector (const WriterList &data) |
typedef GV::Intersection Dune::VTK::NonConformingBoundaryIteratorFactory< GV >::Cell [inherited] |
typedef BoundaryIterator<GV> Dune::VTK::NonConformingBoundaryIteratorFactory< GV >::CellIterator [inherited] |
typedef GV::CollectiveCommunication Dune::VTK::NonConformingBoundaryIteratorFactory< GV >::CollectiveCommunication [inherited] |
typedef NonConformingConnectivityWriter<Cell> Dune::VTK::NonConformingBoundaryIteratorFactory< GV >::ConnectivityWriter [inherited] |
typedef VTK::Corner<Cell> Dune::VTK::NonConformingBoundaryIteratorFactory< GV >::Corner [inherited] |
typedef VTK::CornerIterator<CellIterator> Dune::VTK::NonConformingBoundaryIteratorFactory< GV >::CornerIterator [inherited] |
typedef FunctionWriterBase<Cell> Dune::VTK::BasicWriter< NonConformingBoundaryIteratorFactory< GV > >::FunctionWriter [inherited] |
typedef Corner Dune::VTK::NonConformingBoundaryIteratorFactory< GV >::Point [inherited] |
typedef CornerIterator Dune::VTK::NonConformingBoundaryIteratorFactory< GV >::PointIterator [inherited] |
Dune::VTK::NonConformingBoundaryWriter< GV >::NonConformingBoundaryWriter | ( | const GV & | gv_ | ) | [inline] |
void Dune::VTK::NonConformingBoundaryWriter< GV >::addCellData | ( | const shared_ptr< Func > & | p, | |
const std::string & | name | |||
) | [inline] |
Referenced by Dune::VTK::NonConformingBoundaryWriter< GV >::addCellData().
void Dune::VTK::NonConformingBoundaryWriter< GV >::addCellData | ( | Func * | p, | |
const std::string & | name | |||
) | [inline] |
void Dune::VTK::BasicWriter< NonConformingBoundaryIteratorFactory< GV > >::addCellData | ( | const shared_ptr< FunctionWriter > & | writer | ) | [inline, inherited] |
void Dune::VTK::NonConformingBoundaryWriter< GV >::addPointData | ( | Func * | p, | |
const std::string & | name | |||
) | [inline] |
void Dune::VTK::NonConformingBoundaryWriter< GV >::addPointData | ( | const shared_ptr< Func > & | p, | |
const std::string & | name | |||
) | [inline] |
Referenced by Dune::VTK::NonConformingBoundaryWriter< GV >::addPointData().
void Dune::VTK::BasicWriter< NonConformingBoundaryIteratorFactory< GV > >::addPointData | ( | const shared_ptr< FunctionWriter > & | writer | ) | [inline, inherited] |
CellIterator Dune::VTK::NonConformingBoundaryIteratorFactory< GV >::beginCells | ( | ) | const [inline, inherited] |
CornerIterator Dune::VTK::NonConformingBoundaryIteratorFactory< GV >::beginCorners | ( | ) | const [inline, inherited] |
PointIterator Dune::VTK::NonConformingBoundaryIteratorFactory< GV >::beginPoints | ( | ) | const [inline, inherited] |
void Dune::VTK::BasicWriter< NonConformingBoundaryIteratorFactory< GV > >::clear | ( | ) | [inline, inherited] |
const CollectiveCommunication& Dune::VTK::NonConformingBoundaryIteratorFactory< GV >::comm | ( | ) | const [inline, inherited] |
CellIterator Dune::VTK::NonConformingBoundaryIteratorFactory< GV >::endCells | ( | ) | const [inline, inherited] |
CornerIterator Dune::VTK::NonConformingBoundaryIteratorFactory< GV >::endCorners | ( | ) | const [inline, inherited] |
PointIterator Dune::VTK::NonConformingBoundaryIteratorFactory< GV >::endPoints | ( | ) | const [inline, inherited] |
static std::string Dune::VTK::BasicWriter< NonConformingBoundaryIteratorFactory< GV > >::getFirstScalar | ( | const WriterList & | data | ) | [inline, static, protected, inherited] |
static std::string Dune::VTK::BasicWriter< NonConformingBoundaryIteratorFactory< GV > >::getFirstVector | ( | const WriterList & | data | ) | [inline, static, protected, inherited] |
std::string Dune::VTK::BasicWriter< NonConformingBoundaryIteratorFactory< GV > >::getParallelHeaderName | ( | const std::string & | name, | |
const std::string & | path | |||
) | const [inline, inherited] |
return name of a parallel header file
name | Base name of the VTK output. This should be without any directory parts and without a filename extension. | |
path | Directory part of the resulting header name. May be empty, in which case the resulting name will not have a directory part. If non-empty, may or may not have a trailing '/'. If a trailing slash is missing, one is appended implicitly. |
References Dune::VTK::polyData, and Dune::VTK::unstructuredGrid.
std::string Dune::VTK::BasicWriter< NonConformingBoundaryIteratorFactory< GV > >::getParallelPieceName | ( | const std::string & | name, | |
const std::string & | path, | |||
int | rank | |||
) | const [inline, inherited] |
return name of a parallel piece file
name | Base name of the VTK output. This should be without any directory parts and without a filename extension. | |
path | Directory part of the resulting piece name. May be empty, in which case the resulting name will not have a directory part. If non-empty, may or may not have a trailing '/'. If a trailing slash is missing, one is appended implicitly. | |
rank | Rank of the process to generate a piece name for. |
References Dune::VTK::polyData, and Dune::VTK::unstructuredGrid.
std::string Dune::VTK::BasicWriter< NonConformingBoundaryIteratorFactory< GV > >::getSerialPieceName | ( | const std::string & | name, | |
const std::string & | path | |||
) | const [inline, inherited] |
return name of a serial piece file
This is similar to getParallelPieceName, but skips the prefixes for commSize ("s####:") and commRank ("p####:").
name | Base name of the VTK output. This should be without any directory parts and without a filename extension. | |
path | Directory part of the resulting piece name. May be empty, in which case the resulting name will not have a directory part. If non-empty, may or may not have a trailing '/'. If a trailing slash is missing, one is appended implicitly. |
References Dune::VTK::polyData, and Dune::VTK::unstructuredGrid.
ConnectivityWriter Dune::VTK::NonConformingBoundaryIteratorFactory< GV >::makeConnectivity | ( | ) | const [inline, inherited] |
std::string Dune::VTK::BasicWriter< NonConformingBoundaryIteratorFactory< GV > >::pwrite | ( | const std::string & | name, | |
const std::string & | path, | |||
const std::string & | extendpath, | |||
OutputType | outputType | |||
) | [inline, inherited] |
write output; interface might change later
name | Base name of the output files. This should not contain any directory part and not filename extensions. It will be used both for each processes piece as well as the parallel collection file. | |
path | Directory where to put the parallel collection (.pvtu/.pvtp) file. If it is relative, it is taken realtive to the current directory. | |
extendpath | Directory where to put the piece file (.vtu/.vtp) of this process. If it is relative, it is taken relative to the directory denoted by path. | |
outputType | How to encode the data in the file. |
NotImplemented | Extendpath is absolute but path is relative. | |
IOError | Failed to open a file. | |
MPIGuardError | An exception was thrown during this method in one of the other processes. |
References Dune::VTK::BasicWriter< IteratorFactory >::getParallelHeaderName(), Dune::VTK::BasicWriter< IteratorFactory >::getParallelPieceName(), Dune::VTK::BasicWriter< IteratorFactory >::writeCollection(), and Dune::VTK::BasicWriter< IteratorFactory >::writePiece().
std::string Dune::VTK::BasicWriter< NonConformingBoundaryIteratorFactory< GV > >::write | ( | const std::string & | name, | |
OutputType | outputType | |||
) | [inline, inherited] |
write output (interface might change later)
This method can be used in parallel as well as in serial programs. For serial runs (commSize=1) it chooses other names without the "s####:p####:" prefix for the .vtu/.vtp files and omits writing of the .pvtu/pvtp file however. For parallel runs (commSize > 1) it is the same as a call to pwrite() with path="" and extendpath="".
name | Base name of the output files. This should not contain any directory part and no filename extensions. | |
outputType | How to encode the data in the file. |
References Dune::VTK::BasicWriter< IteratorFactory >::getSerialPieceName(), Dune::VTK::BasicWriter< IteratorFactory >::pwrite(), and Dune::VTK::BasicWriter< IteratorFactory >::writePiece().
void Dune::VTK::BasicWriter< NonConformingBoundaryIteratorFactory< GV > >::writeAll | ( | VTUWriter & | vtuWriter, | |
unsigned | ncells, | |||
unsigned | npoints, | |||
unsigned | ncorners | |||
) | [inline, protected, inherited] |
void Dune::VTK::BasicWriter< NonConformingBoundaryIteratorFactory< GV > >::writeCellData | ( | VTUWriter & | vtuWriter, | |
unsigned | ncells | |||
) | const [inline, protected, inherited] |
void Dune::VTK::BasicWriter< NonConformingBoundaryIteratorFactory< GV > >::writeCellFunction | ( | VTUWriter & | vtuWriter, | |
FunctionWriter & | functionWriter, | |||
unsigned | ncells | |||
) | const [inline, protected, inherited] |
void Dune::VTK::BasicWriter< NonConformingBoundaryIteratorFactory< GV > >::writeCollection | ( | const std::string | name, | |
const std::string & | piecename, | |||
const std::string & | piecepath | |||
) | [inline, inherited] |
write header file in parallel case to stream
Writes a .pvtu/.pvtp file for a collection of concurrently written .vtu/.vtp files.
name | Name of file to write contents to, | |
piecename | Base name of the pieces. Should not contain a directory part or filename extension. | |
piecepath | Directory part of the pieces. Since paraview does not support absolute paths in parallel collection files, this should be a path relative to the directory the collection file resides in. A trailing '/' is optional, and an empty value "" is equivalent to the value "." except it will look nicer in the collection file. |
References Dune::VTK::PVTUWriter::addPiece(), Dune::VTK::PVTUWriter::beginCellData(), Dune::VTK::PVTUWriter::beginMain(), Dune::VTK::PVTUWriter::beginPointData(), Dune::VTK::PVTUWriter::beginPoints(), Dune::VTK::PVTUWriter::endCellData(), Dune::VTK::PVTUWriter::endMain(), Dune::VTK::PVTUWriter::endPointData(), Dune::VTK::PVTUWriter::endPoints(), Dune::VTK::BasicWriter< IteratorFactory >::getFirstScalar(), Dune::VTK::BasicWriter< IteratorFactory >::getFirstVector(), and Dune::VTK::BasicWriter< IteratorFactory >::getParallelPieceName().
void Dune::VTK::BasicWriter< NonConformingBoundaryIteratorFactory< GV > >::writeCornerFunction | ( | VTUWriter & | vtuWriter, | |
FunctionWriter & | functionWriter, | |||
unsigned | ncorners | |||
) | const [inline, protected, inherited] |
void Dune::VTK::BasicWriter< NonConformingBoundaryIteratorFactory< GV > >::writeGrid | ( | VTUWriter & | vtuWriter, | |
unsigned | ncells, | |||
unsigned | npoints, | |||
unsigned | ncorners | |||
) | [inline, protected, inherited] |
References Dune::VTK::VTUWriter::beginCells(), Dune::VTK::VTUWriter::beginPoints(), Dune::VTK::VTUWriter::endCells(), Dune::VTK::VTUWriter::endPoints(), Dune::VTK::polyData, Dune::VTK::BasicWriter< IteratorFactory >::writeCellFunction(), Dune::VTK::BasicWriter< IteratorFactory >::writeCornerFunction(), and Dune::VTK::BasicWriter< IteratorFactory >::writePointFunction().
void Dune::VTK::BasicWriter< NonConformingBoundaryIteratorFactory< GV > >::writePiece | ( | const std::string & | filename, | |
OutputType | outputType | |||
) | [inline, inherited] |
void Dune::VTK::BasicWriter< NonConformingBoundaryIteratorFactory< GV > >::writePointData | ( | VTUWriter & | vtuWriter, | |
unsigned | npoints | |||
) | const [inline, protected, inherited] |
void Dune::VTK::BasicWriter< NonConformingBoundaryIteratorFactory< GV > >::writePointFunction | ( | VTUWriter & | vtuWriter, | |
FunctionWriter & | functionWriter, | |||
unsigned | npoints | |||
) | const [inline, protected, inherited] |
const unsigned Dune::VTK::NonConformingBoundaryIteratorFactory< GV >::dimCell = GV::dimension-1 [static, inherited] |
Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].