mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
changing StandardWellsDense to BlackoilModelEbos
for a better naming.
This commit is contained in:
@@ -252,7 +252,8 @@ list (APPEND PUBLIC_HEADER_FILES
|
|||||||
opm/autodiff/StandardWell_impl.hpp
|
opm/autodiff/StandardWell_impl.hpp
|
||||||
opm/autodiff/MultisegmentWell.hpp
|
opm/autodiff/MultisegmentWell.hpp
|
||||||
opm/autodiff/MultisegmentWell_impl.hpp
|
opm/autodiff/MultisegmentWell_impl.hpp
|
||||||
opm/autodiff/StandardWellsDense.hpp
|
opm/autodiff/BlackoilWellModel.hpp
|
||||||
|
opm/autodiff/BlackoilWellModel_impl.hpp
|
||||||
opm/autodiff/StandardWellsSolvent.hpp
|
opm/autodiff/StandardWellsSolvent.hpp
|
||||||
opm/autodiff/StandardWellsSolvent_impl.hpp
|
opm/autodiff/StandardWellsSolvent_impl.hpp
|
||||||
opm/autodiff/MissingFeatures.hpp
|
opm/autodiff/MissingFeatures.hpp
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
#include <ewoms/common/start.hh>
|
#include <ewoms/common/start.hh>
|
||||||
|
|
||||||
#include <opm/autodiff/BlackoilModelParameters.hpp>
|
#include <opm/autodiff/BlackoilModelParameters.hpp>
|
||||||
#include <opm/autodiff/StandardWellsDense.hpp>
|
#include <opm/autodiff/BlackoilWellModel.hpp>
|
||||||
#include <opm/autodiff/AutoDiffBlock.hpp>
|
#include <opm/autodiff/AutoDiffBlock.hpp>
|
||||||
#include <opm/autodiff/AutoDiffHelpers.hpp>
|
#include <opm/autodiff/AutoDiffHelpers.hpp>
|
||||||
#include <opm/autodiff/GridHelpers.hpp>
|
#include <opm/autodiff/GridHelpers.hpp>
|
||||||
@@ -154,7 +154,7 @@ namespace Opm {
|
|||||||
/// \param[in] terminal_output request output to cout/cerr
|
/// \param[in] terminal_output request output to cout/cerr
|
||||||
BlackoilModelEbos(Simulator& ebosSimulator,
|
BlackoilModelEbos(Simulator& ebosSimulator,
|
||||||
const ModelParameters& param,
|
const ModelParameters& param,
|
||||||
StandardWellsDense<TypeTag>& well_model,
|
BlackoilWellModel<TypeTag>& well_model,
|
||||||
RateConverterType& rate_converter,
|
RateConverterType& rate_converter,
|
||||||
const NewtonIterationBlackoilInterface& linsolver,
|
const NewtonIterationBlackoilInterface& linsolver,
|
||||||
const bool terminal_output
|
const bool terminal_output
|
||||||
@@ -503,14 +503,14 @@ namespace Opm {
|
|||||||
// Solve system.
|
// Solve system.
|
||||||
if( isParallel() )
|
if( isParallel() )
|
||||||
{
|
{
|
||||||
typedef WellModelMatrixAdapter< Mat, BVector, BVector, StandardWellsDense<TypeTag>, true > Operator;
|
typedef WellModelMatrixAdapter< Mat, BVector, BVector, BlackoilWellModel<TypeTag>, true > Operator;
|
||||||
Operator opA(ebosJac, well_model_, istlSolver().parallelInformation() );
|
Operator opA(ebosJac, well_model_, istlSolver().parallelInformation() );
|
||||||
assert( opA.comm() );
|
assert( opA.comm() );
|
||||||
istlSolver().solve( opA, x, ebosResid, *(opA.comm()) );
|
istlSolver().solve( opA, x, ebosResid, *(opA.comm()) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
typedef WellModelMatrixAdapter< Mat, BVector, BVector, StandardWellsDense<TypeTag>, false > Operator;
|
typedef WellModelMatrixAdapter< Mat, BVector, BVector, BlackoilWellModel<TypeTag>, false > Operator;
|
||||||
Operator opA(ebosJac, well_model_);
|
Operator opA(ebosJac, well_model_);
|
||||||
istlSolver().solve( opA, x, ebosResid );
|
istlSolver().solve( opA, x, ebosResid );
|
||||||
}
|
}
|
||||||
@@ -1500,7 +1500,7 @@ namespace Opm {
|
|||||||
SimulatorReport failureReport_;
|
SimulatorReport failureReport_;
|
||||||
|
|
||||||
// Well Model
|
// Well Model
|
||||||
StandardWellsDense<TypeTag>& well_model_;
|
BlackoilWellModel<TypeTag>& well_model_;
|
||||||
|
|
||||||
/// \brief Whether we print something to std::cout
|
/// \brief Whether we print something to std::cout
|
||||||
bool terminal_output_;
|
bool terminal_output_;
|
||||||
@@ -1517,9 +1517,10 @@ namespace Opm {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
/// return the StandardWells object
|
/// return the StandardWells object
|
||||||
StandardWellsDense<TypeTag>&
|
BlackoilWellModel<TypeTag>&
|
||||||
wellModel() { return well_model_; }
|
wellModel() { return well_model_; }
|
||||||
const StandardWellsDense<TypeTag>&
|
|
||||||
|
const BlackoilWellModel<TypeTag>&
|
||||||
wellModel() const { return well_model_; }
|
wellModel() const { return well_model_; }
|
||||||
|
|
||||||
int numWells() const { return well_model_.numWells(); }
|
int numWells() const { return well_model_.numWells(); }
|
||||||
|
|||||||
@@ -21,8 +21,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#ifndef OPM_STANDARDWELLSDENSE_HEADER_INCLUDED
|
#ifndef OPM_BLACKOILWELLMODEL_HEADER_INCLUDED
|
||||||
#define OPM_STANDARDWELLSDENSE_HEADER_INCLUDED
|
#define OPM_BLACKOILWELLMODEL_HEADER_INCLUDED
|
||||||
|
|
||||||
#include <opm/common/OpmLog/OpmLog.hpp>
|
#include <opm/common/OpmLog/OpmLog.hpp>
|
||||||
|
|
||||||
@@ -61,9 +61,9 @@
|
|||||||
|
|
||||||
namespace Opm {
|
namespace Opm {
|
||||||
|
|
||||||
/// Class for handling the standard well model.
|
/// Class for handling the blackoil well model.
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
class StandardWellsDense {
|
class BlackoilWellModel {
|
||||||
public:
|
public:
|
||||||
// --------- Types ---------
|
// --------- Types ---------
|
||||||
typedef WellStateFullyImplicitBlackoil WellState;
|
typedef WellStateFullyImplicitBlackoil WellState;
|
||||||
@@ -91,14 +91,14 @@ namespace Opm {
|
|||||||
SurfaceToReservoirVoidage<BlackoilPropsAdFromDeck::FluidSystem, std::vector<int> >;
|
SurfaceToReservoirVoidage<BlackoilPropsAdFromDeck::FluidSystem, std::vector<int> >;
|
||||||
|
|
||||||
// --------- Public methods ---------
|
// --------- Public methods ---------
|
||||||
StandardWellsDense(const Wells* wells_arg,
|
BlackoilWellModel(const Wells* wells_arg,
|
||||||
WellCollection* well_collection,
|
WellCollection* well_collection,
|
||||||
const std::vector< const Well* >& wells_ecl,
|
const std::vector< const Well* >& wells_ecl,
|
||||||
const ModelParameters& param,
|
const ModelParameters& param,
|
||||||
const RateConverterType& rate_converter,
|
const RateConverterType& rate_converter,
|
||||||
const bool terminal_output,
|
const bool terminal_output,
|
||||||
const int current_index,
|
const int current_index,
|
||||||
std::vector<int>& pvt_region_idx);
|
std::vector<int>& pvt_region_idx);
|
||||||
|
|
||||||
void init(const PhaseUsage phase_usage_arg,
|
void init(const PhaseUsage phase_usage_arg,
|
||||||
const std::vector<bool>& active_arg,
|
const std::vector<bool>& active_arg,
|
||||||
@@ -283,5 +283,5 @@ namespace Opm {
|
|||||||
|
|
||||||
} // namespace Opm
|
} // namespace Opm
|
||||||
|
|
||||||
#include "StandardWellsDense_impl.hpp"
|
#include "BlackoilWellModel_impl.hpp"
|
||||||
#endif
|
#endif
|
||||||
@@ -4,15 +4,15 @@
|
|||||||
namespace Opm {
|
namespace Opm {
|
||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
StandardWellsDense(const Wells* wells_arg,
|
BlackoilWellModel(const Wells* wells_arg,
|
||||||
WellCollection* well_collection,
|
WellCollection* well_collection,
|
||||||
const std::vector< const Well* >& wells_ecl,
|
const std::vector< const Well* >& wells_ecl,
|
||||||
const ModelParameters& param,
|
const ModelParameters& param,
|
||||||
const RateConverterType& rate_converter,
|
const RateConverterType& rate_converter,
|
||||||
const bool terminal_output,
|
const bool terminal_output,
|
||||||
const int current_timeIdx,
|
const int current_timeIdx,
|
||||||
std::vector<int>& pvt_region_idx)
|
std::vector<int>& pvt_region_idx)
|
||||||
: wells_active_(wells_arg!=nullptr)
|
: wells_active_(wells_arg!=nullptr)
|
||||||
, wells_(wells_arg)
|
, wells_(wells_arg)
|
||||||
, wells_ecl_(wells_ecl)
|
, wells_ecl_(wells_ecl)
|
||||||
@@ -36,7 +36,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
init(const PhaseUsage phase_usage_arg,
|
init(const PhaseUsage phase_usage_arg,
|
||||||
const std::vector<bool>& active_arg,
|
const std::vector<bool>& active_arg,
|
||||||
const double gravity_arg,
|
const double gravity_arg,
|
||||||
@@ -87,7 +87,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
setVFPProperties(const VFPProperties* vfp_properties_arg)
|
setVFPProperties(const VFPProperties* vfp_properties_arg)
|
||||||
{
|
{
|
||||||
for (auto& well : well_container_) {
|
for (auto& well : well_container_) {
|
||||||
@@ -102,7 +102,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
int
|
int
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
numWells() const
|
numWells() const
|
||||||
{
|
{
|
||||||
return number_of_wells_;
|
return number_of_wells_;
|
||||||
@@ -113,8 +113,8 @@ namespace Opm {
|
|||||||
|
|
||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
std::vector<typename StandardWellsDense<TypeTag>::WellInterfacePtr >
|
std::vector<typename BlackoilWellModel<TypeTag>::WellInterfacePtr >
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
createWellContainer(const Wells* wells,
|
createWellContainer(const Wells* wells,
|
||||||
const std::vector< const Well* >& wells_ecl,
|
const std::vector< const Well* >& wells_ecl,
|
||||||
const bool use_multisegment_well,
|
const bool use_multisegment_well,
|
||||||
@@ -164,7 +164,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
SimulatorReport
|
SimulatorReport
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
assemble(Simulator& ebosSimulator,
|
assemble(Simulator& ebosSimulator,
|
||||||
const int iterationIdx,
|
const int iterationIdx,
|
||||||
const double dt,
|
const double dt,
|
||||||
@@ -203,7 +203,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
assembleWellEq(Simulator& ebosSimulator,
|
assembleWellEq(Simulator& ebosSimulator,
|
||||||
const double dt,
|
const double dt,
|
||||||
WellState& well_state,
|
WellState& well_state,
|
||||||
@@ -222,7 +222,7 @@ namespace Opm {
|
|||||||
// r = r - duneC_^T * invDuneD_ * resWell_
|
// r = r - duneC_^T * invDuneD_ * resWell_
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
apply( BVector& r) const
|
apply( BVector& r) const
|
||||||
{
|
{
|
||||||
if ( ! localWellsActive() ) {
|
if ( ! localWellsActive() ) {
|
||||||
@@ -241,7 +241,7 @@ namespace Opm {
|
|||||||
// Ax = A x - C D^-1 B x
|
// Ax = A x - C D^-1 B x
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
apply(const BVector& x, BVector& Ax) const
|
apply(const BVector& x, BVector& Ax) const
|
||||||
{
|
{
|
||||||
// TODO: do we still need localWellsActive()?
|
// TODO: do we still need localWellsActive()?
|
||||||
@@ -261,7 +261,7 @@ namespace Opm {
|
|||||||
// Ax = Ax - alpha * C D^-1 B x
|
// Ax = Ax - alpha * C D^-1 B x
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
applyScaleAdd(const Scalar alpha, const BVector& x, BVector& Ax) const
|
applyScaleAdd(const Scalar alpha, const BVector& x, BVector& Ax) const
|
||||||
{
|
{
|
||||||
if ( ! localWellsActive() ) {
|
if ( ! localWellsActive() ) {
|
||||||
@@ -285,7 +285,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
recoverWellSolutionAndUpdateWellState(const BVector& x, WellState& well_state) const
|
recoverWellSolutionAndUpdateWellState(const BVector& x, WellState& well_state) const
|
||||||
{
|
{
|
||||||
for (auto& well : well_container_) {
|
for (auto& well : well_container_) {
|
||||||
@@ -299,7 +299,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
int
|
int
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
flowPhaseToEbosPhaseIdx( const int phaseIdx ) const
|
flowPhaseToEbosPhaseIdx( const int phaseIdx ) const
|
||||||
{
|
{
|
||||||
const auto& pu = phase_usage_;
|
const auto& pu = phase_usage_;
|
||||||
@@ -321,7 +321,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
int
|
int
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
numPhases() const
|
numPhases() const
|
||||||
{
|
{
|
||||||
return number_of_phases_;
|
return number_of_phases_;
|
||||||
@@ -333,7 +333,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
resetWellControlFromState(const WellState& xw) const
|
resetWellControlFromState(const WellState& xw) const
|
||||||
{
|
{
|
||||||
const int nw = wells_->number_of_wells;
|
const int nw = wells_->number_of_wells;
|
||||||
@@ -349,7 +349,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
bool
|
bool
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
wellsActive() const
|
wellsActive() const
|
||||||
{
|
{
|
||||||
return wells_active_;
|
return wells_active_;
|
||||||
@@ -361,7 +361,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
setWellsActive(const bool wells_active)
|
setWellsActive(const bool wells_active)
|
||||||
{
|
{
|
||||||
wells_active_ = wells_active;
|
wells_active_ = wells_active;
|
||||||
@@ -373,7 +373,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
bool
|
bool
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
localWellsActive() const
|
localWellsActive() const
|
||||||
{
|
{
|
||||||
return number_of_wells_ > 0;
|
return number_of_wells_ > 0;
|
||||||
@@ -385,7 +385,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
initPrimaryVariablesEvaluation() const
|
initPrimaryVariablesEvaluation() const
|
||||||
{
|
{
|
||||||
for (auto& well : well_container_) {
|
for (auto& well : well_container_) {
|
||||||
@@ -399,7 +399,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
SimulatorReport
|
SimulatorReport
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
solveWellEq(Simulator& ebosSimulator,
|
solveWellEq(Simulator& ebosSimulator,
|
||||||
const double dt,
|
const double dt,
|
||||||
WellState& well_state) const
|
WellState& well_state) const
|
||||||
@@ -474,7 +474,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
bool
|
bool
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
getWellConvergence(Simulator& ebosSimulator,
|
getWellConvergence(Simulator& ebosSimulator,
|
||||||
const std::vector<Scalar>& B_avg) const
|
const std::vector<Scalar>& B_avg) const
|
||||||
{
|
{
|
||||||
@@ -533,7 +533,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
calculateExplicitQuantities(const Simulator& ebosSimulator,
|
calculateExplicitQuantities(const Simulator& ebosSimulator,
|
||||||
const WellState& xw) const
|
const WellState& xw) const
|
||||||
{
|
{
|
||||||
@@ -548,7 +548,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
updateWellControls(WellState& xw) const
|
updateWellControls(WellState& xw) const
|
||||||
{
|
{
|
||||||
// Even if there no wells active locally, we cannot
|
// Even if there no wells active locally, we cannot
|
||||||
@@ -572,7 +572,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
updateListEconLimited(const Schedule& schedule,
|
updateListEconLimited(const Schedule& schedule,
|
||||||
const int current_step,
|
const int current_step,
|
||||||
const Wells* wells_struct,
|
const Wells* wells_struct,
|
||||||
@@ -590,7 +590,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
computeWellPotentials(const Simulator& ebosSimulator,
|
computeWellPotentials(const Simulator& ebosSimulator,
|
||||||
const WellState& well_state,
|
const WellState& well_state,
|
||||||
std::vector<double>& well_potentials) const
|
std::vector<double>& well_potentials) const
|
||||||
@@ -617,7 +617,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
prepareTimeStep(const Simulator& ebos_simulator,
|
prepareTimeStep(const Simulator& ebos_simulator,
|
||||||
WellState& well_state) const
|
WellState& well_state) const
|
||||||
{
|
{
|
||||||
@@ -654,7 +654,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
prepareGroupControl(const Simulator& ebos_simulator,
|
prepareGroupControl(const Simulator& ebos_simulator,
|
||||||
WellState& well_state) const
|
WellState& well_state) const
|
||||||
{
|
{
|
||||||
@@ -716,7 +716,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
WellCollection*
|
WellCollection*
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
wellCollection() const
|
wellCollection() const
|
||||||
{
|
{
|
||||||
return well_collection_;
|
return well_collection_;
|
||||||
@@ -728,7 +728,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
calculateEfficiencyFactors()
|
calculateEfficiencyFactors()
|
||||||
{
|
{
|
||||||
if ( !localWellsActive() ) {
|
if ( !localWellsActive() ) {
|
||||||
@@ -753,7 +753,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
computeWellVoidageRates(const WellState& well_state,
|
computeWellVoidageRates(const WellState& well_state,
|
||||||
std::vector<double>& well_voidage_rates,
|
std::vector<double>& well_voidage_rates,
|
||||||
std::vector<double>& voidage_conversion_coeffs) const
|
std::vector<double>& voidage_conversion_coeffs) const
|
||||||
@@ -815,7 +815,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
applyVREPGroupControl(WellState& well_state) const
|
applyVREPGroupControl(WellState& well_state) const
|
||||||
{
|
{
|
||||||
if ( wellCollection()->havingVREPGroups() ) {
|
if ( wellCollection()->havingVREPGroups() ) {
|
||||||
@@ -843,7 +843,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
updateGroupControls(WellState& well_state) const
|
updateGroupControls(WellState& well_state) const
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -886,7 +886,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
setupCompressedToCartesian(const int* global_cell, int number_of_cells, std::map<int,int>& cartesian_to_compressed ) const
|
setupCompressedToCartesian(const int* global_cell, int number_of_cells, std::map<int,int>& cartesian_to_compressed ) const
|
||||||
{
|
{
|
||||||
if (global_cell) {
|
if (global_cell) {
|
||||||
@@ -904,7 +904,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
computeRepRadiusPerfLength(const Grid& grid)
|
computeRepRadiusPerfLength(const Grid& grid)
|
||||||
{
|
{
|
||||||
// TODO, the function does not work for parallel running
|
// TODO, the function does not work for parallel running
|
||||||
@@ -926,7 +926,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
computeAverageFormationFactor(Simulator& ebosSimulator,
|
computeAverageFormationFactor(Simulator& ebosSimulator,
|
||||||
std::vector<double>& B_avg) const
|
std::vector<double>& B_avg) const
|
||||||
{
|
{
|
||||||
@@ -973,7 +973,7 @@ namespace Opm {
|
|||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
StandardWellsDense<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
updatePrimaryVariables(const WellState& well_state) const
|
updatePrimaryVariables(const WellState& well_state) const
|
||||||
{
|
{
|
||||||
for (const auto& well : well_container_) {
|
for (const auto& well : well_container_) {
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
#include <opm/autodiff/BlackoilModelEbos.hpp>
|
#include <opm/autodiff/BlackoilModelEbos.hpp>
|
||||||
#include <opm/autodiff/BlackoilModelParameters.hpp>
|
#include <opm/autodiff/BlackoilModelParameters.hpp>
|
||||||
#include <opm/autodiff/WellStateFullyImplicitBlackoil.hpp>
|
#include <opm/autodiff/WellStateFullyImplicitBlackoil.hpp>
|
||||||
#include <opm/autodiff/StandardWellsDense.hpp>
|
#include <opm/autodiff/BlackoilWellModel.hpp>
|
||||||
#include <opm/autodiff/RateConverter.hpp>
|
#include <opm/autodiff/RateConverter.hpp>
|
||||||
#include <opm/autodiff/SimFIBODetails.hpp>
|
#include <opm/autodiff/SimFIBODetails.hpp>
|
||||||
#include <opm/autodiff/moduleVersion.hpp>
|
#include <opm/autodiff/moduleVersion.hpp>
|
||||||
@@ -66,7 +66,7 @@ public:
|
|||||||
typedef BlackoilModelEbos<TypeTag> Model;
|
typedef BlackoilModelEbos<TypeTag> Model;
|
||||||
typedef BlackoilModelParameters ModelParameters;
|
typedef BlackoilModelParameters ModelParameters;
|
||||||
typedef NonlinearSolver<Model> Solver;
|
typedef NonlinearSolver<Model> Solver;
|
||||||
typedef StandardWellsDense<TypeTag> WellModel;
|
typedef BlackoilWellModel<TypeTag> WellModel;
|
||||||
typedef RateConverter::SurfaceToReservoirVoidage<FluidSystem, std::vector<int> > RateConverterType;
|
typedef RateConverter::SurfaceToReservoirVoidage<FluidSystem, std::vector<int> > RateConverterType;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -270,7 +270,7 @@ namespace Opm
|
|||||||
|
|
||||||
int flowPhaseToEbosPhaseIdx( const int phaseIdx ) const;
|
int flowPhaseToEbosPhaseIdx( const int phaseIdx ) const;
|
||||||
|
|
||||||
// TODO: it is dumplicated with StandardWellsDense
|
// TODO: it is dumplicated with BlackoilWellModel
|
||||||
int numComponents() const;
|
int numComponents() const;
|
||||||
|
|
||||||
double wsolvent() const;
|
double wsolvent() const;
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
#include <ewoms/common/start.hh>
|
#include <ewoms/common/start.hh>
|
||||||
|
|
||||||
#include <opm/autodiff/StandardWell.hpp>
|
#include <opm/autodiff/StandardWell.hpp>
|
||||||
#include <opm/autodiff/StandardWellsDense.hpp>
|
#include <opm/autodiff/BlackoilWellModel.hpp>
|
||||||
|
|
||||||
// maybe should just include BlackoilModelEbos.hpp
|
// maybe should just include BlackoilModelEbos.hpp
|
||||||
namespace Ewoms {
|
namespace Ewoms {
|
||||||
|
|||||||
Reference in New Issue
Block a user