mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-13 17:32:03 -05:00
adding updateExtraPrimaryVariables to StandardWell
This commit is contained in:
1 parent
94057a53f9
commit
2256395957
2 files changed
+16
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user