Element-wise calculation of the residual and its derivatives for a two-phase, incompressible test problem. More...
#include <dumux/porousmediumflow/2p/incompressiblelocalresidual.hh>
Element-wise calculation of the residual and its derivatives for a two-phase, incompressible test problem.
Public Member Functions | |
template<class PartialDerivativeMatrix > | |
void | addStorageDerivatives (PartialDerivativeMatrix &partialDerivatives, const Problem &problem, const Element &element, const FVElementGeometry &fvGeometry, const VolumeVariables &curVolVars, const SubControlVolume &scv) const |
Adds storage derivatives for wetting and nonwetting phase. More... | |
template<class PartialDerivativeMatrix > | |
void | addSourceDerivatives (PartialDerivativeMatrix &partialDerivatives, const Problem &problem, const Element &element, const FVElementGeometry &fvGeometry, const VolumeVariables &curVolVars, const SubControlVolume &scv) const |
Adds source derivatives for wetting and nonwetting phase. More... | |
template<class PartialDerivativeMatrices , class T = TypeTag> | |
std::enable_if_t< GetPropType< T, Properties::GridGeometry >::discMethod==DiscretizationMethod::cctpfa, void > | addFluxDerivatives (PartialDerivativeMatrices &derivativeMatrices, const Problem &problem, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &curElemVolVars, const ElementFluxVariablesCache &elemFluxVarsCache, const SubControlVolumeFace &scvf) const |
Adds flux derivatives for wetting and nonwetting phase for cell-centered FVM using TPFA. More... | |
template<class JacobianMatrix , class T = TypeTag> | |
std::enable_if_t< GetPropType< T, Properties::GridGeometry >::discMethod==DiscretizationMethod::box, void > | addFluxDerivatives (JacobianMatrix &A, const Problem &problem, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &curElemVolVars, const ElementFluxVariablesCache &elemFluxVarsCache, const SubControlVolumeFace &scvf) const |
Adds flux derivatives for wetting and nonwetting phase for box method. More... | |
template<class PartialDerivativeMatrices > | |
void | addCCDirichletFluxDerivatives (PartialDerivativeMatrices &derivativeMatrices, const Problem &problem, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &curElemVolVars, const ElementFluxVariablesCache &elemFluxVarsCache, const SubControlVolumeFace &scvf) const |
Adds cell-centered Dirichlet flux derivatives for wetting and nonwetting phase. More... | |
template<class PartialDerivativeMatrices > | |
void | addRobinFluxDerivatives (PartialDerivativeMatrices &derivativeMatrices, const Problem &problem, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &curElemVolVars, const ElementFluxVariablesCache &elemFluxVarsCache, const SubControlVolumeFace &scvf) const |
Adds Robin flux derivatives for wetting and nonwetting phase. More... | |
NumEqVector | computeStorage (const Problem &problem, const SubControlVolume &scv, const VolumeVariables &volVars) const |
Evaluatex the rate of change of all conservation quantites (e.g. phase mass) within a sub-control volume of a finite volume element for the immiscible models. More... | |
NumEqVector | computeFlux (const Problem &problem, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const SubControlVolumeFace &scvf, const ElementFluxVariablesCache &elemFluxVarsCache) const |
Evaluatex the mass flux over a face of a sub control volume. More... | |
|
inline |
Adds cell-centered Dirichlet flux derivatives for wetting and nonwetting phase.
Compute derivatives for the wetting and the nonwetting phase flux with respect to p_w and S_n.
derivativeMatrices | The matrices containing the derivatives |
problem | The problem |
element | The element |
fvGeometry | The finite volume element geometry |
curElemVolVars | The current element volume variables |
elemFluxVarsCache | The element flux variables cache |
scvf | The sub control volume face |
|
inline |
Adds flux derivatives for wetting and nonwetting phase for box method.
Compute derivatives for the wetting and the nonwetting phase flux with respect to p_w and S_n.
A | The Jacobian Matrix |
problem | The problem |
element | The element |
fvGeometry | The finite volume element geometry |
curElemVolVars | The current element volume variables |
elemFluxVarsCache | The element flux variables cache |
scvf | The sub control volume face |
|
inline |
Adds flux derivatives for wetting and nonwetting phase for cell-centered FVM using TPFA.
Compute derivatives for the wetting and the nonwetting phase flux with respect to p_w and S_n.
derivativeMatrices | The partial derivatives |
problem | The problem |
element | The element |
fvGeometry | The finite volume element geometry |
curElemVolVars | The current element volume variables |
elemFluxVarsCache | The element flux variables cache |
scvf | The sub control volume face |
|
inline |
Adds Robin flux derivatives for wetting and nonwetting phase.
derivativeMatrices | The matrices containing the derivatives |
problem | The problem |
element | The element |
fvGeometry | The finite volume element geometry |
curElemVolVars | The current element volume variables |
elemFluxVarsCache | The element flux variables cache |
scvf | The sub control volume face |
|
inline |
Adds source derivatives for wetting and nonwetting phase.
partialDerivatives | The partial derivatives |
problem | The problem |
element | The element |
fvGeometry | The finite volume element geometry |
curVolVars | The current volume variables |
scv | The sub control volume |
|
inline |
Adds storage derivatives for wetting and nonwetting phase.
Compute storage derivatives for the wetting and the nonwetting phase with respect to p_w and S_n.
partialDerivatives | The partial derivatives |
problem | The problem |
element | The element |
fvGeometry | The finite volume element geometry |
curVolVars | The current volume variables |
scv | The sub control volume |
|
inlineinherited |
Evaluatex the mass flux over a face of a sub control volume.
problem | The problem |
element | The element |
fvGeometry | The finite volume geometry context |
elemVolVars | The volume variables for all flux stencil elements |
scvf | The sub control volume face to compute the flux on |
elemFluxVarsCache | The cache related to flux computation |
Add advective phase energy fluxes. For isothermal model the contribution is zero.
Add diffusive energy fluxes. For isothermal model the contribution is zero.
|
inlineinherited |
Evaluatex the rate of change of all conservation quantites (e.g. phase mass) within a sub-control volume of a finite volume element for the immiscible models.
problem | TODO docme! |
scv | The sub control volume |
volVars | The current or previous volVars |
The energy storage in the fluid phase with index phaseIdx
The energy storage in the solid matrix