|
opm-grid
|
A constant velocity approximation. More...
#include <VelocityInterpolation.hpp>
Public Member Functions | |
| VelocityInterpolationConstant (const UnstructuredGrid &grid) | |
| Constructor. | |
| void | setupFluxes (const double *flux) override |
| Set up fluxes for interpolation. | |
| void | interpolate (const int cell, const double *x, double *v) const override |
| Interpolate velocity. | |
A constant velocity approximation.
Will not actually interpolate unless the fluxes are consistent with a constant velocity.
|
explicit |
Constructor.
| [in] | grid | A grid. |
|
overridevirtual |
Interpolate velocity.
| [in] | cell | Cell in which to interpolate. |
| [in] | x | Coordinates of point at which to interpolate. Must be array of length grid.dimensions. |
| [out] | v | Interpolated velocity. Must be array of length grid.dimensions. |
Implements Opm::VelocityInterpolationInterface.
|
overridevirtual |
Set up fluxes for interpolation.
| [in] | flux | One signed flux per face in the grid. |
Implements Opm::VelocityInterpolationInterface.