adding updateExtraPrimaryVariables to StandardWell

This commit is contained in:
Kai Bao 2019-06-06 11:30:25 +02:00
parent 94057a53f9
commit 2256395957
2 changed files with 16 additions and 0 deletions

View File

@ -369,6 +369,10 @@ namespace Opm
void updatePrimaryVariablesNewton(const BVectorWell& dwells,
const WellState& well_state) const;
// update extra primary vriables if there are any
void updateExtraPrimaryVariables(const BVectorWell& dwells) const;
void updateWellStateFromPrimaryVariables(WellState& well_state, Opm::DeferredLogger& deferred_logger) const;
void updateThp(WellState& well_state, Opm::DeferredLogger& deferred_logger) const;

View File

@ -969,6 +969,18 @@ namespace Opm
primary_variables_[Bhp] = std::max(old_primary_variables[Bhp] - dx1_limited, 1e5);
}
updateExtraPrimaryVariables(dwells);
}
template<typename TypeTag>
void
StandardWell<TypeTag>::
updateExtraPrimaryVariables(const BVectorWell& dwells) const
{
// for the water velocity and skin pressure
if (this->has_polymermw && well_type_ == INJECTOR) {
for (int perf = 0; perf < number_of_perforations_; ++perf) {