Loading...
Searching...
No Matches
blackoilproblem.hh
Go to the documentation of this file.
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// vi: set et ts=4 sw=4 sts=4:
/*
This file is part of the Open Porous Media project (OPM).
OPM is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
OPM is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OPM. If not, see <http://www.gnu.org/licenses/>.
Consult the COPYING file in the top-level source directory of this
module for the precise wording of the license and the list of
copyright holders.
*/
#ifndef EWOMS_BLACKOIL_PROBLEM_HH
#define EWOMS_BLACKOIL_PROBLEM_HH
#include <opm/models/common/multiphasebaseproblem.hh>
#include <limits>
namespace Opm {
template<class TypeTag>
class BlackOilProblem : public MultiPhaseBaseProblem<TypeTag>
{
private:
using ParentType = MultiPhaseBaseProblem<TypeTag>;
using Implementation = GetPropType<TypeTag, Properties::Problem>;
using Scalar = GetPropType<TypeTag, Properties::Scalar>;
using IntensiveQuantities = GetPropType<TypeTag, Properties::IntensiveQuantities>;
using Simulator = GetPropType<TypeTag, Properties::Simulator>;
public:
explicit BlackOilProblem(Simulator& simulator)
: ParentType(simulator)
{}
Scalar maxGasDissolutionFactor(unsigned, unsigned) const
{ return std::numeric_limits<Scalar>::max() / 2; }
Scalar maxOilVaporizationFactor(unsigned, unsigned) const
{ return std::numeric_limits<Scalar>::max() / 2; }
Scalar maxOilSaturation(unsigned) const
{ return 1.0; }
template <class Context>
unsigned pvtRegionIndex(const Context&,
unsigned,
unsigned) const
{ return 0; }
template <class Context>
unsigned satnumRegionIndex(const Context&,
unsigned,
unsigned) const
{ return 0; }
Scalar satnumRegionIndex(unsigned) const
{ return 0; }
template <class Context>
unsigned miscnumRegionIndex(const Context&,
unsigned,
unsigned) const
{ return 0; }
template <class Context>
unsigned plmixnumRegionIndex(const Context&,
unsigned,
unsigned) const
{ return 0; }
template <class Context>
Scalar rockCompressibility(const Context&,
unsigned,
unsigned) const
{ return 0.0; }
Scalar rockCompressibility(unsigned) const
{ return 0.0; }
template <class Context>
Scalar rockReferencePressure(const Context&,
unsigned,
unsigned) const
{ return 1e5; }
Scalar rockReferencePressure(unsigned) const
{ return 1e5; }
Scalar referenceTemperature() const
{ return 273.15 + 15.56; /* [K] */ }
template <class Evaluation>
Scalar rockCompPoroMultiplier(const IntensiveQuantities&,
unsigned) const
{ return 1.0; }
template <class LhsEval>
LhsEval rockCompTransMultiplier(const IntensiveQuantities&,
unsigned) const
{ return 1.0; }
private:
Implementation& asImp_()
{ return *static_cast<Implementation *>(this); }
const Implementation& asImp_() const
{ return *static_cast<const Implementation *>(this); }
};
} // namespace Opm
#endif
Opm::BlackOilProblem::rockCompressibility
Scalar rockCompressibility(unsigned) const
Returns the compressibility of the porous medium of a cell.
Definition blackoilproblem.hh:139
Opm::BlackOilProblem::maxOilSaturation
Scalar maxOilSaturation(unsigned) const
Returns the maximum value of the oil saturation seen at the current time for a given degree of freedo...
Definition blackoilproblem.hh:85
Opm::BlackOilProblem::plmixnumRegionIndex
unsigned plmixnumRegionIndex(const Context &, unsigned, unsigned) const
Returns the index of the relevant region for polymer mixing functions.
Definition blackoilproblem.hh:122
Opm::BlackOilProblem::miscnumRegionIndex
unsigned miscnumRegionIndex(const Context &, unsigned, unsigned) const
Returns the index of the relevant region for solvent mixing functions.
Definition blackoilproblem.hh:113
Opm::BlackOilProblem::BlackOilProblem
BlackOilProblem(Simulator &simulator)
Definition blackoilproblem.hh:57
Opm::BlackOilProblem::referenceTemperature
Scalar referenceTemperature() const
Returns the reference temperature.
Definition blackoilproblem.hh:163
Opm::BlackOilProblem::satnumRegionIndex
unsigned satnumRegionIndex(const Context &, unsigned, unsigned) const
Returns the index of the relevant region for saturation functions.
Definition blackoilproblem.hh:101
Opm::BlackOilProblem::rockCompressibility
Scalar rockCompressibility(const Context &, unsigned, unsigned) const
Returns the compressibility of the porous medium of a cell.
Definition blackoilproblem.hh:131
Opm::BlackOilProblem::maxOilVaporizationFactor
Scalar maxOilVaporizationFactor(unsigned, unsigned) const
Returns the maximum value of the oil vaporization factor at the current time for a given degree of fr...
Definition blackoilproblem.hh:76
Opm::BlackOilProblem::rockReferencePressure
Scalar rockReferencePressure(const Context &, unsigned, unsigned) const
Returns the reference pressure for rock the compressibility of a cell.
Definition blackoilproblem.hh:146
Opm::BlackOilProblem::maxGasDissolutionFactor
Scalar maxGasDissolutionFactor(unsigned, unsigned) const
Returns the maximum value of the gas dissolution factor at the current time for a given degree of fre...
Definition blackoilproblem.hh:67
Opm::BlackOilProblem::rockCompPoroMultiplier
Scalar rockCompPoroMultiplier(const IntensiveQuantities &, unsigned) const
Returns the porosity multiplier due to water-induced rock compaction.
Definition blackoilproblem.hh:173
Opm::BlackOilProblem::pvtRegionIndex
unsigned pvtRegionIndex(const Context &, unsigned, unsigned) const
Returns the index of the relevant region for thermodynmic properties.
Definition blackoilproblem.hh:92
Opm::BlackOilProblem::rockReferencePressure
Scalar rockReferencePressure(unsigned) const
Returns the reference pressure for rock the compressibility of a cell.
Definition blackoilproblem.hh:154
Opm::FvBaseProblem::simulator
Simulator & simulator()
Returns Simulator object used by the simulation.
Definition fvbaseproblem.hh:692
Opm::MultiPhaseBaseProblem::MultiPhaseBaseProblem
MultiPhaseBaseProblem(Simulator &simulator)
Definition multiphasebaseproblem.hh:91
multiphasebaseproblem.hh
The base class for the problems of ECFV discretizations which deal with a multi-phase flow through a ...
Opm
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilbioeffectsmodules.hh:43
Opm::GetPropType
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