version 3.8
Dumux::MPNCLocalResidual< TypeTag > Class Template Reference

MpNc specific details needed to approximately calculate the local defect in the fully implicit scheme. More...

#include <dumux/porousmediumflow/mpnc/localresidual.hh>

Inheritance diagram for Dumux::MPNCLocalResidual< TypeTag >:

Description

template<class TypeTag>
class Dumux::MPNCLocalResidual< TypeTag >

This class is used to fill the gaps in ImplicitLocalResidual for the MpNc flow.

Public Member Functions

ElementResidualVector evalFluxAndSource (const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const ElementFluxVariablesCache &elemFluxVarsCache, const ElementBoundaryTypes &bcTypes) const
 
NumEqVector computeStorage (const Problem &problem, const SubControlVolume &scv, const VolumeVariables &volVars) const
 Evaluates the amount of all conservation quantities (e.g. phase mass) within a sub-control volume. More...
 
NumEqVector computeFlux (const Problem &problem, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const SubControlVolumeFace &scvf, const ElementFluxVariablesCache &elemFluxVarsCache) const
 Evaluates the total flux of all conservation quantities over a face of a sub-control volume. More...
 

Protected Member Functions

Implementation * asImp_ ()
 
const Implementation * asImp_ () const
 

Member Function Documentation

◆ asImp_() [1/2]

template<class TypeTag >
Implementation * Dumux::CompositionalLocalResidual< TypeTag >::asImp_ ( )
inlineprotectedinherited

◆ asImp_() [2/2]

template<class TypeTag >
const Implementation * Dumux::CompositionalLocalResidual< TypeTag >::asImp_ ( ) const
inlineprotectedinherited

◆ computeFlux()

template<class TypeTag >
NumEqVector Dumux::CompositionalLocalResidual< TypeTag >::computeFlux ( const Problem &  problem,
const Element &  element,
const FVElementGeometry &  fvGeometry,
const ElementVolumeVariables &  elemVolVars,
const SubControlVolumeFace &  scvf,
const ElementFluxVariablesCache &  elemFluxVarsCache 
) const
inlineinherited
Parameters
problemThe problem
elementThe current element.
fvGeometryThe finite-volume geometry
elemVolVarsThe volume variables of the current element
scvfThe sub control volume face to compute the flux on
elemFluxVarsCacheThe cache related to flux computation

Add advective phase energy fluxes. For isothermal model the contribution is zero.

Add diffusive and dispersive energy fluxes. For isothermal model the contribution is zero.

◆ computeStorage()

template<class TypeTag >
NumEqVector Dumux::CompositionalLocalResidual< TypeTag >::computeStorage ( const Problem &  problem,
const SubControlVolume &  scv,
const VolumeVariables &  volVars 
) const
inlineinherited

The result should be averaged over the volume (e.g. phase mass inside a sub control volume divided by the volume)

Parameters
problemThe problem
scvThe sub control volume
volVarsThe current or previous volVars

The energy storage in the fluid phase with index phaseIdx

The energy storage in the solid matrix

◆ evalFluxAndSource()

template<class TypeTag >
ElementResidualVector Dumux::MPNCLocalResidual< TypeTag >::evalFluxAndSource ( const Element &  element,
const FVElementGeometry &  fvGeometry,
const ElementVolumeVariables &  elemVolVars,
const ElementFluxVariablesCache &  elemFluxVarsCache,
const ElementBoundaryTypes &  bcTypes 
) const
inline

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