version 3.10.0
Loading...
Searching...
No Matches
Dumux::SubDomainStaggeredLocalAssemblerImplicitBase< id, TypeTag, Assembler, Implementation > Class Template Reference

A base class for all implicit multidomain local assemblers (staggered). More...

#include <dumux/multidomain/subdomainstaggeredlocalassembler.hh>

Inheritance diagram for Dumux::SubDomainStaggeredLocalAssemblerImplicitBase< id, TypeTag, Assembler, Implementation >:

Description

template<std::size_t id, class TypeTag, class Assembler, class Implementation>
class Dumux::SubDomainStaggeredLocalAssemblerImplicitBase< id, TypeTag, Assembler, Implementation >
Template Parameters
idthe id of the sub domain
TypeTagthe TypeTag
Assemblerthe assembler type
Implementationthe actual assembler implementation

Public Types

using LocalResidual
using ElementResidualVector

Public Member Functions

void bindLocalViews ()
template<class JacobianMatrixRow, class SubResidual, class GridVariablesTuple>
void assembleJacobianAndResidual (JacobianMatrixRow &jacRow, SubResidual &res, GridVariablesTuple &gridVariables)
 Computes the derivatives with respect to the given element and adds them to the global matrix. The element residual is written into the right hand side.
template<class SubResidual>
void assembleResidual (SubResidual &res)
 Assemble the residual only.
CellCenterResidualValue evalLocalResidualForCellCenter () const
 Convenience function to evaluate the complete local residual for the current element. Automatically chooses the the appropriate element volume variables.
CellCenterResidualValue evalLocalResidualForCellCenter (const ElementVolumeVariables &elemVolVars, const ElementFaceVariables &elemFaceVars) const
 Evaluates the complete local residual for the current cell center.
CellCenterResidualValue evalLocalFluxAndSourceResidualForCellCenter () 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 and face variables.
CellCenterResidualValue evalLocalFluxAndSourceResidualForCellCenter (const ElementVolumeVariables &elemVolVars, const ElementFaceVariables &elemFaceVars) const
 Evaluates the flux and source terms (i.e, the terms without a time derivative) of the local residual for the current element.
CellCenterResidualValue evalLocalStorageResidualForCellCenter () 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 and face variables.
FaceResidualValue evalLocalResidualForFace (const SubControlVolumeFace &scvf) const
 Convenience function to evaluate the local residual for the current face. Automatically chooses the the appropriate element volume and face variables.
FaceResidualValue evalLocalResidualForFace (const SubControlVolumeFace &scvf, const ElementVolumeVariables &elemVolVars, const ElementFaceVariables &elemFaceVars) const
 Evaluates the complete local residual for the current face.
FaceResidualValue evalLocalFluxAndSourceResidualForFace (const SubControlVolumeFace &scvf) 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 and face variables.
FaceResidualValue evalLocalFluxAndSourceResidualForFace (const SubControlVolumeFace &scvf, const ElementVolumeVariables &elemVolVars, const ElementFaceVariables &elemFaceVars) const
 Evaluates the flux and source terms (i.e, the terms without a time derivative) of the local residual for the current face.
FaceResidualValue evalLocalStorageResidualForFace (const SubControlVolumeFace &scvf) const
 Convenience function to evaluate storage term (i.e, the term with a time derivative) of the local residual for the current face. Automatically chooses the the appropriate element volume and face variables.
const Problem & problem () const
ElementFaceVariables & curElemFaceVars ()
 The current element volume variables.
const ElementFaceVariables & curElemFaceVars () const
 The current element volume variables.
ElementFaceVariables & prevElemFaceVars ()
 The element volume variables of the provious time step.
const ElementFaceVariables & prevElemFaceVars () const
 The element volume variables of the provious time step.
CouplingManager & couplingManager ()
ElementResidualVector evalLocalResidual () const
 Convenience function to evaluate the complete local residual for the current element. Automatically chooses the the appropriate element volume variables.
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.
ElementResidualVector evalLocalStorageResidual () 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.
void enforceInternalDirichletConstraints (const ApplyFunction &applyDirichlet)
 Enforces Dirichlet constraints if enabled in the problem.
const Assembler & assembler () const
 The assembler.
const Element & element () const
 The current element.
bool elementIsGhost () const
 Returns if element is a ghost entity.
const SolutionVector & curSol () const
 The current solution.
FVElementGeometry & fvGeometry ()
 The global finite volume geometry.
ElementVolumeVariables & curElemVolVars ()
 The current element volume variables.
ElementVolumeVariables & prevElemVolVars ()
 The element volume variables of the provious time step.
ElementFluxVariablesCache & elemFluxVarsCache ()
 The element flux variables cache.
LocalResiduallocalResidual ()
 The local residual for the current element.
ElementBoundaryTypes & elemBcTypes ()
 The element's boundary types.

Static Public Member Functions

static constexpr bool isImplicit ()
 Returns true if the assembler considers implicit assembly.

Static Public Attributes

static constexpr auto cellCenterId = GridGeometry::cellCenterIdx()
static constexpr auto faceId = GridGeometry::faceIdx()
static constexpr auto numEqCellCenter = CellCenterResidualValue::dimension
static constexpr auto faceOffset = numEqCellCenter

Protected Member Functions

Implementation & asImp_ ()
VolumeVariables & getVolVarAccess (GridVolumeVariables &gridVolVars, ElementVolumeVariables &elemVolVars, const SubControlVolume &scv)

Member Typedef Documentation

◆ ElementResidualVector

using Dumux::FVLocalAssemblerBase< TypeTag, Assembler, Implementation, useImplicitAssembly >::ElementResidualVector
inherited

◆ LocalResidual

using Dumux::FVLocalAssemblerBase< TypeTag, Assembler, Implementation, useImplicitAssembly >::LocalResidual
inherited

Member Function Documentation

◆ asImp_()

Implementation & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, Implementation, useImplicitAssembly >::asImp_ ( )
inlineprotectedinherited

◆ assembleJacobianAndResidual()

template<std::size_t id, class TypeTag, class Assembler, class Implementation, bool isImplicit = true>
template<class JacobianMatrixRow, class SubResidual, class GridVariablesTuple>
void Dumux::SubDomainStaggeredLocalAssemblerBase< id, TypeTag, Assembler, Implementation, isImplicit >::assembleJacobianAndResidual ( JacobianMatrixRow & jacRow,
SubResidual & res,
GridVariablesTuple & gridVariables )
inlineinherited

◆ assembler()

const Assembler & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, Implementation, useImplicitAssembly >::assembler ( ) const
inlineinherited

◆ assembleResidual()

template<std::size_t id, class TypeTag, class Assembler, class Implementation, bool isImplicit = true>
template<class SubResidual>
void Dumux::SubDomainStaggeredLocalAssemblerBase< id, TypeTag, Assembler, Implementation, isImplicit >::assembleResidual ( SubResidual & res)
inlineinherited

◆ bindLocalViews()

template<std::size_t id, class TypeTag, class Assembler, class Implementation>
void Dumux::SubDomainStaggeredLocalAssemblerImplicitBase< id, TypeTag, Assembler, Implementation >::bindLocalViews ( )
inline

◆ couplingManager()

template<std::size_t id, class TypeTag, class Assembler, class Implementation, bool isImplicit = true>
CouplingManager & Dumux::SubDomainStaggeredLocalAssemblerBase< id, TypeTag, Assembler, Implementation, isImplicit >::couplingManager ( )
inlineinherited

◆ curElemFaceVars() [1/2]

template<std::size_t id, class TypeTag, class Assembler, class Implementation, bool isImplicit = true>
ElementFaceVariables & Dumux::SubDomainStaggeredLocalAssemblerBase< id, TypeTag, Assembler, Implementation, isImplicit >::curElemFaceVars ( )
inlineinherited

◆ curElemFaceVars() [2/2]

template<std::size_t id, class TypeTag, class Assembler, class Implementation, bool isImplicit = true>
const ElementFaceVariables & Dumux::SubDomainStaggeredLocalAssemblerBase< id, TypeTag, Assembler, Implementation, isImplicit >::curElemFaceVars ( ) const
inlineinherited

◆ curElemVolVars()

ElementVolumeVariables & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, Implementation, useImplicitAssembly >::curElemVolVars ( )
inlineinherited

◆ curSol()

const SolutionVector & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, Implementation, useImplicitAssembly >::curSol ( ) const
inlineinherited

◆ elemBcTypes()

ElementBoundaryTypes & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, Implementation, useImplicitAssembly >::elemBcTypes ( )
inlineinherited

◆ element()

const Element & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, Implementation, useImplicitAssembly >::element ( ) const
inlineinherited

◆ elementIsGhost()

bool Dumux::FVLocalAssemblerBase< TypeTag, Assembler, Implementation, useImplicitAssembly >::elementIsGhost ( ) const
inlineinherited

◆ elemFluxVarsCache()

ElementFluxVariablesCache & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, Implementation, useImplicitAssembly >::elemFluxVarsCache ( )
inlineinherited

◆ enforceInternalDirichletConstraints()

void Dumux::FVLocalAssemblerBase< TypeTag, Assembler, Implementation, useImplicitAssembly >::enforceInternalDirichletConstraints ( const ApplyFunction & applyDirichlet)
inlineinherited

◆ evalLocalFluxAndSourceResidual()

ElementResidualVector Dumux::FVLocalAssemblerBase< TypeTag, Assembler, Implementation, useImplicitAssembly >::evalLocalFluxAndSourceResidual ( ) const
inlineinherited

◆ evalLocalFluxAndSourceResidualForCellCenter() [1/2]

template<std::size_t id, class TypeTag, class Assembler, class Implementation, bool isImplicit = true>
CellCenterResidualValue Dumux::SubDomainStaggeredLocalAssemblerBase< id, TypeTag, Assembler, Implementation, isImplicit >::evalLocalFluxAndSourceResidualForCellCenter ( ) const
inlineinherited

◆ evalLocalFluxAndSourceResidualForCellCenter() [2/2]

template<std::size_t id, class TypeTag, class Assembler, class Implementation, bool isImplicit = true>
CellCenterResidualValue Dumux::SubDomainStaggeredLocalAssemblerBase< id, TypeTag, Assembler, Implementation, isImplicit >::evalLocalFluxAndSourceResidualForCellCenter ( const ElementVolumeVariables & elemVolVars,
const ElementFaceVariables & elemFaceVars ) const
inlineinherited
Parameters
elemVolVarsThe element volume variables
elemFaceVarsThe element face variables

◆ evalLocalFluxAndSourceResidualForFace() [1/2]

template<std::size_t id, class TypeTag, class Assembler, class Implementation, bool isImplicit = true>
FaceResidualValue Dumux::SubDomainStaggeredLocalAssemblerBase< id, TypeTag, Assembler, Implementation, isImplicit >::evalLocalFluxAndSourceResidualForFace ( const SubControlVolumeFace & scvf) const
inlineinherited
Parameters
scvfThe sub control volume face

◆ evalLocalFluxAndSourceResidualForFace() [2/2]

template<std::size_t id, class TypeTag, class Assembler, class Implementation, bool isImplicit = true>
FaceResidualValue Dumux::SubDomainStaggeredLocalAssemblerBase< id, TypeTag, Assembler, Implementation, isImplicit >::evalLocalFluxAndSourceResidualForFace ( const SubControlVolumeFace & scvf,
const ElementVolumeVariables & elemVolVars,
const ElementFaceVariables & elemFaceVars ) const
inlineinherited
Parameters
scvfThe sub control volume face
elemVolVarsThe element volume variables
elemFaceVarsThe element face variables

◆ evalLocalResidual()

ElementResidualVector Dumux::FVLocalAssemblerBase< TypeTag, Assembler, Implementation, useImplicitAssembly >::evalLocalResidual ( ) const
inlineinherited

◆ evalLocalResidualForCellCenter() [1/2]

template<std::size_t id, class TypeTag, class Assembler, class Implementation, bool isImplicit = true>
CellCenterResidualValue Dumux::SubDomainStaggeredLocalAssemblerBase< id, TypeTag, Assembler, Implementation, isImplicit >::evalLocalResidualForCellCenter ( ) const
inlineinherited

◆ evalLocalResidualForCellCenter() [2/2]

template<std::size_t id, class TypeTag, class Assembler, class Implementation, bool isImplicit = true>
CellCenterResidualValue Dumux::SubDomainStaggeredLocalAssemblerBase< id, TypeTag, Assembler, Implementation, isImplicit >::evalLocalResidualForCellCenter ( const ElementVolumeVariables & elemVolVars,
const ElementFaceVariables & elemFaceVars ) const
inlineinherited
Parameters
elemVolVarsThe element volume variables
elemFaceVarsThe element face variables

◆ evalLocalResidualForFace() [1/2]

template<std::size_t id, class TypeTag, class Assembler, class Implementation, bool isImplicit = true>
FaceResidualValue Dumux::SubDomainStaggeredLocalAssemblerBase< id, TypeTag, Assembler, Implementation, isImplicit >::evalLocalResidualForFace ( const SubControlVolumeFace & scvf) const
inlineinherited
Parameters
scvfThe sub control volume face

◆ evalLocalResidualForFace() [2/2]

template<std::size_t id, class TypeTag, class Assembler, class Implementation, bool isImplicit = true>
FaceResidualValue Dumux::SubDomainStaggeredLocalAssemblerBase< id, TypeTag, Assembler, Implementation, isImplicit >::evalLocalResidualForFace ( const SubControlVolumeFace & scvf,
const ElementVolumeVariables & elemVolVars,
const ElementFaceVariables & elemFaceVars ) const
inlineinherited
Parameters
scvfThe sub control volume face
elemVolVarsThe element volume variables
elemFaceVarsThe element face variables

◆ evalLocalStorageResidual()

ElementResidualVector Dumux::FVLocalAssemblerBase< TypeTag, Assembler, Implementation, useImplicitAssembly >::evalLocalStorageResidual ( ) const
inlineinherited

◆ evalLocalStorageResidualForCellCenter()

template<std::size_t id, class TypeTag, class Assembler, class Implementation, bool isImplicit = true>
CellCenterResidualValue Dumux::SubDomainStaggeredLocalAssemblerBase< id, TypeTag, Assembler, Implementation, isImplicit >::evalLocalStorageResidualForCellCenter ( ) const
inlineinherited

◆ evalLocalStorageResidualForFace()

template<std::size_t id, class TypeTag, class Assembler, class Implementation, bool isImplicit = true>
FaceResidualValue Dumux::SubDomainStaggeredLocalAssemblerBase< id, TypeTag, Assembler, Implementation, isImplicit >::evalLocalStorageResidualForFace ( const SubControlVolumeFace & scvf) const
inlineinherited
Parameters
scvfThe sub control volume face

◆ fvGeometry()

FVElementGeometry & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, Implementation, useImplicitAssembly >::fvGeometry ( )
inlineinherited

◆ getVolVarAccess()

VolumeVariables & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, Implementation, useImplicitAssembly >::getVolVarAccess ( GridVolumeVariables & gridVolVars,
ElementVolumeVariables & elemVolVars,
const SubControlVolume & scv )
inlineprotectedinherited

◆ isImplicit()

constexpr bool Dumux::FVLocalAssemblerBase< TypeTag, Assembler, Implementation, useImplicitAssembly >::isImplicit ( )
inlinestaticconstexprinherited

◆ localResidual()

LocalResidual & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, Implementation, useImplicitAssembly >::localResidual ( )
inlineinherited

◆ prevElemFaceVars() [1/2]

template<std::size_t id, class TypeTag, class Assembler, class Implementation, bool isImplicit = true>
ElementFaceVariables & Dumux::SubDomainStaggeredLocalAssemblerBase< id, TypeTag, Assembler, Implementation, isImplicit >::prevElemFaceVars ( )
inlineinherited

◆ prevElemFaceVars() [2/2]

template<std::size_t id, class TypeTag, class Assembler, class Implementation, bool isImplicit = true>
const ElementFaceVariables & Dumux::SubDomainStaggeredLocalAssemblerBase< id, TypeTag, Assembler, Implementation, isImplicit >::prevElemFaceVars ( ) const
inlineinherited

◆ prevElemVolVars()

ElementVolumeVariables & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, Implementation, useImplicitAssembly >::prevElemVolVars ( )
inlineinherited

◆ problem()

template<std::size_t id, class TypeTag, class Assembler, class Implementation, bool isImplicit = true>
const Problem & Dumux::SubDomainStaggeredLocalAssemblerBase< id, TypeTag, Assembler, Implementation, isImplicit >::problem ( ) const
inlineinherited

Member Data Documentation

◆ cellCenterId

template<std::size_t id, class TypeTag, class Assembler, class Implementation, bool isImplicit = true>
auto Dumux::SubDomainStaggeredLocalAssemblerBase< id, TypeTag, Assembler, Implementation, isImplicit >::cellCenterId = GridGeometry::cellCenterIdx()
staticconstexprinherited

◆ faceId

template<std::size_t id, class TypeTag, class Assembler, class Implementation, bool isImplicit = true>
auto Dumux::SubDomainStaggeredLocalAssemblerBase< id, TypeTag, Assembler, Implementation, isImplicit >::faceId = GridGeometry::faceIdx()
staticconstexprinherited

◆ faceOffset

template<std::size_t id, class TypeTag, class Assembler, class Implementation, bool isImplicit = true>
auto Dumux::SubDomainStaggeredLocalAssemblerBase< id, TypeTag, Assembler, Implementation, isImplicit >::faceOffset = numEqCellCenter
staticconstexprinherited

◆ numEqCellCenter

template<std::size_t id, class TypeTag, class Assembler, class Implementation, bool isImplicit = true>
auto Dumux::SubDomainStaggeredLocalAssemblerBase< id, TypeTag, Assembler, Implementation, isImplicit >::numEqCellCenter = CellCenterResidualValue::dimension
staticconstexprinherited

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