|
dune-fem
2.8-git
|
Implementation of the Dune::IOInterface. This class manages data output. Available output formats are GRAPE, VTK and VTK Vertex projected using the VtxProjection operator. Details can be found in DiscFuncIO. More...
#include <dune/fem/io/file/datawriter.hh>

Public Types | |
| enum | OutputFormat { vtk = 0 , vtkvtx = 1 , subvtk = 2 , binary = 3 , gnuplot = 4 , none = 5 } |
Public Member Functions | |
| DataWriter (const GridType &grid, OutPutDataType &data, const DataWriterParameters ¶meter=DataWriterParameters()) | |
| Constructor creating data writer. More... | |
| DataWriter (const GridType &grid, OutPutDataType &data, const TimeProviderBase &tp, const DataWriterParameters ¶meter=DataWriterParameters()) | |
| Constructor creating data writer. More... | |
| virtual | ~DataWriter () |
| destructor More... | |
| void | consistentSaveStep (const TimeProviderBase &tp) const |
| virtual bool | willWrite (const TimeProviderBase &tp) const |
| returns true if data will be written on next write call More... | |
| virtual bool | willWrite () const |
| returns true if data will be written on next write call More... | |
| void | write (const std::string &outstring) const |
| write given data to disc, evaluates parameter savecount More... | |
| void | write () const |
| write given data to disc, evaluates parameter savecount More... | |
| void | write (const TimeProviderBase &tp, const std::string &outstring) const |
| write given data to disc, evaluates parameter savecount and savestep More... | |
| void | write (const TimeProviderBase &tp) const |
| write given data to disc, evaluates parameter savecount and savestep More... | |
| void | writeData (double sequenceStamp, const std::string &outstring) const |
| write data with a given sequence stamp and outstring More... | |
| void | writeData (double sequenceStamp) const |
| write data with a given sequence stamp More... | |
| const std::string & | path () const |
| return output path name More... | |
| int | writeStep () const |
| return write step More... | |
| int | writeCalls () const |
| return write calls More... | |
| double | saveTime () const |
| return save time More... | |
Static Public Member Functions | |
| static std::string | defaultGridKey (int dimension, bool check=true) |
| return FEM key for macro grid reading More... | |
| static std::string | defaultGridKey (int dimension, const ParameterReader ¶meter, bool check=true) |
| static std::string | defaultGridKey (std::string base, int dimension, bool check=true) |
| static std::string | defaultGridKey (std::string base, int dimension, const ParameterReader ¶meter, bool check=true) |
| return FEM key for macro grid reading More... | |
| static void | createPath (const std::string &path) |
| create given path in combination with rank More... | |
| template<class CommunicatorType > | |
| static std::string | createPath (const CommunicatorType &comm, const std::string &pathPrefix, const std::string &dataPrefix, const int step, const bool alsoCreateRankPath=true) |
| static std::string | createPathName (const std::string &pathPref, int rank) |
| create given path in combination with rank More... | |
| static std::string | readPath () |
| template<class CommunicatorType > | |
| static void | createGlobalPath (const CommunicatorType &comm, const std::string &path) |
| create global path for data output More... | |
| static std::string | copyPathToFilename (const std::string &path) |
| static std::string | createRecoverPath (const std::string &pathPrefix, const int rank, const std::string &dataPrefix, const int step, const bool alsoUseRankPath=true) |
| template<class GridImp > | |
| static void | writeMacroGrid (const GridImp &grid, std::ostream &out, const std::string ¯oname, const std::string &path, const std::string &prefix, const bool writeSubFiles=false) |
| if grid is structured grid, write macro file More... | |
| template<class GridImp > | |
| static void | copyMacroGrid (const GridImp &g, const std::string ¯oGrid, const std::string &orgPath, const std::string &destPath, const std::string &prefix) |
| if grid is structured grid, write macro file More... | |
Protected Types | |
| typedef GridImp | GridType |
| type of grid used More... | |
| typedef DataImp | OutPutDataType |
| type of data tuple More... | |
| typedef DataWriter< GridImp, DataImp > | ThisType |
| type of this class More... | |
| typedef DataOutput< GridImp, DataImp > | BaseType |
Protected Member Functions | |
| virtual const char * | myClassName () const |
| print class name More... | |
| virtual void | writeBinaryData (const double sequenceStamp) const |
| write binary data More... | |
| template<class OutputTuple > | |
| std::string | writeMyBinaryData (const double sequenceStamp, const int step, OutputTuple &data) const |
| auto | getGridPart () const |
| auto | getGridPart (std::integral_constant< bool, false >) const |
| auto | getGridPart (std::integral_constant< bool, true >) const |
| std::string | writeVTKOutput () const |
| std::string | writeGnuPlotOutput () const |
| virtual void | display () const |
| display data with grape More... | |
| template<class OutputTupleType > | |
| void | grapeDisplay (OutputTupleType &data) const |
| display data with grape More... | |
Static Protected Member Functions | |
| static std::string | strRank (const int rank) |
| create string containing rank More... | |
| template<class GridImp > | |
| static void | saveCartesianGrid (const GridImp &grid, std::ostream &out, dgf::IntervalBlock &intervalBlock, std::string filename, const bool writeSubFiles) |
| write my partition as macro grid More... | |
| template<int dimension> | |
| static void | writeToStream (std::ostream &file, const FieldVector< double, dimension > &origin, const FieldVector< double, dimension > &lang, const FieldVector< int, dimension > &anz) |
| template<int dimension> | |
| static void | writeStructuredGrid (const std::string &filename, std::ostream &out, const FieldVector< double, dimension > &origin, const FieldVector< double, dimension > &lang, const FieldVector< int, dimension > &anz) |
| write structured grid as DGF file More... | |
Protected Attributes | |
| std::stringstream | macroGrid_ |
| const bool | separateRankPath_ |
| const GridType & | grid_ |
| type of this class More... | |
| OutPutDataType | data_ |
| std::string | path_ |
| std::string | datapref_ |
| bool | grapeDisplay_ |
| int | writeStep_ |
| int | writeCalls_ |
| double | saveTime_ |
| double | saveStep_ |
| int | saveCount_ |
| OutputFormat | outputFormat_ |
| bool | conformingOutput_ |
| std::unique_ptr< FileWriter > | sequence_ |
| std::unique_ptr< PVDWriter > | pvd_ |
| std::unique_ptr< const DataOutputParameters > | param_ |
Implementation of the Dune::IOInterface. This class manages data output. Available output formats are GRAPE, VTK and VTK Vertex projected using the VtxProjection operator. Details can be found in DiscFuncIO.
|
protected |
|
protected |
type of grid used
|
protected |
type of data tuple
|
protected |
type of this class
|
inherited |
|
inline |
Constructor creating data writer.
| grid | corresponding grid |
| data | Tuple containing discrete functions to write |
| parameter | structure for tuning the behavior of the Dune::DataWriter defaults to Dune::DataWriterParameters |
|
inline |
Constructor creating data writer.
| grid | corresponding grid |
| data | Tuple containing discrete functions to write |
| tp | a time provider to set time (e.g. for restart) |
| parameter | structure for tuning the behavior of the Dune::DataWriter defaults to Dune::DataWriterParameters |
|
inlinevirtual |
destructor
|
inlineinherited |
|
inlinestaticinherited |
if grid is structured grid, write macro file
|
inlinestaticinherited |
|
inlinestaticinherited |
create global path for data output
|
inlinestaticinherited |
|
inlinestaticinherited |
create given path in combination with rank
|
inlinestaticinherited |
create given path in combination with rank
|
inlinestaticinherited |
|
inlinestaticinherited |
return FEM key for macro grid reading
|
inlinestaticinherited |
|
inlinestaticinherited |
|
inlinestaticinherited |
return FEM key for macro grid reading
|
inlineprotectedvirtualinherited |
display data with grape
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
display data with grape
|
inlineprotectedvirtual |
print class name
Reimplemented from Dune::Fem::DataOutput< GridImp, DataImp >.
Reimplemented in Dune::Fem::CheckPointer< GridImp >.
|
inlineinherited |
return output path name
|
inlinestaticinherited |
standard path reading and creation method rank is added to output path
|
inlinestaticprotectedinherited |
write my partition as macro grid
|
inlineinherited |
return save time
|
inlinestaticprotectedinherited |
create string containing rank
|
inlinevirtualinherited |
returns true if data will be written on next write call
|
inlinevirtualinherited |
returns true if data will be written on next write call
Reimplemented in Dune::Fem::CheckPointer< GridImp >.
|
inlinevirtualinherited |
write given data to disc, evaluates parameter savecount
Implements Dune::Fem::IOInterface.
|
inlineinherited |
write given data to disc, evaluates parameter savecount
| outstring | pass additional string for naming |
|
inlinevirtualinherited |
write given data to disc, evaluates parameter savecount and savestep
| tp | time provider for time and step |
Implements Dune::Fem::IOInterface.
|
inlineinherited |
write given data to disc, evaluates parameter savecount and savestep
| tp | time provider for time and step |
| outstring | pass additional string for naming |
|
inlineprotectedvirtual |
write binary data
Reimplemented from Dune::Fem::DataOutput< GridImp, DataImp >.
Reimplemented in Dune::Fem::CheckPointer< GridImp >.
|
inlineinherited |
return write calls
|
inlinevirtualinherited |
write data with a given sequence stamp
| sequenceStamp | stamp for the data set |
Implements Dune::Fem::IOInterface.
|
inlineinherited |
write data with a given sequence stamp and outstring
| sequenceStamp | stamp for the data set |
| outstring | pass additional string for naming |
|
inlineprotectedinherited |
|
inlinestaticinherited |
if grid is structured grid, write macro file
|
inlineprotected |
|
inlineinherited |
return write step
|
inlinestaticprotectedinherited |
write structured grid as DGF file
|
inlinestaticprotectedinherited |
|
inlineprotectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
type of this class
|
mutableprotected |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
mutableprotectedinherited |
|
protected |
|
protectedinherited |
|
mutableprotectedinherited |
|
mutableprotectedinherited |