Ewoms::NcpLocalResidual< TypeTag > Class Template Reference

Details needed to calculate the local residual in the compositional multi-phase NCP-model . More...

#include <ncplocalresidual.hh>

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

Public Member Functions

template<class LhsEval >
void addPhaseStorage (Dune::FieldVector< LhsEval, numEq > &storage, const ElementContext &elemCtx, int dofIdx, int timeIdx, int phaseIdx) const
 Adds the amount all conservation quantities (e.g. phase mass) within a single fluid phase. More...
 
template<class LhsEval >
void computeStorage (Dune::FieldVector< LhsEval, numEq > &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...
 
void evalConstraints_ (ElemEvalEqVector &residual, ElemEvalEqVector &storageTerm, const ElementContext &elemCtx, int timeIdx) const
 Set the values of the constraint volumes of the current element. More...
 
Evaluation phaseNcp_ (const ElementContext &elemCtx, int dofIdx, int timeIdx, int phaseIdx) const
 Returns the value of the NCP-function for a phase. More...
 
template<class FluidState >
Evaluation phasePresentIneq_ (const FluidState &fluidState, int phaseIdx) const
 Returns the value of the inequality where a phase is present. More...
 
template<class FluidState >
Evaluation phaseNotPresentIneq_ (const FluidState &fluidState, int phaseIdx) const
 Returns the value of the inequality where a phase is not present. More...
 

Detailed Description

template<class TypeTag>
class Ewoms::NcpLocalResidual< TypeTag >

Details needed to calculate the local residual in the compositional multi-phase NCP-model .

Member Function Documentation

template<class TypeTag >
void Ewoms::NcpLocalResidual< 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::NcpLocalResidual< TypeTag >::computeFlux().

template<class TypeTag >
void Ewoms::NcpLocalResidual< 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::NcpLocalResidual< TypeTag >::computeFlux().

template<class TypeTag >
template<class LhsEval >
void Ewoms::NcpLocalResidual< TypeTag >::addPhaseStorage ( Dune::FieldVector< LhsEval, numEq > &  storage,
const ElementContext &  elemCtx,
int  dofIdx,
int  timeIdx,
int  phaseIdx 
) const
inline

Adds the amount all conservation quantities (e.g. phase mass) within a single fluid phase.

Parameters
storageStores the total amount of each conserved quantity inside the domain.
phaseIdxThe index of the fluid phase of interest.

Referenced by Ewoms::NcpLocalResidual< TypeTag >::computeStorage().

template<class TypeTag >
void Ewoms::NcpLocalResidual< 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::NcpLocalResidual< TypeTag >::addAdvectiveFlux(), and Ewoms::NcpLocalResidual< TypeTag >::addDiffusiveFlux().

template<class TypeTag >
void Ewoms::NcpLocalResidual< 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.

By default, this method only asks the problem to specify a source term.

template<class TypeTag >
template<class LhsEval >
void Ewoms::NcpLocalResidual< TypeTag >::computeStorage ( Dune::FieldVector< LhsEval, numEq > &  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.

References Ewoms::NcpLocalResidual< TypeTag >::addPhaseStorage().

template<class TypeTag >
void Ewoms::NcpLocalResidual< TypeTag >::evalConstraints_ ( ElemEvalEqVector &  residual,
ElemEvalEqVector &  storageTerm,
const ElementContext &  elemCtx,
int  timeIdx 
) const
inline

Set the values of the constraint volumes of the current element.

References Ewoms::NcpLocalResidual< TypeTag >::phaseNcp_().

template<class TypeTag >
Evaluation Ewoms::NcpLocalResidual< TypeTag >::phaseNcp_ ( const ElementContext &  elemCtx,
int  dofIdx,
int  timeIdx,
int  phaseIdx 
) const
inline
template<class TypeTag >
template<class FluidState >
Evaluation Ewoms::NcpLocalResidual< TypeTag >::phaseNotPresentIneq_ ( const FluidState &  fluidState,
int  phaseIdx 
) const
inline

Returns the value of the inequality where a phase is not present.

Referenced by Ewoms::NcpLocalResidual< TypeTag >::phaseNcp_().

template<class TypeTag >
template<class FluidState >
Evaluation Ewoms::NcpLocalResidual< TypeTag >::phasePresentIneq_ ( const FluidState &  fluidState,
int  phaseIdx 
) const
inline

Returns the value of the inequality where a phase is present.

Referenced by Ewoms::NcpLocalResidual< TypeTag >::phaseNcp_().


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