15#ifndef DUMUX_FACETCOUPLING_CC_LOCAL_RESIDUAL_HH
16#define DUMUX_FACETCOUPLING_CC_LOCAL_RESIDUAL_HH
31template<
class TypeTag>
37 using ElementVolumeVariables =
typename GridVariables::GridVolumeVariables::LocalView;
38 using ElementFluxVariablesCache =
typename GridVariables::GridFluxVariablesCache::LocalView;
40 using GridGeometry =
typename GridVariables::GridGeometry;
41 using FVElementGeometry =
typename GridGeometry::LocalView;
42 using SubControlVolumeFace =
typename GridGeometry::SubControlVolumeFace;
43 using Element =
typename GridGeometry::GridView::template Codim<0>::Entity;
49 using ParentType::ParentType;
55 template<
class Problem >
57 const Element& element,
58 const FVElementGeometry& fvGeometry,
59 const ElementVolumeVariables& elemVolVars,
60 const ElementFluxVariablesCache& elemFluxVarsCache,
61 const SubControlVolumeFace& scvf)
const
64 if (
problem.couplingManager().isOnInteriorBoundary(element, scvf))
65 return this->
asImp().computeFlux(problem, element, fvGeometry, elemVolVars, scvf, elemFluxVarsCache);
Calculates the element-wise residual for cell-centered discretization schemes.
Calculates the element-wise residual for cell-centered discretization schemes in models where couplin...
Definition: multidomain/facet/cellcentered/localresidual.hh:33
NumEqVector evalFlux(const Problem &problem, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const ElementFluxVariablesCache &elemFluxVarsCache, const SubControlVolumeFace &scvf) const
Definition: multidomain/facet/cellcentered/localresidual.hh:56
Calculates the element-wise residual for the cell-centered discretization schemes.
Definition: cclocalresidual.hh:31
void evalFlux(ElementResidualVector &residual, const Problem &problem, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const ElementBoundaryTypes &elemBcTypes, const ElementFluxVariablesCache &elemFluxVarsCache, const SubControlVolumeFace &scvf) const
evaluate the flux residual for a sub control volume face and add to residual
Definition: cclocalresidual.hh:49
typename ParentType::ElementResidualVector ElementResidualVector
Definition: cclocalresidual.hh:45
The element-wise residual for finite volume schemes.
Definition: fvlocalresidual.hh:35
Implementation & asImp()
Definition: fvlocalresidual.hh:487
const Problem & problem() const
the problem
Definition: fvlocalresidual.hh:472
Defines all properties used in Dumux.
typename NumEqVectorTraits< PrimaryVariables >::type NumEqVector
A vector with the same size as numbers of equations This is the default implementation and has to be ...
Definition: numeqvector.hh:34
typename GetProp< TypeTag, Property >::type GetPropType
get the type alias defined in the property
Definition: propertysystem.hh:296
A helper to deduce a vector with the same size as numbers of equations.