rename computeConnectionDensities to computeDensities

that it applies to connections are now implied by class
This commit is contained in:
Arne Morten Kvarving 2022-11-21 13:20:34 +01:00
parent 5d1b5d9426
commit 100a7b0582
3 changed files with 15 additions and 15 deletions

View File

@ -84,13 +84,13 @@ computePressureDelta()
template<class FluidSystem, class Indices, class Scalar> template<class FluidSystem, class Indices, class Scalar>
void StandardWellConnections<FluidSystem,Indices,Scalar>:: void StandardWellConnections<FluidSystem,Indices,Scalar>::
computeConnectionDensities(const std::vector<Scalar>& perfComponentRates, computeDensities(const std::vector<Scalar>& perfComponentRates,
const std::vector<Scalar>& b_perf, const std::vector<Scalar>& b_perf,
const std::vector<Scalar>& rsmax_perf, const std::vector<Scalar>& rsmax_perf,
const std::vector<Scalar>& rvmax_perf, const std::vector<Scalar>& rvmax_perf,
const std::vector<Scalar>& rvwmax_perf, const std::vector<Scalar>& rvwmax_perf,
const std::vector<Scalar>& surf_dens_perf, const std::vector<Scalar>& surf_dens_perf,
DeferredLogger& deferred_logger) DeferredLogger& deferred_logger)
{ {
// Verify that we have consistent input. // Verify that we have consistent input.
const int nperf = well_.numPerfs(); const int nperf = well_.numPerfs();

View File

@ -41,13 +41,13 @@ public:
// TODO: not total sure whether it is a good idea to put this function here // 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 // the major reason to put here is to avoid the usage of Wells struct
void computeConnectionDensities(const std::vector<Scalar>& perfComponentRates, void computeDensities(const std::vector<Scalar>& perfComponentRates,
const std::vector<Scalar>& b_perf, const std::vector<Scalar>& b_perf,
const std::vector<Scalar>& rsmax_perf, const std::vector<Scalar>& rsmax_perf,
const std::vector<Scalar>& rvmax_perf, const std::vector<Scalar>& rvmax_perf,
const std::vector<Scalar>& rvwmax_perf, const std::vector<Scalar>& rvwmax_perf,
const std::vector<Scalar>& surf_dens_perf, const std::vector<Scalar>& surf_dens_perf,
DeferredLogger& deferred_logger); DeferredLogger& deferred_logger);
Scalar getRho() const Scalar getRho() const
{ {

View File

@ -1625,7 +1625,7 @@ namespace Opm
} }
} }
this->connections_.computeConnectionDensities(perfRates, b_perf, rsmax_perf, rvmax_perf, rvwmax_perf, surf_dens_perf, deferred_logger); this->connections_.computeDensities(perfRates, b_perf, rsmax_perf, rvmax_perf, rvwmax_perf, surf_dens_perf, deferred_logger);
this->connections_.computePressureDelta(); this->connections_.computePressureDelta();
} }