Interface for writing non-compositional (blackoil, two-phase) simulation state to files.Use the create() function to setup a chain of writer based on the configuration values, e.g.
ParameterGroup params (argc, argv, false);
auto parser = std::make_shared <const Deck> (
params.get <string> ("deck_filename"));
std::unique_ptr <OutputWriter> writer =
OutputWriter::create (params, parser);
writer->writeInit( current_posix_time, time_since_epoch_at_start );
writer->writeTimeStep
#ifndef OPM_OUTPUT_WRITER_HPP
#define OPM_OUTPUT_WRITER_HPP
#include <opm/parser/eclipse/EclipseState/Grid/NNC.hpp>
#include <opm/output/Cells.hpp>
#include <opm/output/Wells.hpp>
struct UnstructuredGrid;
class EclipseState;
namespace parameter { class ParameterGroup; }
class WellState;
struct PhaseUsage;
class OutputWriter {
public:
virtual void writeInit(
const NNC& nnc ) = 0;
time_t current_posix_time,
double seconds_elapsed,
data::Solution reservoirState,
data::Wells,
bool isSubstep) = 0;
};
}
#endif