WIP updatePerfPhaseRatesAndPressures for BlackoilMultiSegmentModel

This commit is contained in:
Kai Bao 2015-09-23 18:13:56 +02:00
parent 3cc8a09a65
commit b3afd115ff
2 changed files with 7 additions and 16 deletions

View File

@ -219,10 +219,10 @@ namespace Opm {
V& aliveWells, V& aliveWells,
std::vector<ADB>& cq_s); std::vector<ADB>& cq_s);
/* void void
updatePerfPhaseRatesAndPressures(const std::vector<ADB>& cq_s, updatePerfPhaseRatesAndPressures(const std::vector<ADB>& cq_s,
const SolutionState& state, const SolutionState& state,
WellState& xw) {}; */ WellState& xw);
/* void /* void
addWellFluxEq(const std::vector<ADB>& cq_s, addWellFluxEq(const std::vector<ADB>& cq_s,

View File

@ -479,7 +479,7 @@ namespace Opm {
// the perforation flux here are different // the perforation flux here are different
// it is related to the segment location // it is related to the segment location
computeWellFlux(state, mob_perfcells, b_perfcells, aliveWells, cq_s); computeWellFlux(state, mob_perfcells, b_perfcells, aliveWells, cq_s);
// asImpl().updatePerfPhaseRatesAndPressures(cq_s, state, well_state); updatePerfPhaseRatesAndPressures(cq_s, state, well_state);
// asImpl().addWellFluxEq(cq_s, state); // asImpl().addWellFluxEq(cq_s, state);
// asImpl().addWellContributionToMassBalanceEq(cq_s, state, well_state); // asImpl().addWellContributionToMassBalanceEq(cq_s, state, well_state);
// addWellControlEq(state, well_state, aliveWells); // addWellControlEq(state, well_state, aliveWells);
@ -753,12 +753,10 @@ namespace Opm {
/* template <class Grid>
void BlackoilMultiSegmentModel<Grid>::updatePerfPhaseRatesAndPressures(const std::vector<ADB>& cq_s,
template <class Grid, class Implementation> const SolutionState& state,
void BlackoilModelBase<Grid, Implementation>::updatePerfPhaseRatesAndPressures(const std::vector<ADB>& cq_s, WellState& xw)
const SolutionState& state,
WellState& xw)
{ {
// Update the perforation phase rates (used to calculate the pressure drop in the wellbore). // Update the perforation phase rates (used to calculate the pressure drop in the wellbore).
// TODO: now it is so necesary to have a gobal wellsMultiSegment class to store some global information. // TODO: now it is so necesary to have a gobal wellsMultiSegment class to store some global information.
@ -778,16 +776,9 @@ namespace Opm {
// TODO: update the perforation pressures. // TODO: update the perforation pressures.
// it should be based on the segment pressures // it should be based on the segment pressures
// Then it makes it necessary to update the segment pressures and phase rates. // Then it makes it necessary to update the segment pressures and phase rates.
} }
*/
/* /*
template <class Grid, class Implementation> template <class Grid, class Implementation>
void BlackoilModelBase<Grid, Implementation>::addWellFluxEq(const std::vector<ADB>& cq_s, void BlackoilModelBase<Grid, Implementation>::addWellFluxEq(const std::vector<ADB>& cq_s,