version 3.10-dev
Dumux::PorousMediumFlowVelocity< GridVariables, FluxVariables > Class Template Reference

Velocity computation for implicit (porous media) models.

#include <dumux/porousmediumflow/velocity.hh>

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
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: