mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
changed: move calculateThpFromBhp to WellBhpThpCalculator
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#include <opm/simulators/timestepping/ConvergenceReport.hpp>
|
||||
#include <opm/simulators/utils/DeferredLoggingErrorHelpers.hpp>
|
||||
#include <opm/simulators/wells/ParallelWellInfo.hpp>
|
||||
#include <opm/simulators/wells/WellBhpThpCalculator.hpp>
|
||||
#include <opm/simulators/wells/WellConvergence.hpp>
|
||||
#include <opm/simulators/wells/WellInterfaceIndices.hpp>
|
||||
#include <opm/simulators/wells/WellState.hpp>
|
||||
@@ -595,10 +596,11 @@ updateThp(WellState& well_state,
|
||||
rates[ Gas ] = ws.surface_rates[pu.phase_pos[ Gas ] ];
|
||||
}
|
||||
|
||||
ws.thp = this->calculateThpFromBhp(well_state,
|
||||
rates,
|
||||
ws.bhp,
|
||||
deferred_logger);
|
||||
ws.thp = WellBhpThpCalculator(this->baseif_).calculateThpFromBhp(rates,
|
||||
ws.bhp,
|
||||
this->getRho(),
|
||||
this->baseif_.getALQ(well_state),
|
||||
deferred_logger);
|
||||
}
|
||||
|
||||
template<class FluidSystem, class Indices, class Scalar>
|
||||
|
||||
Reference in New Issue
Block a user