Opm::VelocityInterpolationConstant Class Reference

#include <VelocityInterpolation.hpp>

Inheritance diagram for Opm::VelocityInterpolationConstant:
Inheritance graph

Public Member Functions

 VelocityInterpolationConstant (const UnstructuredGrid &grid)
 
virtual void setupFluxes (const double *flux)
 
virtual void interpolate (const int cell, const double *x, double *v) const
 

Detailed Description

A constant velocity approximation. Will not actually interpolate unless the fluxes are consistent with a constant velocity.

Constructor & Destructor Documentation

Opm::VelocityInterpolationConstant::VelocityInterpolationConstant ( const UnstructuredGrid grid)
explicit

Constructor.

Parameters
[in]gridA grid.

Member Function Documentation

virtual void Opm::VelocityInterpolationConstant::interpolate ( const int  cell,
const double *  x,
double *  v 
) const
virtual

Interpolate velocity.

Parameters
[in]cellCell in which to interpolate.
[in]xCoordinates of point at which to interpolate. Must be array of length grid.dimensions.
[out]vInterpolated velocity. Must be array of length grid.dimensions.

Implements Opm::VelocityInterpolationInterface.

virtual void Opm::VelocityInterpolationConstant::setupFluxes ( const double *  flux)
virtual

Set up fluxes for interpolation.

Parameters
[in]fluxOne signed flux per face in the grid.

Implements Opm::VelocityInterpolationInterface.


The documentation for this class was generated from the following file: