mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-29 20:43:49 -06:00
Get rid off TypeTag system in StandardWellsDense.
Previously, we kind of hard coded the problem using the TypeTag system. Instead of this we now simply pass the only additional thing needed, the ElementContext, as an additional template parameter. Removes the include of removed header BlackoilModelEbosTypeTags.hpp.
This commit is contained in:
parent
312aa24f86
commit
30f3d4e2d0
@ -163,7 +163,7 @@ namespace Opm {
|
||||
const ModelParameters& param,
|
||||
const BlackoilPropsAdFromDeck& fluid,
|
||||
const DerivedGeology& geo ,
|
||||
const StandardWellsDense<FluidSystem, BlackoilIndices>& well_model,
|
||||
const StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>& well_model,
|
||||
const NewtonIterationBlackoilInterface& linsolver,
|
||||
const bool terminal_output)
|
||||
: ebosSimulator_(ebosSimulator)
|
||||
@ -1423,7 +1423,7 @@ namespace Opm {
|
||||
ModelParameters param_;
|
||||
|
||||
// Well Model
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices> well_model_;
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext> well_model_;
|
||||
|
||||
/// \brief Whether we print something to std::cout
|
||||
bool terminal_output_;
|
||||
@ -1441,8 +1441,10 @@ namespace Opm {
|
||||
public:
|
||||
|
||||
/// return the StandardWells object
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>& wellModel() { return well_model_; }
|
||||
const StandardWellsDense<FluidSystem, BlackoilIndices>& wellModel() const { return well_model_; }
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>&
|
||||
wellModel() { return well_model_; }
|
||||
const StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>&
|
||||
wellModel() const { return well_model_; }
|
||||
|
||||
/// return the Well struct in the StandardWells
|
||||
const Wells& wells() const { return well_model_.wells(); }
|
||||
|
@ -64,7 +64,7 @@ public:
|
||||
typedef BlackoilModelEbos Model;
|
||||
typedef BlackoilModelParameters ModelParameters;
|
||||
typedef NonlinearSolver<Model> Solver;
|
||||
typedef StandardWellsDense<FluidSystem, BlackoilIndices> WellModel;
|
||||
typedef StandardWellsDense<FluidSystem, BlackoilIndices,ElementContext> WellModel;
|
||||
|
||||
|
||||
/// Initialise from parameters and objects to observe.
|
||||
|
@ -24,8 +24,6 @@
|
||||
#ifndef OPM_STANDARDWELLSDENSE_HEADER_INCLUDED
|
||||
#define OPM_STANDARDWELLSDENSE_HEADER_INCLUDED
|
||||
|
||||
#include <opm/autodiff/BlackoilModelEbosTypeTags.hpp>
|
||||
|
||||
#include <opm/common/OpmLog/OpmLog.hpp>
|
||||
|
||||
#include <opm/common/utility/platform_dependent/disable_warnings.h>
|
||||
@ -69,12 +67,9 @@ enum WellVariablePositions {
|
||||
|
||||
|
||||
/// Class for handling the standard well model.
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
class StandardWellsDense {
|
||||
public:
|
||||
// --------- Ebos property system stuff -------
|
||||
typedef typename TTAG(EclFlowProblem) TypeTag;
|
||||
typedef typename GET_PROP_TYPE(TypeTag, ElementContext) ElementContext;
|
||||
// --------- Types ---------
|
||||
typedef WellStateFullyImplicitBlackoilDense WellState;
|
||||
typedef BlackoilModelParameters ModelParameters;
|
||||
|
@ -3,8 +3,8 @@
|
||||
|
||||
namespace Opm {
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
StandardWellsDense(const Wells* wells_arg,
|
||||
WellCollection* well_collection,
|
||||
const ModelParameters& param,
|
||||
@ -32,9 +32,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
init(const PhaseUsage phase_usage_arg,
|
||||
const std::vector<bool>& active_arg,
|
||||
const VFPProperties* vfp_properties_arg,
|
||||
@ -120,10 +120,10 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
template <typename Simulator>
|
||||
SimulatorReport
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
assemble(Simulator& ebosSimulator,
|
||||
const int iterationIdx,
|
||||
const double dt,
|
||||
@ -162,10 +162,10 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
template <typename Simulator>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
assembleWellEq(Simulator& ebosSimulator,
|
||||
const double dt,
|
||||
WellState& well_state,
|
||||
@ -252,10 +252,10 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
template <typename Simulator>
|
||||
bool
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
allow_cross_flow(const int w, Simulator& ebosSimulator) const
|
||||
{
|
||||
if (wells().allow_cf[w]) {
|
||||
@ -290,9 +290,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
localInvert(Mat& istlA) const
|
||||
{
|
||||
for (auto row = istlA.begin(), rowend = istlA.end(); row != rowend; ++row ) {
|
||||
@ -307,9 +307,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
print(Mat& istlA) const
|
||||
{
|
||||
for (auto row = istlA.begin(), rowend = istlA.end(); row != rowend; ++row ) {
|
||||
@ -323,9 +323,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
apply( BVector& r) const
|
||||
{
|
||||
if ( ! localWellsActive() ) {
|
||||
@ -342,9 +342,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
apply(const BVector& x, BVector& Ax)
|
||||
{
|
||||
if ( ! localWellsActive() ) {
|
||||
@ -365,9 +365,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
applyScaleAdd(const Scalar alpha, const BVector& x, BVector& Ax)
|
||||
{
|
||||
if ( ! localWellsActive() ) {
|
||||
@ -387,9 +387,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
recoverVariable(const BVector& x, BVector& xw) const
|
||||
{
|
||||
if ( ! localWellsActive() ) {
|
||||
@ -404,9 +404,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
int
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
flowPhaseToEbosCompIdx( const int phaseIdx ) const
|
||||
{
|
||||
const int phaseToComp[ 3 ] = { FluidSystem::waterCompIdx, FluidSystem::oilCompIdx, FluidSystem::gasCompIdx };
|
||||
@ -417,9 +417,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
int
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
flowToEbosPvIdx( const int flowPv ) const
|
||||
{
|
||||
const int flowToEbos[ 3 ] = {
|
||||
@ -434,9 +434,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
int
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
flowPhaseToEbosPhaseIdx( const int phaseIdx ) const
|
||||
{
|
||||
const int flowToEbos[ 3 ] = { FluidSystem::waterPhaseIdx, FluidSystem::oilPhaseIdx, FluidSystem::gasPhaseIdx };
|
||||
@ -447,9 +447,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
int
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
ebosCompToFlowPhaseIdx( const int compIdx ) const
|
||||
{
|
||||
const int compToPhase[ 3 ] = { Oil, Water, Gas };
|
||||
@ -460,9 +460,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
std::vector<double>
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
extractPerfData(const std::vector<double>& in) const
|
||||
{
|
||||
const int nw = wells().number_of_wells;
|
||||
@ -481,9 +481,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
int
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
numPhases() const
|
||||
{
|
||||
return wells().number_of_phases;
|
||||
@ -493,9 +493,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
int
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
numCells() const
|
||||
{
|
||||
return pv_.size();
|
||||
@ -505,9 +505,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
resetWellControlFromState(WellState xw) const
|
||||
{
|
||||
const int nw = wells_->number_of_wells;
|
||||
@ -521,9 +521,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
const Wells&
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
wells() const
|
||||
{
|
||||
assert(wells_ != 0);
|
||||
@ -534,9 +534,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
const Wells*
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
wellsPointer() const
|
||||
{
|
||||
return wells_;
|
||||
@ -546,9 +546,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
bool
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
wellsActive() const
|
||||
{
|
||||
return wells_active_;
|
||||
@ -558,9 +558,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
setWellsActive(const bool wells_active)
|
||||
{
|
||||
wells_active_ = wells_active;
|
||||
@ -570,9 +570,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
bool
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
localWellsActive() const
|
||||
{
|
||||
return wells_ ? (wells_->number_of_wells > 0 ) : false;
|
||||
@ -582,9 +582,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
int
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
numWellVars() const
|
||||
{
|
||||
if ( !localWellsActive() ) {
|
||||
@ -600,9 +600,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
const std::vector<double>&
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
wellPerforationDensities() const
|
||||
{
|
||||
return well_perforation_densities_;
|
||||
@ -612,9 +612,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
const std::vector<double>&
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
wellPerforationPressureDiffs() const
|
||||
{
|
||||
return well_perforation_pressure_diffs_;
|
||||
@ -624,9 +624,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
typename StandardWellsDense<FluidSystem, BlackoilIndices>::EvalWell
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
typename StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::EvalWell
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
extendEval(Eval in) const {
|
||||
EvalWell out = 0.0;
|
||||
out.setValue(in.value());
|
||||
@ -640,9 +640,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
setWellVariables(const WellState& xw)
|
||||
{
|
||||
const int np = wells().number_of_phases;
|
||||
@ -660,9 +660,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
print(EvalWell in) const
|
||||
{
|
||||
std::cout << in.value() << std::endl;
|
||||
@ -675,9 +675,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
computeAccumWells()
|
||||
{
|
||||
const int np = wells().number_of_phases;
|
||||
@ -693,10 +693,10 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
template<typename intensiveQuants>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
computeWellFlux(const int& w, const double& Tw,
|
||||
const intensiveQuants& intQuants,
|
||||
const EvalWell& bhp, const double& cdp,
|
||||
@ -823,10 +823,10 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
template <typename Simulator>
|
||||
SimulatorReport
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
solveWellEq(Simulator& ebosSimulator,
|
||||
const double dt,
|
||||
WellState& well_state)
|
||||
@ -875,9 +875,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
printIf(const int c, const double x, const double y, const double eps, const std::string type) const
|
||||
{
|
||||
if (std::abs(x-y) > eps) {
|
||||
@ -889,9 +889,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
std::vector<double>
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
residual() const
|
||||
{
|
||||
if( ! wellsActive() )
|
||||
@ -916,10 +916,10 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
template <typename Simulator>
|
||||
bool
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
getWellConvergence(Simulator& ebosSimulator,
|
||||
const int iteration) const
|
||||
{
|
||||
@ -1029,10 +1029,10 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
template <typename Simulator>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
computeWellConnectionPressures(const Simulator& ebosSimulator,
|
||||
const WellState& xw)
|
||||
{
|
||||
@ -1053,10 +1053,10 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
template <typename Simulator>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
computePropertiesForWellConnectionPressures(const Simulator& ebosSimulator,
|
||||
const WellState& xw,
|
||||
std::vector<double>& b_perf,
|
||||
@ -1156,9 +1156,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
updateWellState(const BVector& dwells,
|
||||
WellState& well_state) const
|
||||
{
|
||||
@ -1428,9 +1428,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
updateWellControls(WellState& xw) const
|
||||
{
|
||||
if( !localWellsActive() ) return ;
|
||||
@ -1524,9 +1524,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
updateListEconLimited(const Schedule& schedule,
|
||||
const int current_step,
|
||||
const Wells* wells_struct,
|
||||
@ -1632,9 +1632,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
computeWellConnectionDensitesPressures(const WellState& xw,
|
||||
const std::vector<double>& b_perf,
|
||||
const std::vector<double>& rsmax_perf,
|
||||
@ -1659,10 +1659,10 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
template <typename Simulator>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
computeWellPotentials(const Simulator& ebosSimulator,
|
||||
WellState& well_state) const
|
||||
{
|
||||
@ -1793,9 +1793,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
WellCollection*
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
wellCollection() const
|
||||
{
|
||||
return well_collection_;
|
||||
@ -1804,9 +1804,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
const std::vector<double>&
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
wellPerfEfficiencyFactors() const
|
||||
{
|
||||
return well_perforation_efficiency_factors_;
|
||||
@ -1816,9 +1816,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
calculateEfficiencyFactors()
|
||||
{
|
||||
if ( !localWellsActive() ) {
|
||||
@ -1844,9 +1844,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
computeWellVoidageRates(const WellState& well_state,
|
||||
std::vector<double>& well_voidage_rates,
|
||||
std::vector<double>& voidage_conversion_coeffs) const
|
||||
@ -1904,9 +1904,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
applyVREPGroupControl(WellState& well_state) const
|
||||
{
|
||||
if ( wellCollection()->havingVREPGroups() ) {
|
||||
@ -1929,9 +1929,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
typename StandardWellsDense<FluidSystem, BlackoilIndices>::EvalWell
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
typename StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::EvalWell
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
getBhp(const int wellIdx) const {
|
||||
const WellControls* wc = wells().ctrls[wellIdx];
|
||||
if (well_controls_get_current_type(wc) == BHP) {
|
||||
@ -1985,9 +1985,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
typename StandardWellsDense<FluidSystem, BlackoilIndices>::EvalWell
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
typename StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::EvalWell
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
getQs(const int wellIdx, const int phaseIdx) const
|
||||
{
|
||||
EvalWell qs = 0.0;
|
||||
@ -2088,9 +2088,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
typename StandardWellsDense<FluidSystem, BlackoilIndices>::EvalWell
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
typename StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::EvalWell
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
wellVolumeFraction(const int wellIdx, const int phaseIdx) const
|
||||
{
|
||||
const int nw = wells().number_of_wells;
|
||||
@ -2118,9 +2118,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
typename StandardWellsDense<FluidSystem, BlackoilIndices>::EvalWell
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
typename StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::EvalWell
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
wellVolumeFractionScaled(const int wellIdx, const int phaseIdx) const
|
||||
{
|
||||
const WellControls* wc = wells().ctrls[wellIdx];
|
||||
@ -2136,9 +2136,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
typename StandardWellsDense<FluidSystem, BlackoilIndices>::EvalWell
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
typename StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::EvalWell
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
wellSurfaceVolumeFraction(const int well_index, const int phase) const
|
||||
{
|
||||
EvalWell sum_volume_fraction_scaled = 0.;
|
||||
@ -2156,9 +2156,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
bool
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
checkRateEconLimits(const WellEconProductionLimits& econ_production_limits,
|
||||
const WellState& well_state,
|
||||
const int well_number) const
|
||||
@ -2207,9 +2207,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
typename StandardWellsDense<FluidSystem, BlackoilIndices>::RatioCheckTuple
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
typename StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::RatioCheckTuple
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
checkRatioEconLimits(const WellEconProductionLimits& econ_production_limits,
|
||||
const WellState& well_state,
|
||||
const WellMapEntryType& map_entry) const
|
||||
@ -2265,9 +2265,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
typename StandardWellsDense<FluidSystem, BlackoilIndices>::RatioCheckTuple
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
typename StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::RatioCheckTuple
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
checkMaxWaterCutLimit(const WellEconProductionLimits& econ_production_limits,
|
||||
const WellState& well_state,
|
||||
const WellMapEntryType& map_entry) const
|
||||
@ -2345,9 +2345,9 @@ namespace Opm {
|
||||
|
||||
|
||||
|
||||
template<typename FluidSystem, typename BlackoilIndices>
|
||||
template<typename FluidSystem, typename BlackoilIndices, typename ElementContext>
|
||||
void
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices>::
|
||||
StandardWellsDense<FluidSystem, BlackoilIndices, ElementContext>::
|
||||
updateWellStateWithTarget(const WellControls* wc,
|
||||
const int current,
|
||||
const int well_index,
|
||||
|
Loading…
Reference in New Issue
Block a user