mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
removing parameters for extractWellPerfProperties
This commit is contained in:
@@ -810,7 +810,7 @@ namespace detail {
|
||||
|
||||
std::vector<ADB> mob_perfcells;
|
||||
std::vector<ADB> b_perfcells;
|
||||
asImpl().stdWells().extractWellPerfProperties(state, rq_, fluid_.numPhases(), fluid_, active_, mob_perfcells, b_perfcells);
|
||||
asImpl().stdWells().extractWellPerfProperties(state, rq_, mob_perfcells, b_perfcells);
|
||||
if (param_.solve_welleq_initially_ && initial_assembly) {
|
||||
// solve the well equations as a pre-processing step
|
||||
asImpl().solveWellEq(mob_perfcells, b_perfcells, state, well_state);
|
||||
|
||||
@@ -106,9 +106,6 @@ namespace Opm {
|
||||
template <class ReservoirResidualQuant, class SolutionState>
|
||||
void extractWellPerfProperties(const SolutionState& state,
|
||||
const std::vector<ReservoirResidualQuant>& rq,
|
||||
const int np,
|
||||
const BlackoilPropsAdInterface& fluid,
|
||||
const std::vector<bool>& active,
|
||||
std::vector<ADB>& mob_perfcells,
|
||||
std::vector<ADB>& b_perfcells) const;
|
||||
|
||||
|
||||
@@ -59,9 +59,6 @@ namespace Opm {
|
||||
template <class ReservoirResidualQuant, class SolutionState>
|
||||
void extractWellPerfProperties(const SolutionState& state,
|
||||
const std::vector<ReservoirResidualQuant>& rq,
|
||||
const int np,
|
||||
const BlackoilPropsAdInterface& fluid,
|
||||
const std::vector<bool>& active,
|
||||
std::vector<ADB>& mob_perfcells,
|
||||
std::vector<ADB>& b_perfcells) const;
|
||||
|
||||
|
||||
@@ -234,16 +234,14 @@ namespace Opm
|
||||
StandardWellsSolvent::
|
||||
extractWellPerfProperties(const SolutionState& state,
|
||||
const std::vector<ReservoirResidualQuant>& rq,
|
||||
const int np,
|
||||
const BlackoilPropsAdInterface& fluid,
|
||||
const std::vector<bool>& active,
|
||||
std::vector<ADB>& mob_perfcells,
|
||||
std::vector<ADB>& b_perfcells) const
|
||||
{
|
||||
Base::extractWellPerfProperties(state, rq, np, fluid, active, mob_perfcells, b_perfcells);
|
||||
Base::extractWellPerfProperties(state, rq, mob_perfcells, b_perfcells);
|
||||
// handle the solvent related
|
||||
if (has_solvent_) {
|
||||
int gas_pos = fluid.phaseUsage().phase_pos[Gas];
|
||||
const Opm::PhaseUsage& pu = fluid_.phaseUsage();
|
||||
int gas_pos = pu.phase_pos[Gas];
|
||||
const std::vector<int>& well_cells = wellOps().well_cells;
|
||||
const int nperf = well_cells.size();
|
||||
// Gas and solvent is combinded and solved together
|
||||
@@ -256,10 +254,9 @@ namespace Opm
|
||||
// A weighted sum of the b-factors of gas and solvent are used.
|
||||
const int nc = rq[solvent_pos_].mob.size();
|
||||
|
||||
const Opm::PhaseUsage& pu = fluid.phaseUsage();
|
||||
const ADB zero = ADB::constant(Vector::Zero(nc));
|
||||
const ADB& ss = state.solvent_saturation;
|
||||
const ADB& sg = (active[ Gas ]
|
||||
const ADB& sg = (active_[ Gas ]
|
||||
? state.saturation[ pu.phase_pos[ Gas ] ]
|
||||
: zero);
|
||||
|
||||
|
||||
@@ -327,9 +327,6 @@ namespace Opm
|
||||
StandardWells::
|
||||
extractWellPerfProperties(const SolutionState& /* state */,
|
||||
const std::vector<ReservoirResidualQuant>& rq,
|
||||
const int np,
|
||||
const BlackoilPropsAdInterface& /* fluid */,
|
||||
const std::vector<bool>& /* active */,
|
||||
std::vector<ADB>& mob_perfcells,
|
||||
std::vector<ADB>& b_perfcells) const
|
||||
{
|
||||
@@ -341,9 +338,9 @@ namespace Opm
|
||||
return;
|
||||
} else {
|
||||
const std::vector<int>& well_cells = wellOps().well_cells;
|
||||
mob_perfcells.resize(np, ADB::null());
|
||||
b_perfcells.resize(np, ADB::null());
|
||||
for (int phase = 0; phase < np; ++phase) {
|
||||
mob_perfcells.resize(num_phases_, ADB::null());
|
||||
b_perfcells.resize(num_phases_, ADB::null());
|
||||
for (int phase = 0; phase < num_phases_; ++phase) {
|
||||
mob_perfcells[phase] = subset(rq[phase].mob, well_cells);
|
||||
b_perfcells[phase] = subset(rq[phase].b, well_cells);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user