move computeConnectionDensities to StandardWellConnections

this necessitates expanding the template parameter list
This commit is contained in:
Arne Morten Kvarving
2022-11-21 13:12:09 +01:00
parent 7cadeb5206
commit 0d72bba326
5 changed files with 249 additions and 215 deletions

View File

@@ -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];