mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
adding updateExtraPrimaryVariables to StandardWell
This commit is contained in:
parent
94057a53f9
commit
2256395957
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user