27#ifndef OPM_OUTPUT_COMPOSITIONAL_MODULE_HPP
28#define OPM_OUTPUT_COMPOSITIONAL_MODULE_HPP
30#include <dune/grid/common/gridenums.hh>
34#include <opm/common/Exceptions.hpp>
35#include <opm/common/ErrorMacros.hpp>
36#include <opm/common/TimingMacros.hpp>
37#include <opm/common/OpmLog/OpmLog.hpp>
39#include <opm/input/eclipse/EclipseState/SummaryConfig/SummaryConfig.hpp>
41#include <opm/material/common/Valgrind.hpp>
66#include <fmt/format.h>
71template <
class TypeTag>
72class EcfvDiscretization;
80template <
class TypeTag>
94 enum { numPhases = FluidSystem::numPhases };
95 enum { numComponents = FluidSystem::numComponents };
96 enum { oilPhaseIdx = FluidSystem::oilPhaseIdx };
97 enum { gasPhaseIdx = FluidSystem::gasPhaseIdx };
98 enum { waterPhaseIdx = FluidSystem::waterPhaseIdx };
107 template <
class CollectDataToIORankType>
109 const SummaryConfig& smryCfg,
110 const CollectDataToIORankType& collectToIORank)
111 :
BaseType(simulator.vanguard().eclState(),
112 simulator.vanguard().schedule(),
114 simulator.vanguard().summaryState(),
116 [this](const int idx)
117 {
return simulator_.problem().eclWriter().collectOnIORank().localIdxToGlobalIdx(idx); },
118 [&collectToIORank](
const int idx)
119 {
return collectToIORank.isCartIdxOnThisRank(idx); },
120 simulator.vanguard().grid().comm(),
121 getPropValue<TypeTag, Properties::EnergyModuleType>() == EnergyModules::FullyImplicitThermal,
122 getPropValue<TypeTag, Properties::EnergyModuleType>() == EnergyModules::ConstantTemperature,
123 getPropValue<TypeTag, Properties::EnableMech>(),
124 getPropValue<TypeTag, Properties::EnableSolvent>(),
125 getPropValue<TypeTag, Properties::EnablePolymer>(),
126 getPropValue<TypeTag, Properties::EnableFoam>(),
127 getPropValue<TypeTag, Properties::EnableBrine>(),
128 getPropValue<TypeTag, Properties::EnableSaltPrecipitation>(),
129 getPropValue<TypeTag, Properties::EnableExtbo>(),
130 getPropValue<TypeTag, Properties::EnableBioeffects>(),
131 getPropValue<TypeTag, Properties::EnableGeochemistry>())
132 , simulator_(simulator)
134 for (
auto& region_pair : this->
regions_) {
135 this->createLocalRegion_(region_pair.second);
138 auto isCartIdxOnThisRank = [&collectToIORank](
const int idx) {
139 return collectToIORank.isCartIdxOnThisRank(idx);
146 if (! collectToIORank.isParallel()) {
150 if (! Parameters::Get<Parameters::OwnerCellsFirst>()) {
151 const std::string msg =
"The output code does not support --owner-cells-first=false.";
152 if (collectToIORank.isIORank()) {
155 OPM_THROW_NOLOG(std::runtime_error, msg);
158 if (smryCfg.match(
"[FB]PP[OGW]") || smryCfg.match(
"RPP[OGW]*")) {
159 auto rset = this->
eclState_.fieldProps().fip_regions();
160 rset.push_back(
"PVTNUM");
166 .emplace(this->simulator_.gridView().comm(),
167 FluidSystem::numPhases, rset,
168 [fp = std::cref(this->eclState_.fieldProps())]
169 (
const std::string& rsetName) ->
decltype(
auto)
170 { return fp.get().get_int(rsetName); });
180 const unsigned reportStepNum,
183 const bool forceRestartFieldAllocation)
189 auto rstKeywords = this->
schedule_.rst_keywords(reportStepNum);
190 const bool isRestartOutput = forceRestartFieldAllocation ||
191 (!substep && this->
schedule_.write_rst_file(reportStepNum));
192 const auto restartOutput = isRestartOutput
193 ? RestartOutput::Enabled
194 : RestartOutput::Disabled;
195 this->compC_.allocate(bufferSize, rstKeywords, restartOutput);
196 this->numUnresolvedSaturationPressures_ = 0;
199 forceRestartFieldAllocation,
202 std::move(rstKeywords));
207 this->compC_.outputRestart(sol, this->
saturation_[oilPhaseIdx]);
213 .gasDensity =
"DENG",
214 .waterDensity =
"DENW",
215 .oilViscosity =
"VOIL",
216 .gasViscosity =
"VGAS",
217 .waterViscosity =
"VWAT",
221 using M = UnitSystem::measure;
223 relativePermeability_[oilPhaseIdx], oilPhaseIdx);
225 relativePermeability_[gasPhaseIdx], gasPhaseIdx);
226 if constexpr (numPhases > 2) {
228 relativePermeability_[waterPhaseIdx], waterPhaseIdx);
233 const std::size_t reportStepNum,
235 boost::posix_time::ptime currentDate,
239 if (comm.rank() != 0) {
243 std::unique_ptr<FIPConfig> fipSched;
244 if (reportStepNum > 0) {
245 const auto& rpt = this->
schedule_[reportStepNum - 1].rpt_config.get();
246 fipSched = std::make_unique<FIPConfig>(rpt);
249 const FIPConfig& fipc = reportStepNum == 0
250 ? this->
eclState_.getEclipseConfig().fip()
254 this->
logOutput_.timeStamp(
"BALANCE", elapsed, reportStepNum, currentDate);
257 this->
logOutput_.fip(inplace, initial_inplace,
"");
259 if (fipc.output(FIPConfig::OutputField::FIPNUM)) {
260 this->
logOutput_.fip(inplace, initial_inplace,
"FIPNUM");
262 if (fipc.output(FIPConfig::OutputField::RESV)) {
267 if (fipc.output(FIPConfig::OutputField::FIP)) {
268 for (
const auto& reg : this->regions_) {
269 if (reg.first !=
"FIPNUM") {
270 std::ostringstream ss;
271 ss <<
"BAL" << reg.first.substr(3);
272 this->
logOutput_.timeStamp(ss.str(), elapsed, reportStepNum, currentDate);
273 this->
logOutput_.fip(inplace, initial_inplace, reg.first);
275 if (fipc.output(FIPConfig::OutputField::RESV)) {
288 if (comm.rank() != 0) {
292 if ((reportStepNum == 0) && (!substep) &&
293 (this->
schedule_.initialReportConfiguration().has_value()) &&
294 (this->schedule_.initialReportConfiguration()->contains(
"CSVFIP"))) {
296 std::ostringstream csv_stream;
302 this->
logOutput_.fip_csv(csv_stream, initial_inplace,
"FIPNUM");
304 for (
const auto& reg : this->regions_) {
305 if (reg.first !=
"FIPNUM") {
306 this->
logOutput_.fip_csv(csv_stream, initial_inplace, reg.first);
310 const IOConfig& io = this->
eclState_.getIOConfig();
311 auto csv_fname = io.getOutputDir() +
"/" + io.getBaseName() +
".CSV";
313 std::ofstream outputFile(csv_fname);
314 outputFile << csv_stream.str();
327 auto extractors = std::array{
329 [](
const unsigned phase,
const ExtractContext& ectx)
330 {
return ectx.intQuants.saturationForOutput(phase); }}
333 [](
const ExtractContext& ectx)
335 if (FluidSystem::phaseIsActive(oilPhaseIdx)) {
337 return getValue(ectx.fs.pressure(oilPhaseIdx));
339 else if (FluidSystem::phaseIsActive(gasPhaseIdx)) {
341 return getValue(ectx.fs.pressure(gasPhaseIdx));
345 return getValue(ectx.fs.pressure(waterPhaseIdx));
350 [](
const ExtractContext& ectx)
351 {
return getValue(ectx.fs.temperature(oilPhaseIdx)); }}
353 Entry{[&compC = this->compC_](
const ExtractContext& ectx)
355 compC.assignMoleFractions(ectx.globalDofIdx,
356 [&ectx](
const unsigned compIdx)
358 return ectx.intQuants.hasHydrocarbon()
359 ? getValue(ectx.fs.moleFraction(compIdx))
362 }, this->compC_.moleFractionsAllocated()
367 Entry{[&compC = this->compC_](
const ExtractContext& ectx)
370 ectx.intQuants.phaseIsPresent(gasPhaseIdx);
371 compC.assignGasFractions(ectx.globalDofIdx,
372 [&fs = ectx.fs, hasGas](
const unsigned compIdx)
375 ? getValue(fs.moleFraction(gasPhaseIdx, compIdx))
378 }, FluidSystem::phaseIsActive(gasPhaseIdx) &&
379 this->compC_.gasFractionsAllocated()
381 Entry{[&compC = this->compC_](
const ExtractContext& ectx)
384 ectx.intQuants.phaseIsPresent(oilPhaseIdx);
385 compC.assignOilFractions(ectx.globalDofIdx,
386 [&fs = ectx.fs, hasOil](
const unsigned compIdx)
389 ? getValue(fs.moleFraction(oilPhaseIdx, compIdx))
392 }, FluidSystem::phaseIsActive(oilPhaseIdx) &&
393 this->compC_.oilFractionsAllocated()
395 Entry{[&compC = this->compC_](
const ExtractContext& ectx)
397 compC.assignPhasePressures(ectx.globalDofIdx,
398 getValue(ectx.fs.pressure(oilPhaseIdx)),
399 getValue(ectx.fs.pressure(gasPhaseIdx)));
400 }, this->compC_.phasePressuresAllocated()
404 Entry{[&compC = this->compC_](
const ExtractContext& ectx)
406 const Scalar liquidFraction = getValue(ectx.fs.L());
407 compC.assignVaporFraction(ectx.globalDofIdx,
408 ectx.intQuants.hasHydrocarbon()
409 ? std::clamp(Scalar{1} - liquidFraction,
410 Scalar{0}, Scalar{1})
412 }, this->compC_.vaporFractionAllocated()
415 Entry{PhaseEntry{&this->relativePermeability_,
416 [](
const unsigned phaseIdx,
const ExtractContext& ectx)
418 return ectx.intQuants.phaseIsPresent(phaseIdx)
419 ? getValue(ectx.intQuants.relativePermeability(phaseIdx))
424 [](
const unsigned phaseIdx,
const ExtractContext& ectx)
426 return ectx.intQuants.phaseIsPresent(phaseIdx)
427 ? getValue(ectx.fs.density(phaseIdx))
432 [](
const unsigned phaseIdx,
const ExtractContext& ectx)
434 return ectx.intQuants.phaseIsPresent(phaseIdx)
435 ? getValue(ectx.fs.viscosity(phaseIdx))
460 using namespace std::string_view_literals;
462 const auto densityIfPresent = [](
const unsigned phaseIdx) {
463 return [phaseIdx](
const Context& ectx) -> Scalar {
464 if (!ectx.intQuants.phaseIsPresent(phaseIdx)) {
468 return getValue(ectx.fs.density(phaseIdx));
472 const auto viscosityIfPresent = [](
const unsigned phaseIdx) {
473 return [phaseIdx](
const Context& ectx) -> Scalar {
474 if (!ectx.intQuants.phaseIsPresent(phaseIdx)) {
478 return getValue(ectx.fs.viscosity(phaseIdx));
482 const auto reservoirPoreVolume = [&model = this->simulator_.model()]
483 (
const Context& ectx) -> Scalar
485 return getValue(ectx.intQuants.porosity()) *
486 model.dofTotalVolume(ectx.globalDofIdx);
489 const auto phasePoreVolume = [reservoirPoreVolume](
const unsigned phaseIdx) {
490 return [phaseIdx, reservoirPoreVolume](
const Context& ectx) -> Scalar {
491 return ectx.intQuants.saturationForOutput(phaseIdx) * reservoirPoreVolume(ectx);
495 const auto handlers = std::array{
496 Entry{ScalarEntry{std::vector{
"BPR"sv,
"BPRESSUR"sv},
497 [](
const Context& ectx)
499 return FluidSystem::phaseIsActive(oilPhaseIdx)
500 ? getValue(ectx.fs.pressure(oilPhaseIdx))
501 : getValue(ectx.fs.pressure(gasPhaseIdx));
505 Entry{ScalarEntry{
"BGPR"sv,
506 [](
const Context& ectx)
507 {
return getValue(ectx.fs.pressure(gasPhaseIdx)); }
510 Entry{ScalarEntry{
"BWPR"sv,
511 [](
const Context& ectx)
513 return FluidSystem::phaseIsActive(waterPhaseIdx)
514 ? getValue(ectx.fs.pressure(waterPhaseIdx))
519 Entry{ScalarEntry{
"BRPV"sv, reservoirPoreVolume}},
520 Entry{ScalarEntry{
"BWPV"sv, phasePoreVolume(waterPhaseIdx)}},
521 Entry{ScalarEntry{
"BOPV"sv, phasePoreVolume(oilPhaseIdx)}},
522 Entry{ScalarEntry{
"BGPV"sv, phasePoreVolume(gasPhaseIdx)}},
523 Entry{ScalarEntry{std::vector{
"BSOIL"sv,
"BOSAT"sv},
524 [](
const Context& ectx)
525 {
return ectx.intQuants.saturationForOutput(oilPhaseIdx); }
528 Entry{ScalarEntry{std::vector{
"BSGAS"sv,
"BGSAT"sv},
529 [](
const Context& ectx)
530 {
return ectx.intQuants.saturationForOutput(gasPhaseIdx); }
533 Entry{ScalarEntry{std::vector{
"BSWAT"sv,
"BWSAT"sv},
534 [](
const Context& ectx)
536 return ectx.intQuants.saturationForOutput(waterPhaseIdx);
540 Entry{ScalarEntry{std::vector{
"BDENO"sv,
"BODEN"sv},
541 densityIfPresent(oilPhaseIdx)
544 Entry{ScalarEntry{std::vector{
"BDENG"sv,
"BGDEN"sv},
545 densityIfPresent(gasPhaseIdx)
548 Entry{ScalarEntry{std::vector{
"BDENW"sv,
"BWDEN"sv},
549 densityIfPresent(waterPhaseIdx)
552 Entry{ScalarEntry{std::vector{
"BVOIL"sv,
"BOVIS"sv},
553 viscosityIfPresent(oilPhaseIdx)
556 Entry{ScalarEntry{std::vector{
"BVGAS"sv,
"BGVIS"sv},
557 viscosityIfPresent(gasPhaseIdx)
560 Entry{ScalarEntry{std::vector{
"BVWAT"sv,
"BWVIS"sv},
561 viscosityIfPresent(waterPhaseIdx)
564 Entry{ScalarEntry{std::vector{
"BTEMP"sv,
"BTCNFHEA"sv},
565 [](
const Context& ectx)
567 return FluidSystem::phaseIsActive(oilPhaseIdx)
568 ? getValue(ectx.fs.temperature(oilPhaseIdx))
569 : getValue(ectx.fs.temperature(gasPhaseIdx));
581 this->extractors_.clear();
582 this->blockExtractors_.clear();
597 for (
unsigned dofIdx = 0; dofIdx < elemCtx.numPrimaryDof(0); ++dofIdx) {
598 const auto& intQuants = elemCtx.intensiveQuantities(dofIdx, 0);
599 const auto& fs = intQuants.fluidState();
602 elemCtx.globalSpaceIndex(dofIdx, 0),
627 if (this->blockExtractors_.empty() || elemCtx.element().level() != 0) {
631 for (
unsigned dofIdx = 0; dofIdx < elemCtx.numPrimaryDof(0); ++dofIdx) {
632 const auto globalDofIdx = elemCtx.globalSpaceIndex(dofIdx, 0);
633 const auto cartesianIdx = elemCtx.simulator().vanguard().cartesianIndex(globalDofIdx);
635 const auto be_it = this->blockExtractors_.find(cartesianIdx);
636 if (be_it == this->blockExtractors_.end()) {
640 const auto& intQuants = elemCtx.intensiveQuantities(dofIdx, 0);
645 intQuants.fluidState(),
682 template <
class ActiveIndex,
class CartesianIndex>
717 const IntensiveQuantities& intQuants,
718 const double totVolume)
722 const auto referencePorosity =
723 this->simulator_.problem().referencePorosity(globalDofIdx, 0);
731 this->assignSaturationPressure_(globalDofIdx, intQuants);
738 if (this->compC_.saturationPressureRequested()) {
739 const auto& comm = this->simulator_.gridView().comm();
740 const auto totalUnresolved = comm.sum(this->numUnresolvedSaturationPressures_);
741 if (totalUnresolved > 0 && comm.rank() == 0) {
742 const std::string_view cell = totalUnresolved == 1 ?
"cell" :
"cells";
746 OpmLog::info(fmt::format(
"No saturation pressure was resolved in {} {}; "
747 "PSAT is written as zero there. This includes "
748 "mixtures that have none.",
753 this->numUnresolvedSaturationPressures_ = 0;
760 const unsigned bufferSize)
override
764 const auto named = std::array{
765 std::pair{
static_cast<unsigned>(oilPhaseIdx), std::string_view{
"KRO"}},
766 std::pair{
static_cast<unsigned>(gasPhaseIdx), std::string_view{
"KRG"}},
767 std::pair{
static_cast<unsigned>(waterPhaseIdx), std::string_view{
"KRW"}},
769 for (
const auto& [phase, kw] : named) {
770 if (phase >= numPhases || !FluidSystem::phaseIsActive(phase)) {
774 relativePermeability_[phase], kw,
true);
780 std::array<ScalarBuffer, numPhases> relativePermeability_;
782 bool isDefunctParallelWell(
const std::string& wname)
const override
784 if (simulator_.gridView().comm().size() == 1)
786 const auto& parallelWells = simulator_.vanguard().parallelWells();
787 std::pair<std::string, bool> value {wname,
true};
788 auto candidate = std::lower_bound(parallelWells.begin(), parallelWells.end(), value);
789 return candidate == parallelWells.end() || *candidate != value;
792 bool isOwnedByCurrentRank(
const std::string& wname)
const override
797 return ! this->isDefunctParallelWell(wname);
800 bool isOnCurrentRank(
const std::string& wname)
const override
805 return ! this->isDefunctParallelWell(wname);
808 void createLocalRegion_(std::vector<int>& region)
810 std::size_t elemIdx = 0;
811 for (
const auto& elem : elements(simulator_.gridView())) {
812 if (elem.partitionType() != Dune::InteriorEntity) {
823 void assignSaturationPressure_(
const unsigned globalDofIdx,
824 const IntensiveQuantities& intQuants)
826 if (!this->compC_.saturationPressureAllocated()) {
830 const auto& fluidState = intQuants.fluidState();
831 if (!intQuants.hasHydrocarbon()) {
832 this->compC_.assignSaturationPressure(globalDofIdx,
833 getValue(fluidState.pressure(oilPhaseIdx)));
837 std::array<Scalar, numComponents> moleFractions{};
838 for (
int c = 0; c < numComponents; ++c) {
839 moleFractions[c] = getValue(fluidState.moleFraction(c));
842 getValue(fluidState.L()),
843 getValue(fluidState.pressure(oilPhaseIdx)),
845 getValue(fluidState.temperature(oilPhaseIdx)),
846 this->simulator_.problem().eosRegionIndex(globalDofIdx));
854 ++this->numUnresolvedSaturationPressures_;
857 this->compC_.assignSaturationPressure(globalDofIdx, psat.value_or(Scalar{0}));
860 const Simulator& simulator_;
861 CompositionalContainer<FluidSystem> compC_;
862 std::size_t numUnresolvedSaturationPressures_{};
863 std::vector<typename Extractor::Entry> extractors_;
Restart-output buffers specific to compositional simulations.
Common output functionality shared by simulator formulations.
Declares the properties required by the black oil model.
RestartOutput
Definition: CompositionalContainer.hpp:54
static std::optional< Scalar > cellSaturationPressure(const Scalar liquidFraction, const Scalar oilPressure, const std::array< Scalar, numComponents > &moleFractions, const Scalar temperature, const unsigned eosRegionIdx)
The base class for the element-centered finite-volume discretization scheme.
Definition: ecfvdiscretization.hh:160
Definition: GenericOutputModule.hpp:91
const Schedule & schedule_
Definition: GenericOutputModule.hpp:537
bool forceDisableFipOutput_
Definition: GenericOutputModule.hpp:558
virtual void validateLocalData()
Definition: GenericOutputModule.hpp:291
void doAllocBuffers(unsigned bufferSize, unsigned reportStepNum, const bool substep, const bool log, const bool forceRestartFieldAllocation, const EclHysteresisConfig *hysteresisConfig, unsigned numOutputNnc=0, std::map< std::string, int > rstKeywords={})
void setupBlockData(std::function< bool(int)> isCartIdxOnThisRank)
ScalarBuffer temperature_
Definition: GenericOutputModule.hpp:592
std::optional< RegionPhasePoreVolAverage > regionAvgDensity_
Definition: GenericOutputModule.hpp:661
std::array< ScalarBuffer, numPhases > viscosity_
Definition: GenericOutputModule.hpp:633
void setupLgrBlockData(const std::map< std::string, int > &lgrNameToLevel, const std::function< bool(int, int)> &isLgrCellOnThisRank)
void assignBuffer(data::Solution &sol, std::string_view name, UnitSystem::measure measure, std::vector< Scalar > &buffer)
static bool allocBufferIfRequested(std::map< std::string, int > &rstKeywords, unsigned bufferSize, std::vector< Scalar > &buffer, std::string_view kw, bool supported, bool required=false)
std::unordered_map< std::string, std::vector< int > > regions_
Definition: GenericOutputModule.hpp:572
std::map< std::pair< std::string, int >, double > blockData_
Definition: GenericOutputModule.hpp:646
LogOutputHelper< Scalar > logOutput_
Definition: GenericOutputModule.hpp:543
void assignPhaseProperties(data::Solution &sol, const PhasePropertyNames &names)
Move the phase density and viscosity buffers to sol under names.
std::vector< Scalar > ScalarBuffer
Definition: GenericOutputModule.hpp:325
void updateTotalVolumesAndPressures_(const unsigned globalDofIdx, const IntensiveQuantities &intQuants, const double totVolume, const Scalar referencePorosity)
Definition: GenericOutputModule.hpp:362
InterRegFlowMap interRegionFlows_
Definition: GenericOutputModule.hpp:542
std::array< ScalarBuffer, numPhases > density_
Definition: GenericOutputModule.hpp:632
std::array< ScalarBuffer, numPhases > saturation_
Definition: GenericOutputModule.hpp:631
const EclipseState & eclState_
Definition: GenericOutputModule.hpp:536
virtual void assignToSolution(data::Solution &sol)
Move all buffers to data::Solution.
const Inplace * initialInplace() const
Definition: GenericOutputModule.hpp:274
static void registerParameters()
Register all run-time parameters for the Vtk output module.
ScalarBuffer fluidPressure_
Definition: GenericOutputModule.hpp:591
Inter-region flow accumulation maps for all region definition arrays.
Definition: InterRegFlows.hpp:179
void clear()
Clear all internal buffers, but preserve allocated capacity.
Output module for compositional-model results written in ECL binary format.
Definition: OutputCompositionalModule.hpp:82
void processElementFlows(const ElementContext &)
Definition: OutputCompositionalModule.hpp:614
void clearExtractors()
Clear the active element and block extractors.
Definition: OutputCompositionalModule.hpp:579
static void registerParameters()
Definition: OutputCompositionalModule.hpp:101
void initializeFluxData()
Prepare for capturing connection fluxes, particularly to account for inter-region flows.
Definition: OutputCompositionalModule.hpp:693
void setupBlockExtractors_()
Setup the block (B*) summary extractors.
Definition: OutputCompositionalModule.hpp:454
void setupExtractors(const bool, const std::size_t)
Setup list of active element-level data extractors.
Definition: OutputCompositionalModule.hpp:319
void updateFluidInPlace(const unsigned globalDofIdx, const IntensiveQuantities &intQuants, const double totVolume)
Definition: OutputCompositionalModule.hpp:716
void allocFormulationBuffers(std::map< std::string, int > &rstKeywords, const unsigned bufferSize) override
Allocate compositional relative-permeability buffers.
Definition: OutputCompositionalModule.hpp:759
void outputFipAndResvLogToCSV(const std::size_t reportStepNum, const bool substep, const Parallel::Communication &comm)
Definition: OutputCompositionalModule.hpp:284
void allocBuffers(const unsigned bufferSize, const unsigned reportStepNum, const bool substep, const bool log, const bool forceRestartFieldAllocation)
Allocate memory for the scalar fields we would like to write to ECL output files.
Definition: OutputCompositionalModule.hpp:179
void finalizeFluxData()
Finalize capturing connection fluxes.
Definition: OutputCompositionalModule.hpp:703
void processElement(const ElementContext &elemCtx)
Modify the internal buffers according to the intensive quanties relevant for an element.
Definition: OutputCompositionalModule.hpp:589
OutputCompositionalModule(const Simulator &simulator, const SummaryConfig &smryCfg, const CollectDataToIORankType &collectToIORank)
Definition: OutputCompositionalModule.hpp:108
void processElementBlockData(const ElementContext &elemCtx)
Definition: OutputCompositionalModule.hpp:621
void validateLocalData() override
Definition: OutputCompositionalModule.hpp:736
void assignToSolution(data::Solution &sol) override
Move all buffers to data::Solution.
Definition: OutputCompositionalModule.hpp:205
void processFluxes(const ElementContext &, ActiveIndex &&, CartesianIndex &&)
Capture connection fluxes, particularly to account for inter-region flows.
Definition: OutputCompositionalModule.hpp:683
const InterRegFlowMap & getInterRegFlows() const
Get read-only access to collection of inter-region flows.
Definition: OutputCompositionalModule.hpp:711
void outputFipAndResvLog(const Inplace &inplace, const std::size_t reportStepNum, double elapsed, boost::posix_time::ptime currentDate, const bool substep, const Parallel::Communication &comm)
Definition: OutputCompositionalModule.hpp:232
Defines the common properties required by the porous medium multi-phase models.
Dune::Communication< MPIComm > Communication
Definition: ParallelCommunication.hpp:30
Definition: blackoilbioeffectsmodules.hh:45
std::string moduleVersionName()
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(....
Definition: propertysystem.hh:233
This file provides the infrastructure to retrieve run-time parameters.
The Opm property system, traits with inheritance.
Definition: GenericOutputModule.hpp:410
std::string_view oilDensity
Definition: GenericOutputModule.hpp:411
static void registerParameters()
Registers the parameters in parameter system.