|
dune-fem 2.12-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. | |
| DataWriter (const GridType &grid, OutPutDataType &data, const TimeProviderBase &tp, const DataWriterParameters ¶meter=DataWriterParameters()) | |
| Constructor creating data writer. | |
| virtual | ~DataWriter () |
| destructor | |
| void | consistentSaveStep (const TimeProviderBase &tp) const |
| virtual bool | willWrite (const TimeProviderBase &tp) const |
| returns true if data will be written on next write call | |
| virtual bool | willWrite () const |
| returns true if data will be written on next write call | |
| void | write (const std::string &outstring) const |
| write given data to disc, evaluates parameter savecount | |
| void | write () const |
| write given data to disc, evaluates parameter savecount | |
| void | write (const TimeProviderBase &tp, const std::string &outstring) const |
| write given data to disc, evaluates parameter savecount and savestep | |
| void | write (const TimeProviderBase &tp) const |
| write given data to disc, evaluates parameter savecount and savestep | |
| void | writeData (double sequenceStamp, const std::string &outstring) const |
| write data with a given sequence stamp and outstring | |
| void | writeData (double sequenceStamp) const |
| write data with a given sequence stamp | |
| const std::string & | path () const |
| return output path name | |
| int | writeStep () const |
| return write step | |
| int | writeCalls () const |
| return write calls | |
| double | saveTime () const |
| return save time | |
Static Public Member Functions | |
| static std::string | defaultGridKey (int dimension, bool check=true) |
| return FEM key for macro grid reading | |
| 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 | |
| static void | createPath (const std::string &path) |
| create given path in combination with rank | |
| 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 | |
| static std::string | readPath () |
| template<class CommunicatorType > | |
| static void | createGlobalPath (const CommunicatorType &comm, const std::string &path) |
| create global path for data output | |
| 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) |
Protected Types | |
| typedef GridImp | GridType |
| type of grid used | |
| typedef DataImp | OutPutDataType |
| type of data tuple | |
| typedef DataWriter< GridImp, DataImp > | ThisType |
| type of this class | |
| typedef DataOutput< GridImp, DataImp > | BaseType |
Protected Member Functions | |
| virtual const char * | myClassName () const |
| print class name | |
| virtual void | writeBinaryData (const double sequenceStamp) const |
| write binary data | |
| 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 | writeGnuPlotOutput () const |
| virtual void | display () const |
| display data with grape | |
| template<class OutputTupleType > | |
| void | grapeDisplay (OutputTupleType &data) const |
| display data with grape | |
Protected Attributes | |
| std::stringstream | macroGrid_ |
| const bool | separateRankPath_ |
| const GridType & | grid_ |
| type of this class | |
| 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_ |
Friends | |
| class | DataOutput< GridImp, DataImp > |
Detailed Description
class Dune::Fem::DataWriter< GridImp, DataImp >
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.
Member Typedef Documentation
◆ BaseType
|
protected |
◆ GridType
|
protected |
type of grid used
◆ OutPutDataType
|
protected |
type of data tuple
◆ ThisType
|
protected |
type of this class
Member Enumeration Documentation
◆ OutputFormat
|
inherited |
Constructor & Destructor Documentation
◆ DataWriter() [1/2]
|
inline |
Constructor creating data writer.
- Parameters
-
grid corresponding grid data Tuple containing discrete functions to write parameter structure for tuning the behavior of the Dune::DataWriter defaults to Dune::DataWriterParameters
◆ DataWriter() [2/2]
|
inline |
Constructor creating data writer.
- Parameters
-
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
◆ ~DataWriter()
|
inlinevirtual |
destructor
Member Function Documentation
◆ consistentSaveStep()
|
inlineinherited |
◆ copyPathToFilename()
|
inlinestaticinherited |
◆ createGlobalPath()
|
inlinestaticinherited |
create global path for data output
◆ createPath() [1/2]
|
inlinestaticinherited |
◆ createPath() [2/2]
|
inlinestaticinherited |
create given path in combination with rank
◆ createPathName()
|
inlinestaticinherited |
create given path in combination with rank
◆ createRecoverPath()
|
inlinestaticinherited |
◆ defaultGridKey() [1/4]
|
inlinestaticinherited |
return FEM key for macro grid reading
◆ defaultGridKey() [2/4]
|
inlinestaticinherited |
◆ defaultGridKey() [3/4]
|
inlinestaticinherited |
◆ defaultGridKey() [4/4]
|
inlinestaticinherited |
return FEM key for macro grid reading
◆ display()
|
inlineprotectedvirtualinherited |
display data with grape
◆ getGridPart() [1/3]
|
inlineprotectedinherited |
◆ getGridPart() [2/3]
|
inlineprotectedinherited |
◆ getGridPart() [3/3]
|
inlineprotectedinherited |
◆ grapeDisplay()
|
inlineprotectedinherited |
display data with grape
◆ myClassName()
|
inlineprotectedvirtual |
print class name
Reimplemented from Dune::Fem::DataOutput< GridImp, DataImp >.
Reimplemented in Dune::Fem::CheckPointer< GridImp >.
◆ path()
|
inlineinherited |
return output path name
◆ readPath()
|
inlinestaticinherited |
standard path reading and creation method rank is added to output path
◆ saveTime()
|
inlineinherited |
return save time
◆ willWrite() [1/2]
|
inlinevirtualinherited |
returns true if data will be written on next write call
◆ willWrite() [2/2]
|
inlinevirtualinherited |
returns true if data will be written on next write call
Reimplemented in Dune::Fem::CheckPointer< GridImp >.
◆ write() [1/4]
|
inlinevirtualinherited |
write given data to disc, evaluates parameter savecount
Implements Dune::Fem::IOInterface.
◆ write() [2/4]
|
inlineinherited |
write given data to disc, evaluates parameter savecount
- Parameters
-
outstring pass additional string for naming
◆ write() [3/4]
|
inlinevirtualinherited |
write given data to disc, evaluates parameter savecount and savestep
- Parameters
-
tp time provider for time and step
Implements Dune::Fem::IOInterface.
◆ write() [4/4]
|
inlineinherited |
write given data to disc, evaluates parameter savecount and savestep
- Parameters
-
tp time provider for time and step outstring pass additional string for naming
◆ writeBinaryData()
|
inlineprotectedvirtual |
write binary data
Reimplemented from Dune::Fem::DataOutput< GridImp, DataImp >.
Reimplemented in Dune::Fem::CheckPointer< GridImp >.
◆ writeCalls()
|
inlineinherited |
return write calls
◆ writeData() [1/2]
|
inlinevirtualinherited |
write data with a given sequence stamp
- Parameters
-
sequenceStamp stamp for the data set
Implements Dune::Fem::IOInterface.
◆ writeData() [2/2]
|
inlineinherited |
write data with a given sequence stamp and outstring
- Parameters
-
sequenceStamp stamp for the data set outstring pass additional string for naming
◆ writeGnuPlotOutput()
|
inlineprotectedinherited |
◆ writeMyBinaryData()
|
inlineprotected |
◆ writeStep()
|
inlineinherited |
return write step
Friends And Related Symbol Documentation
◆ DataOutput< GridImp, DataImp >
|
friend |
Member Data Documentation
◆ conformingOutput_
|
protectedinherited |
◆ data_
|
protectedinherited |
◆ datapref_
|
protectedinherited |
◆ grapeDisplay_
|
protectedinherited |
◆ grid_
|
protectedinherited |
type of this class
◆ macroGrid_
|
mutableprotected |
◆ outputFormat_
|
protectedinherited |
◆ param_
|
protectedinherited |
◆ path_
|
protectedinherited |
◆ pvd_
|
protectedinherited |
◆ saveCount_
|
protectedinherited |
◆ saveStep_
|
protectedinherited |
◆ saveTime_
|
mutableprotectedinherited |
◆ separateRankPath_
|
protected |
◆ sequence_
|
protectedinherited |
◆ writeCalls_
|
mutableprotectedinherited |
◆ writeStep_
|
mutableprotectedinherited |
The documentation for this class was generated from the following file:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8