27#ifndef DUMUX_FACETCOUPLING_CC_LOCAL_RESIDUAL_HH
28#define DUMUX_FACETCOUPLING_CC_LOCAL_RESIDUAL_HH
43template<
class TypeTag>
49 using ElementVolumeVariables =
typename GridVariables::GridVolumeVariables::LocalView;
50 using ElementFluxVariablesCache =
typename GridVariables::GridFluxVariablesCache::LocalView;
52 using GridGeometry =
typename GridVariables::GridGeometry;
53 using FVElementGeometry =
typename GridGeometry::LocalView;
54 using SubControlVolumeFace =
typename GridGeometry::SubControlVolumeFace;
55 using Element =
typename GridGeometry::GridView::template Codim<0>::Entity;
61 using ParentType::ParentType;
67 template<
class Problem >
69 const Element& element,
70 const FVElementGeometry& fvGeometry,
71 const ElementVolumeVariables& elemVolVars,
72 const ElementFluxVariablesCache& elemFluxVarsCache,
73 const SubControlVolumeFace& scvf)
const
76 if (
problem.couplingManager().isOnInteriorBoundary(element, scvf))
77 return this->
asImp().computeFlux(problem, element, fvGeometry, elemVolVars, scvf, elemFluxVarsCache);
Calculates the element-wise residual for cell-centered discretization schemes.
A helper to deduce a vector with the same size as numbers of equations.
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:46
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property
Definition: propertysystem.hh:150
Calculates the element-wise residual for the cell-centered discretization schemes.
Definition: cclocalresidual.hh:43
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:61
typename ParentType::ElementResidualVector ElementResidualVector
Definition: cclocalresidual.hh:57
The element-wise residual for finite volume schemes.
Definition: fvlocalresidual.hh:47
Implementation & asImp()
Definition: fvlocalresidual.hh:501
const Problem & problem() const
the problem
Definition: fvlocalresidual.hh:486
Calculates the element-wise residual for cell-centered discretization schemes in models where couplin...
Definition: multidomain/facet/cellcentered/localresidual.hh:45
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:68
Declares all properties used in Dumux.