My Project
|
A constant velocity approximation. More...
#include <VelocityInterpolation.hpp>
Public Member Functions | |
VelocityInterpolationConstant (const UnstructuredGrid &grid) | |
Constructor. | |
virtual void | setupFluxes (const double *flux) |
Set up fluxes for interpolation. | |
virtual void | interpolate (const int cell, const double *x, double *v) const |
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. |
|
virtual |
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.
|
virtual |
Set up fluxes for interpolation.
[in] | flux | One signed flux per face in the grid. |
Implements Opm::VelocityInterpolationInterface.