Alsvinn
0.5.3
The fast FVM simulator with UQ support
|
The Writer class is an abstract interface to represent output writers. More...
#include <alsfvm/io/Writer.hpp>
Public Member Functions | |
virtual | ~Writer () |
virtual void | write (const volume::Volume &conservedVariables, const grid::Grid &grid, const simulator::TimestepInformation ×tepInformation)=0 |
write writes the data to disk More... | |
virtual void | finalize (const grid::Grid &grid, const simulator::TimestepInformation ×tepInformation) |
This method should be called at the end of the simulation. More... | |
void | addAttributes (const std::string &nameOfAttributes, const boost::property_tree::ptree &attributes) |
Static Public Member Functions | |
static std::string | getClassName () |
Protected Attributes | |
std::map< std::string, boost::property_tree::ptree > | attributesMap |
The Writer class is an abstract interface to represent output writers.
|
inlinevirtual |
void alsfvm::io::Writer::addAttributes | ( | const std::string & | nameOfAttributes, |
const boost::property_tree::ptree & | attributes | ||
) |
Adds attributes to be written to the file (this is an optional feature, not every writer supports this. Attributes should be description of the simulation environment to help reproduce the output file (eg. numerical parameters, initial data, etc).
|
inlinevirtual |
This method should be called at the end of the simulation.
Reimplemented in alsfvm::io::DLLWriter, alsfvm::io::CoarseGrainingIntervalWriter, alsfvm::io::FixedIntervalWriter, alsfvm::io::TimeIntegratedWriter, alsfvm::functional::TimeIntegrationFunctional, and alsfvm::io::PythonScript.
|
inlinestatic |
|
pure virtual |
write writes the data to disk
conservedVariables | the conservedVariables to write |
grid | the grid that is used (describes the whole domain) |
timestepInformation |
Implemented in alsfvm::io::DLLWriter, alsfvm::io::NetCDFMPIWriter, alsfvm::io::HDF5MPIWriter, alsfvm::io::CoarseGrainingIntervalWriter, alsfvm::io::FixedIntervalWriter, alsfvm::io::QueueWriter, alsfvm::io::HDF5Writer, alsfvm::io::TimeIntegratedWriter, alsfvm::io::NetCDFWriter, alsfvm::functional::TimeIntegrationFunctional, alsfvm::functional::IntervalFunctionalWriter, alsfvm::io::PythonScript, and alsuq::stats::Statistics.
|
protected |