adding updateExtraPrimaryVariables to StandardWell

This commit is contained in:
Kai Bao committed 2019-06-13 14:49:04 +02:00
1 parent 94057a53f9
commit 2256395957
2 files changed
+16

No files matched your search

+4
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;
@@ -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) {