mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
move computeConnectionDensities to StandardWellConnections
this necessitates expanding the template parameter list
This commit is contained in:
@@ -28,9 +28,10 @@
|
||||
namespace Opm
|
||||
{
|
||||
|
||||
class DeferredLogger;
|
||||
class WellInterfaceGeneric;
|
||||
|
||||
template<class Scalar>
|
||||
template<class FluidSystem, class Indices, class Scalar>
|
||||
class StandardWellConnections
|
||||
{
|
||||
public:
|
||||
@@ -38,6 +39,16 @@ public:
|
||||
|
||||
void computeConnectionPressureDelta();
|
||||
|
||||
// TODO: not total sure whether it is a good idea to put this function here
|
||||
// the major reason to put here is to avoid the usage of Wells struct
|
||||
void computeConnectionDensities(const std::vector<Scalar>& perfComponentRates,
|
||||
const std::vector<Scalar>& b_perf,
|
||||
const std::vector<Scalar>& rsmax_perf,
|
||||
const std::vector<Scalar>& rvmax_perf,
|
||||
const std::vector<Scalar>& rvwmax_perf,
|
||||
const std::vector<Scalar>& surf_dens_perf,
|
||||
DeferredLogger& deferred_logger);
|
||||
|
||||
Scalar getRho() const
|
||||
{
|
||||
return this->perf_densities_.empty() ? 0.0 : perf_densities_[0];
|
||||
|
||||
Reference in New Issue
Block a user