28#ifndef OPM_FLOW_GENERIC_PROBLEM_HPP
29#define OPM_FLOW_GENERIC_PROBLEM_HPP
32#include <opm/material/common/UniformXTabulated2DFunction.hpp>
33#include <opm/material/common/Tabulated1DFunction.hpp>
53template<
typename Gr
id,
typename Gr
idView>
class LookUpData;
61template<
class Gr
idView,
class Flu
idSystem>
65 using Scalar =
typename FluidSystem::Scalar;
70 Scalar referencePressure;
71 Scalar compressibility;
76 const GridView& gridView);
81 const GridView& gridView);
100 { briefDescription_ =
msg; }
269 int numPressurePointsEquil()
const
270 {
return numPressurePointsEquil_; }
274 template<
class Serializer>
288 void initFluidSystem_();
305 bool beginEpisode_(
bool enableExperiments,
307 void beginTimeStep_(
bool enableExperiments,
315 void readRockParameters_(
const std::vector<Scalar>& cellCenterDepths,
316 std::function<std::array<int,3>(
const unsigned)>
ijkIndex);
317 void readRockCompactionParameters_();
319 void readBlackoilExtentionsInitialConditions_(std::size_t numDof,
322 bool enablePolymerMolarWeight,
325 void updatePvtnum_();
326 void updateSatnum_();
327 void updateMiscnum_();
328 void updatePlmixnum_();
330 const EclipseState& eclState_;
332 const GridView& gridView_;
334 static inline std::string briefDescription_;
335 std::array<std::vector<Scalar>, 2> referencePorosity_;
337 std::vector<int> pvtnum_;
338 std::vector<unsigned short> satnum_;
339 std::vector<unsigned short> miscnum_;
340 std::vector<unsigned short> plmixnum_;
342 std::vector<RockParams> rockParams_;
343 std::vector<unsigned short> rockTableIdx_;
344 std::vector<TabulatedTwoDFunction> rockCompPoroMultWc_;
345 std::vector<TabulatedTwoDFunction> rockCompTransMultWc_;
346 std::vector<TabulatedFunction> rockCompPoroMult_;
347 std::vector<TabulatedFunction> rockCompTransMult_;
348 std::vector<Scalar> rockCompTransMultVal_;
351 std::vector<Scalar> maxOilSaturation_;
352 std::vector<Scalar> maxWaterSaturation_;
353 std::vector<Scalar> minRefPressure_;
354 std::vector<Scalar> overburdenPressure_;
355 std::vector<Scalar> solventSaturation_;
356 std::vector<Scalar> solventRsw_;
361 Scalar initialTimeStepSize_;
362 Scalar maxTimeStepAfterWellEvent_;
365 int numPressurePointsEquil_;
368 using Grid = std::remove_cv_t<
typename std::remove_reference<
decltype(gridView_.grid())>::type>;
376 std::function<
unsigned(
unsigned)> lookupIdxOnLevelZeroAssigner_()
383 void updateNum(
const std::string& name, std::vector<T>&
numbers, std::size_t
num_regions);
This problem simulates an input file given in the data format used by the commercial ECLiPSE simulato...
This problem simulates an input file given in the data format used by the commercial ECLiPSE simulato...
Definition FlowGenericProblem.hpp:63
void setPorosity(Scalar poro, unsigned elementIdx, unsigned timeIdx=0)
Sets the porosity of an element.
Definition FlowGenericProblem.hpp:157
Scalar maxPolymerAdsorption(unsigned elemIdx) const
Returns the max polymer adsorption value.
Definition FlowGenericProblem_impl.hpp:709
unsigned pvtRegionIndex(unsigned elemIdx) const
Returns the index the relevant PVT region given a cell index.
Definition FlowGenericProblem_impl.hpp:668
Scalar oxygenConcentration(unsigned elemIdx) const
Returns the initial oxygen concentration for a given a cell index.
Definition FlowGenericProblem_impl.hpp:621
Scalar microbialConcentration(unsigned elemIdx) const
Returns the initial microbial concentration for a given a cell index.
Definition FlowGenericProblem_impl.hpp:609
Scalar rockReferencePressure(unsigned globalSpaceIdx) const
Direct access to rock reference pressure.
Definition FlowGenericProblem_impl.hpp:290
static std::string briefDescription()
Returns a human readable description of the problem for the help message.
Definition FlowGenericProblem_impl.hpp:97
Scalar solventRsw(unsigned elemIdx) const
Returns the initial solvent dissolved in water for a given a cell index.
Definition FlowGenericProblem_impl.hpp:572
Scalar overburdenPressure(unsigned elementIdx) const
Get the pressure of the overburden.
Definition FlowGenericProblem_impl.hpp:550
Scalar porosity(unsigned globalSpaceIdx, unsigned timeIdx) const
Direct indexed access to the porosity.
Definition FlowGenericProblem_impl.hpp:305
Scalar rockCompressibility(unsigned globalSpaceIdx) const
Direct access to rock compressibility.
Definition FlowGenericProblem_impl.hpp:275
unsigned miscnumRegionIndex(unsigned elemIdx) const
Returns the index the relevant MISC region given a cell index.
Definition FlowGenericProblem_impl.hpp:688
Scalar referencePorosity(unsigned elementIdx, unsigned timeIdx) const
Returns the porosity of an element.
Definition FlowGenericProblem.hpp:139
unsigned satnumRegionIndex(unsigned elemIdx) const
Returns the index the relevant saturation function region given a cell index.
Definition FlowGenericProblem_impl.hpp:678
Scalar rockFraction(unsigned elementIdx, unsigned timeIdx) const
Returns the rockFraction of an element.
Definition FlowGenericProblem_impl.hpp:313
Scalar maxWaterSaturation(unsigned globalDofIdx) const
Returns an element's historic maximum water phase saturation that was observed during the simulation.
Definition FlowGenericProblem_impl.hpp:528
unsigned plmixnumRegionIndex(unsigned elemIdx) const
Returns the index the relevant PLMIXNUM (for polymer module) region given a cell index.
Definition FlowGenericProblem_impl.hpp:698
Scalar solventSaturation(unsigned elemIdx) const
Returns the initial solvent saturation for a given a cell index.
Definition FlowGenericProblem_impl.hpp:561
Scalar polymerMolecularWeight(const unsigned elemIdx) const
Returns the polymer molecule weight for a given cell index.
Definition FlowGenericProblem_impl.hpp:597
Scalar biofilmConcentration(unsigned elemIdx) const
Returns the initial biofilm concentration for a given a cell index.
Definition FlowGenericProblem_impl.hpp:645
Scalar drsdtcon(unsigned elemIdx, int episodeIdx) const
Returns the dynamic drsdt convective mixing value.
Scalar minOilPressure(unsigned globalDofIdx) const
Returns an element's historic minimum pressure of the oil phase that was observed during the simulati...
Definition FlowGenericProblem_impl.hpp:539
Scalar calciteConcentration(unsigned elemIdx) const
Returns the initial calcite concentration for a given a cell index.
Definition FlowGenericProblem_impl.hpp:657
Scalar ureaConcentration(unsigned elemIdx) const
Returns the initial urea concentration for a given a cell index.
Definition FlowGenericProblem_impl.hpp:633
bool shouldWriteOutput() const
Always returns true.
Definition FlowGenericProblem.hpp:293
static void setBriefDescription(const std::string &msg)
Specifies the string returned by briefDescription()
Definition FlowGenericProblem.hpp:99
static std::string helpPreamble(int, const char **argv)
Returns the string that is printed before the list of command line parameters in the help message.
Definition FlowGenericProblem_impl.hpp:82
bool shouldWriteRestartFile() const
Returns true if an eWoms restart file should be written to disk.
Definition FlowGenericProblem.hpp:302
Scalar polymerConcentration(unsigned elemIdx) const
Returns the initial polymer concentration for a given a cell index.
Definition FlowGenericProblem_impl.hpp:585
Definition FlowGenericProblem.hpp:53
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilboundaryratevector.hh:37
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:242
Definition FlowGenericProblem.hpp:69
Struct holding MICP extension data.
Definition SolutionContainers.hpp:57
Struct holding polymer extension data.
Definition SolutionContainers.hpp:37