mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3412 Non-Darcy Perf intervals : Simplify calculations
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2017- Statoil ASA
|
||||
//
|
||||
//
|
||||
// ResInsight 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.
|
||||
//
|
||||
//
|
||||
// ResInsight 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 at <http://www.gnu.org/licenses/gpl.html>
|
||||
//
|
||||
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
||||
// for more details.
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
@@ -25,18 +25,8 @@
|
||||
|
||||
const double RigPerforationTransmissibilityEquations::EPSILON = 1.0e-9;
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RigPerforationTransmissibilityEquations::effectivePermeability(double permeability,
|
||||
double krFactor)
|
||||
{
|
||||
return permeability * krFactor;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RigPerforationTransmissibilityEquations::betaFactor(double intertialCoefficient,
|
||||
double effectivePermeability,
|
||||
@@ -44,13 +34,14 @@ double RigPerforationTransmissibilityEquations::betaFactor(double intertialCoeff
|
||||
double porosity,
|
||||
double porosityScalingFactor)
|
||||
{
|
||||
return intertialCoefficient *
|
||||
std::pow(effectivePermeability, permeabilityScalingFactor) *
|
||||
std::pow(porosity, porosityScalingFactor);
|
||||
const double scaledEffectivePermeability = std::pow(effectivePermeability, permeabilityScalingFactor);
|
||||
const double scaledPorosity = std::pow(porosity, porosityScalingFactor);
|
||||
|
||||
return intertialCoefficient * scaledEffectivePermeability * scaledPorosity;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RigPerforationTransmissibilityEquations::dFactor(double unitConstant,
|
||||
double betaFactor,
|
||||
@@ -60,17 +51,19 @@ double RigPerforationTransmissibilityEquations::dFactor(double unitConstant,
|
||||
double gasDenity,
|
||||
double gasViscosity)
|
||||
{
|
||||
return unitConstant *
|
||||
betaFactor *
|
||||
effectivePermeability / perforationLengthInCell *
|
||||
1 / wellRadius *
|
||||
gasDenity / gasViscosity;
|
||||
}
|
||||
// clang-format off
|
||||
//
|
||||
// Ke 1 gasDensity
|
||||
// D = alpha * beta * -- * -- * ------------
|
||||
// h rw gasViscosity
|
||||
//
|
||||
// clang-format on
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RigPerforationTransmissibilityEquations::kh(double effectivePermeability, double perforationLengthInCell)
|
||||
{
|
||||
return effectivePermeability * perforationLengthInCell;
|
||||
const double keOverH = effectivePermeability / perforationLengthInCell;
|
||||
const double oneOverRw = 1.0 / wellRadius;
|
||||
const double gasDensityOverGasViscosity = gasDenity / gasViscosity;
|
||||
|
||||
const double D = unitConstant * betaFactor * keOverH * oneOverRw * gasDensityOverGasViscosity;
|
||||
|
||||
return D;
|
||||
}
|
||||
|
||||
@@ -24,9 +24,6 @@
|
||||
class RigPerforationTransmissibilityEquations
|
||||
{
|
||||
public:
|
||||
static double effectivePermeability(double permeability,
|
||||
double krFactor);
|
||||
|
||||
static double betaFactor(double intertialCoefficient,
|
||||
double effectivePermeability,
|
||||
double permeabilityScalingFactor,
|
||||
@@ -41,9 +38,6 @@ public:
|
||||
double gasDensity,
|
||||
double gasViscosity);
|
||||
|
||||
static double kh(double effectivePermeability,
|
||||
double perforationLengthInCell);
|
||||
|
||||
private:
|
||||
static const double EPSILON;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user