3.4
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Public Member Functions | List of all members
Dumux::ShallowWaterResidual< TypeTag > Class Template Reference

Element-wise calculation of the residual for the shallow water equations. More...

#include <dumux/freeflow/shallowwater/localresidual.hh>

Inheritance diagram for Dumux::ShallowWaterResidual< TypeTag >:

Description

template<class TypeTag>
class Dumux::ShallowWaterResidual< TypeTag >

Element-wise calculation of the residual for the shallow water equations.

Public Member Functions

NumEqVector computeStorage (const Problem &problem, const SubControlVolume &scv, const VolumeVariables &volVars) const
 Evaluate the rate of change of all conservation quantites (e.g. mass, momentum) within a sub-control volume of a finite volume element. More...
 
NumEqVector computeFlux (const Problem &problem, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const SubControlVolumeFace &scvf, const ElementFluxVariablesCache &elemFluxVarsCache) const
 Evaluate the mass/momentum flux over a face of a sub control volume. More...
 

Member Function Documentation

◆ computeFlux()

template<class TypeTag >
NumEqVector Dumux::ShallowWaterResidual< TypeTag >::computeFlux ( const Problem &  problem,
const Element &  element,
const FVElementGeometry &  fvGeometry,
const ElementVolumeVariables &  elemVolVars,
const SubControlVolumeFace &  scvf,
const ElementFluxVariablesCache &  elemFluxVarsCache 
) const
inline

Evaluate the mass/momentum flux over a face of a sub control volume.

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 flux variable cache for the element stencil

◆ computeStorage()

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

Evaluate the rate of change of all conservation quantites (e.g. mass, momentum) within a sub-control volume of a finite volume element.

Parameters
problemThe problem
scvThe sub control volume
volVarsThe current or previous volVars
Note
This function should not include the source and sink terms.
The volVars can be different to allow computing the implicit euler time derivative here

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