Accumulate weighted running averages of cell contributions to WBP.
More...
#include <PAvgCalculator.hpp>
|
using | LocalRunningAverages = std::array< double, 8 > |
| Collection of running averages and their associate weights.
|
|
Accumulate weighted running averages of cell contributions to WBP.
◆ LocalRunningAverages
Collection of running averages and their associate weights.
Intended primarily as a means of exchanging intermediate results in a parallel run.
◆ Accumulator() [1/2]
Opm::PAvgCalculator::Accumulator::Accumulator |
( |
const Accumulator & |
rhs | ) |
|
Copy constructor.
- Parameters
-
◆ Accumulator() [2/2]
Opm::PAvgCalculator::Accumulator::Accumulator |
( |
Accumulator && |
rhs | ) |
|
Move constructor.
- Parameters
-
[in,out] | rhs | Source object. Nullified on exit. |
◆ add()
Add contribution from other accumulator.
This typically incorporates a set of results from a single reservoir connection into a larger sum across all connections.
- Parameters
-
[in] | weight | Pressure weighting factor |
[in] | other | Contribution from other accumulation process. |
- Returns
-
◆ addCentre()
Add contribution from centre/connecting cell.
- Parameters
-
[in] | weight | Pressure weighting factor |
[in] | press | Pressure value |
- Returns
-
◆ addDiagonal()
Add contribution from diagonal, level 2 neighbouring cell.
- Parameters
-
[in] | weight | Pressure weighting factor |
[in] | press | Pressure value |
- Returns
-
◆ addRectangular()
Add contribution from direct, rectangular, level 1 neighbouring cell.
- Parameters
-
[in] | weight | Pressure weighting factor |
[in] | press | Pressure value |
- Returns
-
◆ assignRunningAverages()
Assign coalesced/global contributions.
- Parameters
-
[in] | avg | Buffer of coalesced global contributions. |
◆ commitContribution()
void Opm::PAvgCalculator::Accumulator::commitContribution |
( |
const double |
innerWeight = -1.0 | ) |
|
Accumulate current source term into result buffer whilst applying any user-prescribed term weighting.
- Parameters
-
[in] | innerWeight | Weighting factor for inner/connecting cell contributions. Outer cells weighted by 1-innerWeight where applicable. If inner weight factor is negative, no weighting is applied. Typically the F1 weighting factor from the WPAVE keyword. Default value (-1) mainly applicable to PV-weighted accumulations. |
◆ getFinalResult()
Calculate final WBP results from individual contributions.
- Returns
- New result object.
◆ operator=() [1/2]
Move assignment operator.
- Parameters
-
[in,out] | rhs | Source object. Nullified on exit. |
◆ operator=() [2/2]
Assignment operator.
- Parameters
-
The documentation for this class was generated from the following files:
- opm/input/eclipse/Schedule/Well/PAvgCalculator.hpp
- opm/input/eclipse/Schedule/Well/PAvgCalculator.cpp