Collects necessary output values and pass it to opm-common's ECL output.
More...
#include <EclWriter.hpp>
|
const TransmissibilityType & | globalTrans () const |
|
unsigned int | gridEquilIdxToGridIdx (unsigned int elemIndex) const |
|
void | doWriteOutput (const int reportStepNum, const std::optional< int > timeStepNum, const bool isSubStep, data::Solution &&localCellData, data::Wells &&localWellData, data::GroupAndNetworkValues &&localGroupAndNetworkData, data::Aquifers &&localAquiferData, WellTestState &&localWTestState, const Action::State &actionState, const UDQState &udqState, const SummaryState &summaryState, const std::vector< GetPropType< TypeTag, Properties::Scalar > > &thresholdPressure, GetPropType< TypeTag, Properties::Scalar > curTime, GetPropType< TypeTag, Properties::Scalar > nextStepSize, bool doublePrecision, bool isFlowsn, std::array< FlowsData< double >, 3 > &&flowsn, bool isFloresn, std::array< FlowsData< double >, 3 > &&floresn) |
|
void | evalSummary (int reportStepNum, GetPropType< TypeTag, Properties::Scalar > curTime, const data::Wells &localWellData, const data::WellBlockAveragePressures &localWBPData, const data::GroupAndNetworkValues &localGroupAndNetworkData, const std::map< int, data::AquiferData > &localAquiferData, const std::map< std::pair< std::string, int >, double > &blockData, const std::map< std::string, double > &miscSummaryData, const std::map< std::string, std::vector< double > > ®ionData, const Inplace &inplace, const Inplace &initialInPlace, const InterRegFlowMap &interRegFlows, SummaryState &summaryState, UDQState &udqState) |
|
template<class TypeTag>
class Opm::EclWriter< TypeTag > Collects necessary output values and pass it to opm-common's ECL output.
Caveats:
- For this class to do do anything meaningful, you will have to have the OPM module opm-common with ECL writing enabled.
- The only DUNE grid which is currently supported is Dune::CpGrid from the OPM module "opm-grid". Using another grid won't fail at compile time but you will provoke a fatal exception as soon as you try to write an ECL output file.
- This class requires to use the black oil model with the element centered finite volume discretization.
◆ EclWriter()
References Opm::EclGenericWriter< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::EquilGrid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::ElementMapper >, GetPropType< TypeTag, Properties::Scalar > >::collectOnIORank_, Opm::eclBroadcast(), and Opm::EclGenericWriter< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::EquilGrid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::ElementMapper >, GetPropType< TypeTag, Properties::Scalar > >::eclIO_.
◆ ~EclWriter()
◆ beginRestart()
References Opm::EclGenericWriter< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::EquilGrid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::ElementMapper >, GetPropType< TypeTag, Properties::Scalar > >::collectOnIORank_, Opm::EclGenericWriter< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::EquilGrid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::ElementMapper >, GetPropType< TypeTag, Properties::Scalar > >::eclIO_, Opm::loadParallelRestart(), and Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::localIdxToGlobalIdx().
◆ collectOnIORank()
◆ doWriteOutput()
void Opm::EclGenericWriter< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::EquilGrid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::ElementMapper > , GetPropType< TypeTag, Properties::Scalar > >::doWriteOutput |
( |
const int |
reportStepNum, |
|
|
const std::optional< int > |
timeStepNum, |
|
|
const bool |
isSubStep, |
|
|
data::Solution && |
localCellData, |
|
|
data::Wells && |
localWellData, |
|
|
data::GroupAndNetworkValues && |
localGroupAndNetworkData, |
|
|
data::Aquifers && |
localAquiferData, |
|
|
WellTestState && |
localWTestState, |
|
|
const Action::State & |
actionState, |
|
|
const UDQState & |
udqState, |
|
|
const SummaryState & |
summaryState, |
|
|
const std::vector< GetPropType< TypeTag, Properties::Scalar > > & |
thresholdPressure, |
|
|
GetPropType< TypeTag, Properties::Scalar > |
curTime, |
|
|
GetPropType< TypeTag, Properties::Scalar > |
nextStepSize, |
|
|
bool |
doublePrecision, |
|
|
bool |
isFlowsn, |
|
|
std::array< FlowsData< double >, 3 > && |
flowsn, |
|
|
bool |
isFloresn, |
|
|
std::array< FlowsData< double >, 3 > && |
floresn |
|
) |
| |
|
protectedinherited |
◆ eclIO()
◆ endRestart()
◆ evalSummary()
void Opm::EclGenericWriter< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::EquilGrid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::ElementMapper > , GetPropType< TypeTag, Properties::Scalar > >::evalSummary |
( |
int |
reportStepNum, |
|
|
GetPropType< TypeTag, Properties::Scalar > |
curTime, |
|
|
const data::Wells & |
localWellData, |
|
|
const data::WellBlockAveragePressures & |
localWBPData, |
|
|
const data::GroupAndNetworkValues & |
localGroupAndNetworkData, |
|
|
const std::map< int, data::AquiferData > & |
localAquiferData, |
|
|
const std::map< std::pair< std::string, int >, double > & |
blockData, |
|
|
const std::map< std::string, double > & |
miscSummaryData, |
|
|
const std::map< std::string, std::vector< double > > & |
regionData, |
|
|
const Inplace & |
inplace, |
|
|
const Inplace & |
initialInPlace, |
|
|
const InterRegFlowMap & |
interRegFlows, |
|
|
SummaryState & |
summaryState, |
|
|
UDQState & |
udqState |
|
) |
| |
|
protectedinherited |
◆ evalSummaryState()
collect and pass data and pass it to eclIO writer
References Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::collect(), Opm::EclGenericWriter< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::EquilGrid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::ElementMapper >, GetPropType< TypeTag, Properties::Scalar > >::collectOnIORank_, Opm::InterRegFlowMap::compress(), Opm::EclGenericWriter< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::EquilGrid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::ElementMapper >, GetPropType< TypeTag, Properties::Scalar > >::evalSummary(), Opm::EclWriter< TypeTag >::evalSummaryState(), Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalBlockData(), Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalInterRegFlows(), Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::isIORank(), Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::isParallel(), Opm::SimulatorReportSingle::max_linear_iterations, Opm::SimulatorReportSingle::min_linear_iterations, OPM_BEGIN_PARALLEL_TRY_CATCH, OPM_END_PARALLEL_TRY_CATCH, Opm::EclGenericWriter< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::EquilGrid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::ElementMapper >, GetPropType< TypeTag, Properties::Scalar > >::simulation_report_, Opm::EclGenericWriter< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::EquilGrid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::ElementMapper >, GetPropType< TypeTag, Properties::Scalar > >::sub_step_report_, Opm::SimulatorReport::success, Opm::SimulatorReportSingle::total_linear_iterations, and Opm::SimulatorReportSingle::total_newton_iterations.
Referenced by Opm::EclWriter< TypeTag >::evalSummaryState().
◆ extractOutputTransAndNNC()
◆ getOutputNnc()
◆ globalGrid()
◆ globalTrans()
const EclGenericWriter< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::EquilGrid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::ElementMapper > , GetPropType< TypeTag, Properties::Scalar > >::TransmissibilityType & Opm::EclGenericWriter< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::EquilGrid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::ElementMapper > , GetPropType< TypeTag, Properties::Scalar > >::globalTrans |
|
protectedinherited |
◆ gridEquilIdxToGridIdx()
◆ mutableOutputModule()
◆ outputModule()
◆ registerParameters()
◆ restartTimeStepSize()
◆ serializeOp()
template<class TypeTag >
template<class Serializer >
void Opm::EclWriter< TypeTag >::serializeOp |
( |
Serializer & |
serializer | ) |
|
|
inline |
◆ setSimulationReport()
◆ setSubStepReport()
◆ setTransmissibilities()
◆ writeInit()
◆ writeInitialFIPReport()
Writes the initial FIP report as configured in RPTSOL.
References Opm::EclGenericWriter< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::EquilGrid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::ElementMapper >, GetPropType< TypeTag, Properties::Scalar > >::collectOnIORank_, Opm::detail::countLocalInteriorCellsGridView(), and Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::isIORank().
◆ writeOutput()
template<class TypeTag >
void Opm::EclWriter< TypeTag >::writeOutput |
( |
data::Solution && |
localCellData, |
|
|
bool |
isSubStep |
|
) |
| |
|
inline |
References Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::collect(), Opm::EclGenericWriter< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::EquilGrid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::ElementMapper >, GetPropType< TypeTag, Properties::Scalar > >::collectOnIORank_, Opm::EclGenericWriter< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::EquilGrid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::ElementMapper >, GetPropType< TypeTag, Properties::Scalar > >::doWriteOutput(), Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::globalCellData(), Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::isIORank(), Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::isParallel(), and Opm::EclWriter< TypeTag >::writeOutput().
Referenced by Opm::EclWriter< TypeTag >::writeOutput().
◆ writeReports()
References Opm::EclGenericWriter< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::EquilGrid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::ElementMapper >, GetPropType< TypeTag, Properties::Scalar > >::collectOnIORank_, Opm::SimulatorTimer::currentDateTime(), Opm::CollectDataOnIORank< Grid, EquilGrid, GridView >::isIORank(), Opm::SimulatorTimerInterface::reportStepNum(), Opm::EclGenericWriter< GetPropType< TypeTag, Properties::Grid >, GetPropType< TypeTag, Properties::EquilGrid >, GetPropType< TypeTag, Properties::GridView >, GetPropType< TypeTag, Properties::ElementMapper >, GetPropType< TypeTag, Properties::Scalar > >::schedule_, and Opm::SimulatorTimer::simulationTimeElapsed().
◆ cartMapper_
const Dune::CartesianIndexMapper<GetPropType< TypeTag, Properties::Grid > >& Opm::EclGenericWriter< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::EquilGrid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::ElementMapper > , GetPropType< TypeTag, Properties::Scalar > >::cartMapper_ |
|
protectedinherited |
◆ collectOnIORank_
◆ eclIO_
◆ eclState_
◆ equilCartMapper_
const Dune::CartesianIndexMapper<GetPropType< TypeTag, Properties::EquilGrid > >* Opm::EclGenericWriter< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::EquilGrid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::ElementMapper > , GetPropType< TypeTag, Properties::Scalar > >::equilCartMapper_ |
|
protectedinherited |
◆ equilGrid_
const GetPropType< TypeTag, Properties::EquilGrid > * Opm::EclGenericWriter< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::EquilGrid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::ElementMapper > , GetPropType< TypeTag, Properties::Scalar > >::equilGrid_ |
|
protectedinherited |
◆ globalTrans_
◆ grid_
const GetPropType< TypeTag, Properties::Grid > & Opm::EclGenericWriter< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::EquilGrid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::ElementMapper > , GetPropType< TypeTag, Properties::Scalar > >::grid_ |
|
protectedinherited |
◆ gridView_
const GetPropType< TypeTag, Properties::GridView > & Opm::EclGenericWriter< GetPropType< TypeTag, Properties::Grid > , GetPropType< TypeTag, Properties::EquilGrid > , GetPropType< TypeTag, Properties::GridView > , GetPropType< TypeTag, Properties::ElementMapper > , GetPropType< TypeTag, Properties::Scalar > >::gridView_ |
|
protectedinherited |
◆ outputNnc_
|
mutableprotectedinherited |
◆ outputTrans_
|
mutableprotectedinherited |
◆ schedule_
◆ simulation_report_
◆ sub_step_report_
◆ taskletRunner_
The documentation for this class was generated from the following file:
|