|
opm-common
|
Implementation class for calculator's accumulator. More...
Public Member Functions | |
| void | addCentre (const Scalar weight, const Scalar press) |
| Add contribution from centre/connecting cell. | |
| void | addRectangular (const Scalar weight, const Scalar press) |
| Add contribution from direct, rectangular, level 1 neighbouring cell. | |
| void | addDiagonal (const Scalar weight, const Scalar press) |
| Add contribution from diagonal, level 2 neighbouring cell. | |
| void | add (const Scalar weight, const Impl &other) |
| Add contribution from other accumulator. | |
| void | prepareAccumulation () |
| Zero out/clear WBP result buffer. | |
| void | prepareContribution () |
| Zero out/clear WBP term buffer. | |
| void | commitContribution (const Scalar innerWeight) |
| Accumulate current source term into result buffer whilst applying any user-prescribed term weighting. | |
| LocalRunningAverages | getRunningAverages () const |
| Get buffer of intermediate, local results. | |
| void | assignRunningAverages (const LocalRunningAverages &a) |
| Assign coalesced/global contributions. | |
| Scalar | getAverageValue (const typename PAvgCalculatorResult< Scalar >::WBPMode type) const |
| Retrieve block-average pressure value of specific type. | |
Implementation class for calculator's accumulator.
|
inline |
Add contribution from other accumulator.
This typically incorporates a set of results from a single reservoir connection into a larger sum across all connections.
| [in] | weight | Pressure weighting factor |
| [in] | other | Contribution from other accumulation process. |
|
inline |
Add contribution from centre/connecting cell.
| [in] | weight | Pressure weighting factor |
| [in] | press | Pressure value |
|
inline |
Add contribution from diagonal, level 2 neighbouring cell.
| [in] | weight | Pressure weighting factor |
| [in] | press | Pressure value |
|
inline |
Add contribution from direct, rectangular, level 1 neighbouring cell.
| [in] | weight | Pressure weighting factor |
| [in] | press | Pressure value |
|
inline |
Assign coalesced/global contributions.
| [in] | a | Buffer of coalesced global contributions. |
|
inline |
Accumulate current source term into result buffer whilst applying any user-prescribed term weighting.
| [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. |
|
inline |
Retrieve block-average pressure value of specific type.
| [in] | type | Kind of block-average pressure |