My Project
Loading...
Searching...
No Matches
Opm::FlashLocalResidual< TypeTag > Class Template Reference

Calculates the local residual of the compositional multi-phase model based on flash calculations. More...

#include <flashlocalresidual.hh>

Inheritance diagram for Opm::FlashLocalResidual< TypeTag >:

Public Member Functions

template<class LhsEval >
void addPhaseStorage (Dune::FieldVector< LhsEval, numEq > &storage, const ElementContext &elemCtx, unsigned dofIdx, unsigned timeIdx, unsigned phaseIdx) const
 Adds the amount all conservation quantities (e.g.
 
template<class LhsEval >
void computeStorage (Dune::FieldVector< LhsEval, numEq > &storage, const ElementContext &elemCtx, unsigned dofIdx, unsigned timeIdx) const
 Evaluate the amount all conservation quantities (e.g.
 
void computeFlux (RateVector &flux, const ElementContext &elemCtx, unsigned scvfIdx, unsigned timeIdx) const
 Evaluates the total mass flux of all conservation quantities over a face of a sub-control volume.
 
void addAdvectiveFlux (RateVector &flux, const ElementContext &elemCtx, unsigned scvfIdx, unsigned timeIdx) const
 Add the advective mass flux at a given flux integration point.
 
void addDiffusiveFlux (RateVector &flux, const ElementContext &elemCtx, unsigned scvfIdx, unsigned timeIdx) const
 Adds the diffusive flux at a given flux integration point.
 
void computeSource (RateVector &source, const ElementContext &elemCtx, unsigned dofIdx, unsigned timeIdx) const
 Calculate the source term of the equation.
 
template<class LhsEval >
void addPhaseStorage (Dune::FieldVector< LhsEval, numEq > &storage, const ElementContext &elemCtx, unsigned dofIdx, unsigned timeIdx, unsigned phaseIdx) const
 Adds the amount all conservation quantities (e.g.
 
template<class LhsEval >
void computeStorage (Dune::FieldVector< LhsEval, numEq > &storage, const ElementContext &elemCtx, unsigned dofIdx, unsigned timeIdx) const
 Evaluate the amount all conservation quantities (e.g.
 
void computeFlux (RateVector &flux, const ElementContext &elemCtx, unsigned scvfIdx, unsigned timeIdx) const
 Evaluates the total mass flux of all conservation quantities over a face of a sub-control volume.
 
void addAdvectiveFlux (RateVector &flux, const ElementContext &elemCtx, unsigned scvfIdx, unsigned timeIdx) const
 Add the advective mass flux at a given flux integration point.
 
void addDiffusiveFlux (RateVector &flux, const ElementContext &elemCtx, unsigned scvfIdx, unsigned timeIdx) const
 Adds the diffusive flux at a given flux integration point.
 
void computeSource (RateVector &source, const ElementContext &elemCtx, unsigned dofIdx, unsigned timeIdx) const
 Calculate the source term of the equation.
 

Detailed Description

template<class TypeTag>
class Opm::FlashLocalResidual< TypeTag >

Calculates the local residual of the compositional multi-phase model based on flash calculations.

Calculates the local residual of the compositional multi-phase model based on PTFlash calculations.

Member Function Documentation

◆ addAdvectiveFlux() [1/2]

template<class TypeTag >
void Opm::FlashLocalResidual< TypeTag >::addAdvectiveFlux ( RateVector & flux,
const ElementContext & elemCtx,
unsigned scvfIdx,
unsigned timeIdx ) const
inline

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

◆ addAdvectiveFlux() [2/2]

template<class TypeTag >
void Opm::FlashLocalResidual< TypeTag >::addAdvectiveFlux ( RateVector & flux,
const ElementContext & elemCtx,
unsigned scvfIdx,
unsigned timeIdx ) const
inline

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

◆ addDiffusiveFlux() [1/2]

template<class TypeTag >
void Opm::FlashLocalResidual< TypeTag >::addDiffusiveFlux ( RateVector & flux,
const ElementContext & elemCtx,
unsigned scvfIdx,
unsigned 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 thermal conduction to the enthalpy flux.

◆ addDiffusiveFlux() [2/2]

template<class TypeTag >
void Opm::FlashLocalResidual< TypeTag >::addDiffusiveFlux ( RateVector & flux,
const ElementContext & elemCtx,
unsigned scvfIdx,
unsigned 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 thermal conduction to the enthalpy flux.

◆ addPhaseStorage() [1/2]

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

Adds the amount all conservation quantities (e.g.

phase mass) within a single fluid phase

◆ addPhaseStorage() [2/2]

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

Adds the amount all conservation quantities (e.g.

phase mass) within a single fluid phase

◆ computeFlux() [1/2]

template<class TypeTag >
void Opm::FlashLocalResidual< TypeTag >::computeFlux ( RateVector & flux,
const ElementContext & elemCtx,
unsigned scvfIdx,
unsigned timeIdx ) const
inline

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

◆ computeFlux() [2/2]

template<class TypeTag >
void Opm::FlashLocalResidual< TypeTag >::computeFlux ( RateVector & flux,
const ElementContext & elemCtx,
unsigned scvfIdx,
unsigned timeIdx ) const
inline

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

◆ computeSource() [1/2]

template<class TypeTag >
void Opm::FlashLocalResidual< TypeTag >::computeSource ( RateVector & source,
const ElementContext & elemCtx,
unsigned dofIdx,
unsigned timeIdx ) const
inline

Calculate the source term of the equation.

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

◆ computeSource() [2/2]

template<class TypeTag >
void Opm::FlashLocalResidual< TypeTag >::computeSource ( RateVector & source,
const ElementContext & elemCtx,
unsigned dofIdx,
unsigned timeIdx ) const
inline

Calculate the source term of the equation.

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

◆ computeStorage() [1/2]

template<class TypeTag >
template<class LhsEval >
void Opm::FlashLocalResidual< TypeTag >::computeStorage ( Dune::FieldVector< LhsEval, numEq > & storage,
const ElementContext & elemCtx,
unsigned dofIdx,
unsigned timeIdx ) const
inline

Evaluate the amount all conservation quantities (e.g.

phase mass) within a finite sub-control volume.

◆ computeStorage() [2/2]

template<class TypeTag >
template<class LhsEval >
void Opm::FlashLocalResidual< TypeTag >::computeStorage ( Dune::FieldVector< LhsEval, numEq > & storage,
const ElementContext & elemCtx,
unsigned dofIdx,
unsigned timeIdx ) const
inline

Evaluate the amount all conservation quantities (e.g.

phase mass) within a finite sub-control volume.


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