Interpolate velocity using the extended CVI scheme: compute a corner velocity for each cell corner that is consistent with fluxes of adjacent faces, then interpolate with generalized barycentric coordinates.
More...
#include <VelocityInterpolation.hpp>
Interpolate velocity using the extended CVI scheme: compute a corner velocity for each cell corner that is consistent with fluxes of adjacent faces, then interpolate with generalized barycentric coordinates.
◆ VelocityInterpolationECVI()
Opm::VelocityInterpolationECVI::VelocityInterpolationECVI |
( |
const UnstructuredGrid & | grid | ) |
|
|
explicit |
◆ interpolate()
void Opm::VelocityInterpolationECVI::interpolate |
( |
const int | cell, |
|
|
const double * | x, |
|
|
double * | v ) const |
|
virtual |
Interpolate velocity.
- Parameters
-
[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.
◆ setupFluxes()
void Opm::VelocityInterpolationECVI::setupFluxes |
( |
const double * | flux | ) |
|
|
virtual |
Set up fluxes for interpolation.
- Parameters
-
[in] | flux | One signed flux per face in the grid. |
Computes the corner velocities.
- Parameters
-
[in] | flux | One signed flux per face in the grid. |
Implements Opm::VelocityInterpolationInterface.
The documentation for this class was generated from the following files: