Ewoms::StokesLocalResidual< TypeTag > Class Template Reference

The local residual function for problems using the Stokes model. More...

#include <stokeslocalresidual.hh>

Inheritance diagram for Ewoms::StokesLocalResidual< TypeTag >:
Inheritance graph

Public Member Functions

void computeStorage (EqVector &storage, const ElementContext &elemCtx, int dofIdx, int timeIdx) const
 Evaluate the amount all conservation quantities (e.g. phase mass) within a finite sub-control volume. More...
 
void computeFlux (RateVector &flux, const ElementContext &elemCtx, int scvfIdx, int timeIdx) const
 Evaluates the total mass flux of all conservation quantities over a face of a sub-control volume. More...
 
void addAdvectiveFlux (RateVector &flux, const ElementContext &elemCtx, int scvfIdx, int timeIdx) const
 Add the advective mass flux at a given flux integration point. More...
 
void addDiffusiveFlux (RateVector &flux, const ElementContext &elemCtx, int scvfIdx, int timeIdx) const
 Adds the diffusive flux at a given flux integration point. More...
 
void computeSource (RateVector &source, const ElementContext &elemCtx, int dofIdx, int timeIdx) const
 Calculate the source term of the equation. More...
 

Static Public Member Functions

static void registerParameters ()
 Register all run-time parameters for the local residual. More...
 

Detailed Description

template<class TypeTag>
class Ewoms::StokesLocalResidual< TypeTag >

The local residual function for problems using the Stokes model.

Member Function Documentation

template<class TypeTag >
void Ewoms::StokesLocalResidual< TypeTag >::addAdvectiveFlux ( RateVector &  flux,
const ElementContext &  elemCtx,
int  scvfIdx,
int  timeIdx 
) const
inline

Add the advective mass flux at a given flux integration point.

Parameters
fluxArea-specific flux over the phase.

Referenced by Ewoms::StokesLocalResidual< TypeTag >::computeFlux().

template<class TypeTag >
void Ewoms::StokesLocalResidual< TypeTag >::addDiffusiveFlux ( RateVector &  flux,
const ElementContext &  elemCtx,
int  scvfIdx,
int  timeIdx 
) const
inline

Adds the diffusive flux at a given flux integration point.

For the immiscible model, this is a no-op for mass fluxes. For energy it adds the contribution of heat conduction to the enthalpy flux.

Parameters
fluxArea-specific flux over the phase.

Referenced by Ewoms::StokesLocalResidual< TypeTag >::computeFlux().

template<class TypeTag >
void Ewoms::StokesLocalResidual< TypeTag >::computeFlux ( RateVector &  flux,
const ElementContext &  elemCtx,
int  scvfIdx,
int  timeIdx 
) const
inline

Evaluates the total mass flux of all conservation quantities over a face of a sub-control volume.

Parameters
fluxArea-specific flux over the phase.

References Ewoms::StokesLocalResidual< TypeTag >::addAdvectiveFlux(), and Ewoms::StokesLocalResidual< TypeTag >::addDiffusiveFlux().

template<class TypeTag >
void Ewoms::StokesLocalResidual< TypeTag >::computeSource ( RateVector &  source,
const ElementContext &  elemCtx,
int  dofIdx,
int  timeIdx 
) const
inline

Calculate the source term of the equation.

Parameters
sourceThe values of the source term.
template<class TypeTag >
void Ewoms::StokesLocalResidual< TypeTag >::computeStorage ( EqVector &  storage,
const ElementContext &  elemCtx,
int  dofIdx,
int  timeIdx 
) const
inline

Evaluate the amount all conservation quantities (e.g. phase mass) within a finite sub-control volume.

Parameters
storageStores the total amount of each conserved quantity inside the domain.
template<class TypeTag >
static void Ewoms::StokesLocalResidual< TypeTag >::registerParameters ( )
inlinestatic

Register all run-time parameters for the local residual.

References EWOMS_REGISTER_PARAM.


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