3.1-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Static Public Member Functions | List of all members

Class roviding functionality for the reconstruction of the gradients in the sub-control volumes involved in mpfa schemes. More...

#include <dumux/discretization/cellcentered/mpfa/scvgradients.hh>

Description

Class roviding functionality for the reconstruction of the gradients in the sub-control volumes involved in mpfa schemes.

Static Public Member Functions

template<class GridGeometry , class GridVariables , class SolutionVector >
static ResultPair< GridGeometry, typename GridVariables::Scalar > computeVelocities (const GridGeometry &gridGeometry, const GridVariables &gridVariables, const SolutionVector &x, unsigned int phaseIdx)
 Computes the phase velocities in the scvs of the grid. More...
 
template<class GridGeometry , class GridVariables , class SolutionVector >
static ResultPair< GridGeometry, typename GridVariables::Scalar > computePressureGradients (const GridGeometry &gridGeometry, const GridVariables &gridVariables, const SolutionVector &x, unsigned int phaseIdx)
 Computes the pressure gradients in the scvs of the grid. More...
 
template<class GridGeometry , class GridVariables , class SolutionVector , class F >
static ResultPair< GridGeometry, typename GridVariables::Scalar > computePressureGradients (const GridGeometry &gridGeometry, const GridVariables &gridVariables, const SolutionVector &x, unsigned int phaseIdx, F &f)
 Computes the pressure gradients in the scvs of the grid. More...
 

Member Function Documentation

◆ computePressureGradients() [1/2]

template<class GridGeometry , class GridVariables , class SolutionVector >
static ResultPair< GridGeometry, typename GridVariables::Scalar > Dumux::CCMpfaScvGradients::computePressureGradients ( const GridGeometry &  gridGeometry,
const GridVariables &  gridVariables,
const SolutionVector &  x,
unsigned int  phaseIdx 
)
inlinestatic

Computes the pressure gradients in the scvs of the grid.

Parameters
gridGeometryThe finite volume grid geometry
gridVariablesThe variables living on the grid
xThe vector containing the solution
phaseIdxThe index of the fluid phase to be considered

◆ computePressureGradients() [2/2]

template<class GridGeometry , class GridVariables , class SolutionVector , class F >
static ResultPair< GridGeometry, typename GridVariables::Scalar > Dumux::CCMpfaScvGradients::computePressureGradients ( const GridGeometry &  gridGeometry,
const GridVariables &  gridVariables,
const SolutionVector &  x,
unsigned int  phaseIdx,
F &  f 
)
inlinestatic

Computes the pressure gradients in the scvs of the grid.

Parameters
gridGeometryThe finite volume grid geometry
gridVariablesThe variables living on the grid
xThe vector containing the solution
phaseIdxThe index of the fluid phase to be considered
fa function which is applied to the gradients and which has the following signature:

Gradient f(const Gradient& gradient, const VolumeVariables& volVars)

It receives the scv-gradient and the corresponding volume variables and returns the modified gradient. This can be used e.g. to turn the pressure gradients into velocities.

◆ computeVelocities()

template<class GridGeometry , class GridVariables , class SolutionVector >
static ResultPair< GridGeometry, typename GridVariables::Scalar > Dumux::CCMpfaScvGradients::computeVelocities ( const GridGeometry &  gridGeometry,
const GridVariables &  gridVariables,
const SolutionVector &  x,
unsigned int  phaseIdx 
)
inlinestatic

Computes the phase velocities in the scvs of the grid.

Parameters
gridGeometryThe finite volume grid geometry
gridVariablesThe variables living on the grid
xThe vector containing the solution
phaseIdxThe index of the fluid phase to be considered

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