3.5-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Public Types | Public Member Functions | Static Public Attributes | List of all members
Dumux::PorousMediumFlowVelocity< GridVariables, FluxVariables > Class Template Reference

Velocity computation for implicit (porous media) models. More...

#include <dumux/porousmediumflow/velocity.hh>

Description

template<class GridVariables, class FluxVariables>
class Dumux::PorousMediumFlowVelocity< GridVariables, FluxVariables >

Velocity computation for implicit (porous media) models.

Public Types

using VelocityVector = std::vector< Dune::FieldVector< Scalar, dimWorld > >
 

Public Member Functions

 PorousMediumFlowVelocity (const GridVariables &gridVariables)
 Constructor initializes the static data with the initial solution. More...
 
void calculateVelocity (VelocityVector &velocity, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const ElementFluxVarsCache &elemFluxVarsCache, int phaseIdx) const
 

Static Public Attributes

static constexpr int numFluidPhases = VolumeVariables::numFluidPhases()
 

Member Typedef Documentation

◆ VelocityVector

template<class GridVariables , class FluxVariables >
using Dumux::PorousMediumFlowVelocity< GridVariables, FluxVariables >::VelocityVector = std::vector<Dune::FieldVector<Scalar, dimWorld> >

Constructor & Destructor Documentation

◆ PorousMediumFlowVelocity()

template<class GridVariables , class FluxVariables >
Dumux::PorousMediumFlowVelocity< GridVariables, FluxVariables >::PorousMediumFlowVelocity ( const GridVariables &  gridVariables)
inline

Constructor initializes the static data with the initial solution.

Parameters
gridVariablesThe grid variables

Member Function Documentation

◆ calculateVelocity()

template<class GridVariables , class FluxVariables >
void Dumux::PorousMediumFlowVelocity< GridVariables, FluxVariables >::calculateVelocity ( VelocityVector velocity,
const Element &  element,
const FVElementGeometry &  fvGeometry,
const ElementVolumeVariables &  elemVolVars,
const ElementFluxVarsCache &  elemFluxVarsCache,
int  phaseIdx 
) const
inline

Calculates the velocities for the scvs in the element. We assume the local containers to be bound to the complete stencil.

Member Data Documentation

◆ numFluidPhases

template<class GridVariables , class FluxVariables >
constexpr int Dumux::PorousMediumFlowVelocity< GridVariables, FluxVariables >::numFluidPhases = VolumeVariables::numFluidPhases()
staticconstexpr

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