Loading...
Searching...
No Matches
RelpermDiagnostics.hpp
/*
Copyright 2015 Statoil ASA.
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 3 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/>.
*/
#ifndef OPM_RELPERMDIAGNOSTICS_HEADER_INCLUDED
#define OPM_RELPERMDIAGNOSTICS_HEADER_INCLUDED
#include <vector>
#include <utility>
#include <opm/material/fluidmatrixinteractions/EclEpsScalingPoints.hpp>
namespace Opm {
class EclipseState;
template <typename Grid> class LevelCartesianIndexMapper;
class MiscTable;
class MsfnTable;
class SgcwmisTable;
class SgfnTable;
class SgofTable;
class SgwfnTable;
class SlgofTable;
class Sof2Table;
class Sof3Table;
class SorwmisTable;
class SsfnTable;
class SwfnTable;
class SwofTable;
class GsfTable;
class WsfTable;
class RelpermDiagnostics
{
public:
template <class LevelCartesianIndexMapper>
void diagnosis(const EclipseState& eclState,
const LevelCartesianIndexMapper& levelCartesianIndexMapper);
private:
enum FluidSystem {
OilWater,
OilGas,
WaterGas,
BlackOil,
Solvent
};
FluidSystem fluidSystem_;
enum SaturationFunctionFamily {
FamilyI,
FamilyII,
FamilyIII,
NoFamily
};
SaturationFunctionFamily satFamily_{NoFamily};
std::vector<EclEpsScalingPointsInfo<double> > unscaledEpsInfo_{};
std::vector<EclEpsScalingPointsInfo<double> > scaledEpsInfo_{};
bool phaseCheck_(const EclipseState& es);
void satFamilyCheck_(const EclipseState& eclState);
void tableCheck_(const EclipseState& eclState);
void unscaledEndPointsCheck_(const EclipseState& eclState);
template <class LevelCartesianIndexMapper>
void scaledEndPointsCheck_(const EclipseState& eclState,
const LevelCartesianIndexMapper& levelCartesianIndexMapper);
void swofTableCheck_(const SwofTable& swofTables,
const int satnumIdx);
void sgofTableCheck_(const SgofTable& sgofTables,
const int satnumIdx);
void slgofTableCheck_(const SlgofTable& slgofTables,
const int satnumIdx);
void swfnTableCheck_(const SwfnTable& swfnTables,
const int satnumIdx);
void sgfnTableCheck_(const SgfnTable& sgfnTables,
const int satnumIdx);
void wsfTableCheck_(const WsfTable& wsfTables,
const int satnumIdx);
void gsfTableCheck_(const GsfTable& gsfTables,
const int satnumIdx);
void sof3TableCheck_(const Sof3Table& sof3Tables,
const int satnumIdx);
void sof2TableCheck_(const Sof2Table& sof2Tables,
const int satnumIdx);
void sgwfnTableCheck_(const SgwfnTable& sgwfnTables,
const int satnumIdx);
void sgcwmisTableCheck_(const SgcwmisTable& sgcwmisTables,
const int satnumIdx);
void sorwmisTableCheck_(const SorwmisTable& sorwmisTables,
const int satnumIdx);
void ssfnTableCheck_(const SsfnTable& ssfnTables,
const int satnumIdx);
void miscTableCheck_(const MiscTable& miscTables,
const int miscnumIdx);
void msfnTableCheck_(const MsfnTable& msfnTables,
const int satnumIdx);
};
} //namespace Opm
#endif // OPM_RELPERMDIAGNOSTICS_HEADER_INCLUDED
Opm::LevelCartesianIndexMapper
Definition RelpermDiagnostics.hpp:31
Opm::RelpermDiagnostics
This class is intend to be a relperm diagnostics, to detect wrong input of relperm table and endpoint...
Definition RelpermDiagnostics.hpp:51
Opm::RelpermDiagnostics::diagnosis
void diagnosis(const EclipseState &eclState, const LevelCartesianIndexMapper &levelCartesianIndexMapper)
This function is used to diagnosis relperm in eclipse data file.
Definition RelpermDiagnostics.cpp:830
Opm
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilbioeffectsmodules.hh:43