version 3.9-dev
Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation > Class Template Reference

A base class for all local assemblers. More...

#include <dumux/experimental/assembly/fvlocalassemblerbase.hh>

Inheritance diagram for Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >:

Description

template<class TypeTag, class Assembler, class Implementation>
class Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >
Template Parameters
TypeTagThe TypeTag
AssemblerThe assembler type
ImplementationThe assembler implementation

Public Types

using LocalResidual = std::decay_t< decltype(std::declval< Assembler >().localResidual())>
 
using ElementResidualVector = typename LocalResidual::ElementResidualVector
 

Public Member Functions

 FVLocalAssemblerBase (const Assembler &assembler, const Element &element, const SolutionVector &curSol)
 The constructor. Delegates to the general constructor. More...
 
 FVLocalAssemblerBase (const Assembler &assembler, const Element &element, const SolutionVector &curSol, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &curElemVolVars, const ElementFluxVariablesCache &elemFluxVarsCache, const LocalResidual &localResidual, const bool elementIsGhost, const bool isImplicit)
 The constructor. General version explicitly expecting each argument. More...
 
ElementResidualVector evalLocalResidual () const
 Convenience function to evaluate the complete local residual for the current element. Automatically chooses the the appropriate element volume variables. More...
 
ElementResidualVector evalLocalResidual (const ElementVolumeVariables &elemVolVars) const
 Evaluates the complete local residual for the current element. More...
 
ElementResidualVector evalLocalFluxAndSourceResidual () const
 Convenience function to evaluate the flux and source terms (i.e, the terms without a time derivative) of the local residual for the current element. Automatically chooses the the appropriate element volume variables. More...
 
ElementResidualVector evalLocalFluxAndSourceResidual (const ElementVolumeVariables &elemVolVars) const
 Evaluates the flux and source terms (i.e, the terms without a time derivative) of the local residual for the current element. More...
 
ElementResidualVector evalStorage () const
 Convenience function to evaluate storage term (i.e, the term with a time derivative) of the local residual for the current element. Automatically chooses the the appropriate element volume variables. More...
 
void bindLocalViews ()
 Convenience function bind and prepare all relevant variables required for the evaluation of the local residual. More...
 
template<typename ApplyFunction , class P = Problem, typename std::enable_if_t< P::enableInternalDirichletConstraints(), int > = 0>
void enforceInternalDirichletConstraints (const ApplyFunction &applyDirichlet)
 Enforces Dirichlet constraints if enabled in the problem. More...
 
template<typename ApplyFunction , class P = Problem, typename std::enable_if_t<!P::enableInternalDirichletConstraints(), int > = 0>
void enforceInternalDirichletConstraints (const ApplyFunction &applyDirichlet)
 
const Problem & problem () const
 The problem. More...
 
const Assembler & assembler () const
 The assembler. More...
 
const Element & element () const
 The current element. More...
 
bool elementIsGhost () const
 Returns if element is a ghost entity. More...
 
const SolutionVector & curSol () const
 The current solution. More...
 
FVElementGeometry & fvGeometry ()
 The global finite volume geometry. More...
 
ElementVolumeVariables & curElemVolVars ()
 The current element volume variables. More...
 
ElementFluxVariablesCache & elemFluxVarsCache ()
 The element flux variables cache. More...
 
LocalResiduallocalResidual ()
 The local residual for the current element. More...
 
ElementBoundaryTypes & elemBcTypes ()
 The element's boundary types. More...
 
const FVElementGeometry & fvGeometry () const
 The finite volume geometry. More...
 
const ElementVolumeVariables & curElemVolVars () const
 The current element volume variables. More...
 
const ElementFluxVariablesCache & elemFluxVarsCache () const
 The element flux variables cache. More...
 
const ElementBoundaryTypes & elemBcTypes () const
 The element's boundary types. More...
 
const LocalResiduallocalResidual () const
 The local residual for the current element. More...
 
bool isImplicit () const
 If the time stepping scheme is implicit. More...
 

Protected Member Functions

Implementation & asImp_ ()
 
const Implementation & asImp_ () const
 
template<class T = TypeTag, typename std::enable_if_t<!GetPropType< T, Properties::GridVariables >::GridVolumeVariables::cachingEnabled, int > = 0>
VolumeVariables & getVolVarAccess (GridVolumeVariables &gridVolVars, ElementVolumeVariables &elemVolVars, const SubControlVolume &scv)
 
template<class T = TypeTag, typename std::enable_if_t< GetPropType< T, Properties::GridVariables >::GridVolumeVariables::cachingEnabled, int > = 0>
VolumeVariables & getVolVarAccess (GridVolumeVariables &gridVolVars, ElementVolumeVariables &elemVolVars, const SubControlVolume &scv)
 

Member Typedef Documentation

◆ ElementResidualVector

template<class TypeTag , class Assembler , class Implementation >
using Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::ElementResidualVector = typename LocalResidual::ElementResidualVector

◆ LocalResidual

template<class TypeTag , class Assembler , class Implementation >
using Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::LocalResidual = std::decay_t<decltype(std::declval<Assembler>().localResidual())>

Constructor & Destructor Documentation

◆ FVLocalAssemblerBase() [1/2]

template<class TypeTag , class Assembler , class Implementation >
Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::FVLocalAssemblerBase ( const Assembler &  assembler,
const Element &  element,
const SolutionVector &  curSol 
)
inlineexplicit

◆ FVLocalAssemblerBase() [2/2]

template<class TypeTag , class Assembler , class Implementation >
Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::FVLocalAssemblerBase ( const Assembler &  assembler,
const Element &  element,
const SolutionVector &  curSol,
const FVElementGeometry &  fvGeometry,
const ElementVolumeVariables &  curElemVolVars,
const ElementFluxVariablesCache &  elemFluxVarsCache,
const LocalResidual localResidual,
const bool  elementIsGhost,
const bool  isImplicit 
)
inlineexplicit

Member Function Documentation

◆ asImp_() [1/2]

template<class TypeTag , class Assembler , class Implementation >
Implementation & Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::asImp_ ( )
inlineprotected

◆ asImp_() [2/2]

template<class TypeTag , class Assembler , class Implementation >
const Implementation & Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::asImp_ ( ) const
inlineprotected

◆ assembler()

template<class TypeTag , class Assembler , class Implementation >
const Assembler & Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::assembler ( ) const
inline

◆ bindLocalViews()

template<class TypeTag , class Assembler , class Implementation >
void Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::bindLocalViews ( )
inline

◆ curElemVolVars() [1/2]

template<class TypeTag , class Assembler , class Implementation >
ElementVolumeVariables & Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::curElemVolVars ( )
inline

◆ curElemVolVars() [2/2]

template<class TypeTag , class Assembler , class Implementation >
const ElementVolumeVariables & Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::curElemVolVars ( ) const
inline

◆ curSol()

template<class TypeTag , class Assembler , class Implementation >
const SolutionVector & Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::curSol ( ) const
inline

◆ elemBcTypes() [1/2]

template<class TypeTag , class Assembler , class Implementation >
ElementBoundaryTypes & Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::elemBcTypes ( )
inline

◆ elemBcTypes() [2/2]

template<class TypeTag , class Assembler , class Implementation >
const ElementBoundaryTypes & Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::elemBcTypes ( ) const
inline

◆ element()

template<class TypeTag , class Assembler , class Implementation >
const Element & Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::element ( ) const
inline

◆ elementIsGhost()

template<class TypeTag , class Assembler , class Implementation >
bool Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::elementIsGhost ( ) const
inline

◆ elemFluxVarsCache() [1/2]

template<class TypeTag , class Assembler , class Implementation >
ElementFluxVariablesCache & Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::elemFluxVarsCache ( )
inline

◆ elemFluxVarsCache() [2/2]

template<class TypeTag , class Assembler , class Implementation >
const ElementFluxVariablesCache & Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::elemFluxVarsCache ( ) const
inline

◆ enforceInternalDirichletConstraints() [1/2]

template<class TypeTag , class Assembler , class Implementation >
template<typename ApplyFunction , class P = Problem, typename std::enable_if_t< P::enableInternalDirichletConstraints(), int > = 0>
void Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::enforceInternalDirichletConstraints ( const ApplyFunction &  applyDirichlet)
inline

◆ enforceInternalDirichletConstraints() [2/2]

template<class TypeTag , class Assembler , class Implementation >
template<typename ApplyFunction , class P = Problem, typename std::enable_if_t<!P::enableInternalDirichletConstraints(), int > = 0>
void Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::enforceInternalDirichletConstraints ( const ApplyFunction &  applyDirichlet)
inline

◆ evalLocalFluxAndSourceResidual() [1/2]

template<class TypeTag , class Assembler , class Implementation >
ElementResidualVector Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::evalLocalFluxAndSourceResidual ( ) const
inline

◆ evalLocalFluxAndSourceResidual() [2/2]

template<class TypeTag , class Assembler , class Implementation >
ElementResidualVector Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::evalLocalFluxAndSourceResidual ( const ElementVolumeVariables &  elemVolVars) const
inline
Parameters
elemVolVarsThe element volume variables

◆ evalLocalResidual() [1/2]

template<class TypeTag , class Assembler , class Implementation >
ElementResidualVector Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::evalLocalResidual ( ) const
inline

◆ evalLocalResidual() [2/2]

template<class TypeTag , class Assembler , class Implementation >
ElementResidualVector Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::evalLocalResidual ( const ElementVolumeVariables &  elemVolVars) const
inline
Parameters
elemVolVarsThe element volume variables

◆ evalStorage()

template<class TypeTag , class Assembler , class Implementation >
ElementResidualVector Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::evalStorage ( ) const
inline

◆ fvGeometry() [1/2]

template<class TypeTag , class Assembler , class Implementation >
FVElementGeometry & Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::fvGeometry ( )
inline

◆ fvGeometry() [2/2]

template<class TypeTag , class Assembler , class Implementation >
const FVElementGeometry & Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::fvGeometry ( ) const
inline

◆ getVolVarAccess() [1/2]

template<class TypeTag , class Assembler , class Implementation >
template<class T = TypeTag, typename std::enable_if_t<!GetPropType< T, Properties::GridVariables >::GridVolumeVariables::cachingEnabled, int > = 0>
VolumeVariables & Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::getVolVarAccess ( GridVolumeVariables &  gridVolVars,
ElementVolumeVariables &  elemVolVars,
const SubControlVolume &  scv 
)
inlineprotected

◆ getVolVarAccess() [2/2]

template<class TypeTag , class Assembler , class Implementation >
template<class T = TypeTag, typename std::enable_if_t< GetPropType< T, Properties::GridVariables >::GridVolumeVariables::cachingEnabled, int > = 0>
VolumeVariables & Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::getVolVarAccess ( GridVolumeVariables &  gridVolVars,
ElementVolumeVariables &  elemVolVars,
const SubControlVolume &  scv 
)
inlineprotected

◆ isImplicit()

template<class TypeTag , class Assembler , class Implementation >
bool Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::isImplicit ( ) const
inline

◆ localResidual() [1/2]

template<class TypeTag , class Assembler , class Implementation >
LocalResidual & Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::localResidual ( )
inline

◆ localResidual() [2/2]

template<class TypeTag , class Assembler , class Implementation >
const LocalResidual & Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::localResidual ( ) const
inline

◆ problem()

template<class TypeTag , class Assembler , class Implementation >
const Problem & Dumux::Experimental::FVLocalAssemblerBase< TypeTag, Assembler, Implementation >::problem ( ) const
inline

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