Element-wise caculation of the residual matrix for models based on a finite volume spatial discretization.
More...
#include <fvbaselocalresidual.hh>
|
| FvBaseLocalResidual () |
|
| ~FvBaseLocalResidual () |
|
const LocalBlockVector & | residual () const |
| Return the result of the eval() call using internal storage. More...
|
|
const VectorBlock & | residual (int dofIdx) const |
| Return the result of the eval() call using internal storage. More...
|
|
const LocalBlockVector & | storageTerm () const |
| Return the storage term calculated using the last call to eval() using internal storage. More...
|
|
const VectorBlock & | storageTerm (int dofIdx) const |
| Return the storage term calculated using the last call to eval() using internal storage. More...
|
|
void | eval (const Problem &problem, const Element &element) |
| Compute the local residual, i.e. the deviation of the conservation equations from zero and store the results internally. More...
|
|
void | eval (const ElementContext &elemCtx) |
| Compute the local residual, i.e. the deviation of the conservation equations from zero and store the results internally. More...
|
|
void | eval (LocalBlockVector &residual, LocalBlockVector &storage, const ElementContext &elemCtx) const |
| Compute the local residual, i.e. the deviation of the conservation equations from zero. More...
|
|
void | evalStorage (const ElementContext &elemCtx, int timeIdx) |
| Calculate the amount of all conservation quantities stored in all element's primary sub-control volumes for a given history index. More...
|
|
void | evalStorage (LocalBlockVector &storage, const ElementContext &elemCtx, int timeIdx) const |
| Calculate the amount of all conservation quantities stored in all element's sub-control volumes for a given history index. More...
|
|
void | evalFluxes (LocalBlockVector &residual, const ElementContext &elemCtx, int timeIdx) const |
| Add the flux term to a local residual. More...
|
|
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 | computeSource (RateVector &source, const ElementContext &elemCtx, int dofIdx, int timeIdx) const |
| Calculate the source term of the equation. More...
|
|
|
void | evalBoundary_ (LocalBlockVector &residual, const ElementContext &elemCtx, int timeIdx) const |
| Evaluate the boundary conditions of an element. More...
|
|
void | evalBoundarySegment_ (LocalBlockVector &residual, const BoundaryContext &boundaryCtx, int boundaryFaceIdx, int timeIdx) const |
| Evaluate all boundary conditions for a single sub-control volume face to the local residual. More...
|
|
void | evalConstraints_ (LocalBlockVector &residual, LocalBlockVector &storage, const ElementContext &elemCtx, int timeIdx) const |
| Set the values of the constraint volumes of the current element. More...
|
|
void | evalVolumeTerms_ (LocalBlockVector &residual, LocalBlockVector &storage, const ElementContext &elemCtx) const |
| Add the change in the storage terms and the source term to the local residual of all sub-control volumes of the current element. More...
|
|
template<class TypeTag>
class Ewoms::FvBaseLocalResidual< TypeTag >
Element-wise caculation of the residual matrix for models based on a finite volume spatial discretization.
- Template Parameters
-
TypeTag | The type tag on which all required properties are defined. |
template<class TypeTag >
void Ewoms::FvBaseLocalResidual< 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
-
flux | Area-specific flux over the phase. |
template<class TypeTag >
void Ewoms::FvBaseLocalResidual< TypeTag >::computeSource |
( |
RateVector & |
source, |
|
|
const ElementContext & |
elemCtx, |
|
|
int |
dofIdx, |
|
|
int |
timeIdx |
|
) |
| const |
|
inline |
Calculate the source term of the equation.
- Parameters
-
source | The values of the source term. |
template<class TypeTag >
void Ewoms::FvBaseLocalResidual< 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
-
storage | Stores the total amount of each conserved quantity inside the domain. |
Compute the local residual, i.e. the deviation of the conservation equations from zero and store the results internally.
The results can be requested afterwards using the residual() and storageTerm() methods.
- Parameters
-
problem | The physical problem which ought to be solved. |
element | The DUNE element (i.e. the codim-0 entity) of interest. |
Compute the local residual, i.e. the deviation of the conservation equations from zero and store the results internally.
The results can be requested afterwards using the residual() and storageTerm() methods.
template<class TypeTag >
void Ewoms::FvBaseLocalResidual< TypeTag >::eval |
( |
LocalBlockVector & |
residual, |
|
|
LocalBlockVector & |
storage, |
|
|
const ElementContext & |
elemCtx |
|
) |
| const |
|
inline |
Compute the local residual, i.e. the deviation of the conservation equations from zero.
- Parameters
-
residual | Stores the residual of each conserved quantity. |
storage | Stores the total amount of each conserved quantity inside the domain. |
template<class TypeTag >
void Ewoms::FvBaseLocalResidual< TypeTag >::evalBoundary_ |
( |
LocalBlockVector & |
residual, |
|
|
const ElementContext & |
elemCtx, |
|
|
int |
timeIdx |
|
) |
| const |
|
inlineprotected |
template<class TypeTag >
void Ewoms::FvBaseLocalResidual< TypeTag >::evalBoundarySegment_ |
( |
LocalBlockVector & |
residual, |
|
|
const BoundaryContext & |
boundaryCtx, |
|
|
int |
boundaryFaceIdx, |
|
|
int |
timeIdx |
|
) |
| const |
|
inlineprotected |
template<class TypeTag >
void Ewoms::FvBaseLocalResidual< TypeTag >::evalConstraints_ |
( |
LocalBlockVector & |
residual, |
|
|
LocalBlockVector & |
storage, |
|
|
const ElementContext & |
elemCtx, |
|
|
int |
timeIdx |
|
) |
| const |
|
inlineprotected |
Set the values of the constraint volumes of the current element.
References GET_PROP_VALUE.
template<class TypeTag >
void Ewoms::FvBaseLocalResidual< TypeTag >::evalFluxes |
( |
LocalBlockVector & |
residual, |
|
|
const ElementContext & |
elemCtx, |
|
|
int |
timeIdx |
|
) |
| const |
|
inline |
Add the flux term to a local residual.
- Parameters
-
residual | Stores the residual of each conserved quantity. |
timeIdx | The index used by the time discretization. |
Calculate the amount of all conservation quantities stored in all element's primary sub-control volumes for a given history index.
This is used to figure out how much of each conservation quantity is inside the element.
- Parameters
-
timeIdx | The index used by the time discretization. |
template<class TypeTag >
void Ewoms::FvBaseLocalResidual< TypeTag >::evalStorage |
( |
LocalBlockVector & |
storage, |
|
|
const ElementContext & |
elemCtx, |
|
|
int |
timeIdx |
|
) |
| const |
|
inline |
Calculate the amount of all conservation quantities stored in all element's sub-control volumes for a given history index.
This is used to figure out how much of each conservation quantity is inside the element.
- Parameters
-
storage | Stores the total amount of each conserved quantity inside the domain. |
timeIdx | The index used by the time discretization. |
template<class TypeTag >
void Ewoms::FvBaseLocalResidual< TypeTag >::evalVolumeTerms_ |
( |
LocalBlockVector & |
residual, |
|
|
LocalBlockVector & |
storage, |
|
|
const ElementContext & |
elemCtx |
|
) |
| const |
|
inlineprotected |
Add the change in the storage terms and the source term to the local residual of all sub-control volumes of the current element.
Register all run-time parameters for the local residual.
Return the result of the eval() call using internal storage.
Return the result of the eval() call using internal storage.
Return the storage term calculated using the last call to eval() using internal storage.
Return the storage term calculated using the last call to eval() using internal storage.
The documentation for this class was generated from the following file:
|