Go to the documentation of this file.
22#ifndef LOG_OUTPUT_HELPER_HPP
23#define LOG_OUTPUT_HELPER_HPP
25#include <opm/output/eclipse/Inplace.hpp>
30#include <unordered_map>
32#include <boost/date_time.hpp>
48 const Schedule& schedule,
49 const SummaryState& st,
54 const bool withConns) const;
57 void error( const std::vector<int>& failedCellsPbub,
58 const std::vector<int>& failedCellsPdew) const;
61 void fip( const Inplace& inplace,
62 const Inplace& initialInplace,
63 const std::string& name) const;
66 void fipResv( const Inplace& inplace, const std::string& name) const;
69 void fip_csv(std::ostringstream& ss, const Inplace& inplace, const std::string& name) const;
76 const std::map<std::pair<std::string,int>, double>& block_pressures) const;
79 void msw( const std::size_t reportStepNum) const;
83 const std::map<std::pair<std::string,int>, double>& block_pressures) const;
92 const std::size_t reportStepNum) const;
97 boost::posix_time::ptime currentDate) const;
102 ConnData( const Connection& conn);
105 std::vector<Scalar> data;
108 void beginCumulativeReport_() const;
109 void endCumulativeReport_() const;
110 void outputCumulativeReportRecord_( const std::vector<Scalar>& wellCum,
111 const std::vector<std::string>& wellCumNames,
112 const std::vector<ConnData>& connData) const;
114 void outputRegionFluidInPlace_(std::unordered_map<Inplace::Phase, Scalar> oip,
115 std::unordered_map<Inplace::Phase, Scalar> cip,
117 const std::string& name,
118 const int reg) const;
120 void outputResvFluidInPlace_(std::unordered_map<Inplace::Phase, Scalar> cipr,
121 const int reg) const;
123 void beginInjectionReport_() const;
124 void endInjectionReport_() const;
125 void outputInjectionReportRecord_( const std::vector<Scalar>& wellInj,
126 const std::vector<std::string>& wellInjNames,
127 const std::vector<ConnData>& connData) const;
129 void beginMSWReport_() const;
130 void endMSWReport_() const;
131 void outputMSWReportRecord_( const Well& well) const;
133 void beginProductionReport_() const;
134 void endProductionReport_() const;
135 void outputProductionReportRecord_( const std::vector<Scalar>& wellProd,
136 const std::vector<std::string>& wellProdNames,
137 const std::vector<ConnData>& connData) const;
139 void fipUnitConvert_(std::unordered_map<Inplace::Phase, Scalar>& fip) const;
140 void pressureUnitConvert_(Scalar& pav) const;
142 struct WellCumDataType
160 static constexpr int numWCValues = 10;
161 static constexpr int numWCNames = 3;
164 struct WellInjDataType
184 static constexpr int numWIValues = 9;
185 static constexpr int numWINames = 4;
188 struct WellProdDataType
210 static constexpr int numWPValues = 12;
211 static constexpr int numWPNames = 2;
214 const EclipseState& eclState_;
215 const Schedule& schedule_;
216 const SummaryState& summaryState_;
217 std::string flowVersionName_;
Definition: LogOutputHelper.hpp:45
void timeStamp(const std::string &lbl, double elapsed, int rstep, boost::posix_time::ptime currentDate) const
void error(const std::vector< int > &failedCellsPbub, const std::vector< int > &failedCellsPdew) const Write error report to output.
void fip(const Inplace &inplace, const Inplace &initialInplace, const std::string &name) const Write fluid-in-place reports to output.
void msw(const std::size_t reportStepNum) const Write msw report to output.
void cumulative(const std::size_t reportStepNum, const bool withConns) const Write cumulative production and injection reports to output.
void fipResv(const Inplace &inplace, const std::string &name) const Write fluid-in-place reservoir reports to output.
void injection(const std::size_t reportStepNum, const std::map< std::pair< std::string, int >, double > &block_pressures) const Write injection report to output.
void fip_csv(std::ostringstream &ss, const Inplace &inplace, const std::string &name) const Write fluid-in-place reservoir reports to csv file.
LogOutputHelper(const EclipseState &eclState, const Schedule &schedule, const SummaryState &st, const std::string &moduleVersionName)
void wellSpecification(const std::vector< std::string > &changedWells, const std::size_t reportStepNum) const Write well specification report to output.
void production(const std::size_t reportStepNum, const std::map< std::pair< std::string, int >, double > &block_pressures) const Write production report to output.
void csv_header(std::ostringstream &ss) const Write fluid-in-place reservoir reports to csv file.
@ CPR Definition: Preconditioner.hpp:33
Definition: blackoilboundaryratevector.hh:39
std::string moduleVersionName()
|