version 3.10.0
Loading...
Searching...
No Matches
Dumux::SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false > Class Template Reference

Cell-centered scheme multidomain local assembler using numeric differentiation and explicit time discretization.

#include <dumux/multidomain/subdomaincclocalassembler.hh>

Inheritance diagram for Dumux::SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >:

Public Types

using LocalResidual
 the local residual type of this domain

Public Member Functions

template<class JacobianMatrixDiagBlock, class GridVariables>
LocalResidualValues assembleJacobianAndResidualImplInverse (JacobianMatrixDiagBlock &A, GridVariables &gridVariables)
 Computes the derivatives with respect to the given element and adds them to the global matrix.
template<std::size_t otherId, class JacobianBlock, class GridVariables>
void assembleJacobianCoupling (Dune::index_constant< otherId > domainJ, JacobianBlock &A, const LocalResidualValues &res, GridVariables &gridVariables)
 Computes the derivatives of the residual of the given element with respect to primary variables of domainJ and adds them to the global matrix.
void assembleJacobianAndResidual (JacobianMatrixRow &jacRow, SubResidualVector &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.
void assembleJacobianCoupling (Dune::index_constant< otherId > domainJ, JacRow &jacRow, const LocalResidualValues &res, GridVariables &gridVariables)
 Assemble the entries in a coupling block of the jacobian. There is no coupling block between a domain and itself.
void assembleResidual (SubResidualVector &res)
 Assemble the residual only.
ElementResidualVector evalLocalSourceResidual (const Element &element, const ElementVolumeVariables &elemVolVars) const
 Evaluates the local source term for an element and given element volume variables.
LocalResidualValues evalLocalStorageResidual () const
 Evaluates the storage terms within the element.
LocalResidualValues evalFluxResidual (const Element &neighbor, const SubControlVolumeFace &scvf) const
 Evaluates the fluxes depending on the chose time discretization scheme.
void bindLocalViews ()
 Prepares all local views necessary for local assembly.
const Problem & problem () const
 return reference to the underlying problem
CouplingManager & couplingManager ()
 return reference to the coupling manager
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.
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 domainId
 export the domain id of this sub-domain

Protected Member Functions

SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false > & asImp_ ()
VolumeVariables & getVolVarAccess (GridVolumeVariables &gridVolVars, ElementVolumeVariables &elemVolVars, const SubControlVolume &scv)

Member Typedef Documentation

◆ LocalResidual

using Dumux::SubDomainCCLocalAssemblerBase< id, TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, implicit >::LocalResidual
inherited

Member Function Documentation

◆ asImp_()

SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false > & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, useImplicitAssembly >::asImp_ ( )
inlineprotectedinherited

◆ assembleJacobianAndResidual()

void Dumux::SubDomainCCLocalAssemblerBase< id, TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, implicit >::assembleJacobianAndResidual ( JacobianMatrixRow & jacRow,
SubResidualVector & res,
GridVariablesTuple & gridVariables )
inlineinherited

◆ assembleJacobianAndResidualImplInverse()

template<std::size_t id, class TypeTag, class Assembler>
template<class JacobianMatrixDiagBlock, class GridVariables>
LocalResidualValues Dumux::SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >::assembleJacobianAndResidualImplInverse ( JacobianMatrixDiagBlock & A,
GridVariables & gridVariables )
inline
Note
In an explicit scheme, only the storage terms need to be differentiated. Thus, this can be done as in the uncoupled case as the coupling can only enter sources or fluxes.
Returns
The element residual at the current solution.

◆ assembleJacobianCoupling() [1/2]

template<std::size_t id, class TypeTag, class Assembler>
template<std::size_t otherId, class JacobianBlock, class GridVariables>
void Dumux::SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >::assembleJacobianCoupling ( Dune::index_constant< otherId > domainJ,
JacobianBlock & A,
const LocalResidualValues & res,
GridVariables & gridVariables )
inline
Note
Since the coupling can only enter sources or fluxes and these are evaluated on the old time level (explicit scheme), the coupling blocks are empty.

◆ assembleJacobianCoupling() [2/2]

void Dumux::SubDomainCCLocalAssemblerBase< id, TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, implicit >::assembleJacobianCoupling ( Dune::index_constant< otherId > domainJ,
JacRow & jacRow,
const LocalResidualValues & res,
GridVariables & gridVariables )
inlineinherited

◆ assembler()

const Assembler & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, useImplicitAssembly >::assembler ( ) const
inlineinherited

◆ assembleResidual()

void Dumux::SubDomainCCLocalAssemblerBase< id, TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, implicit >::assembleResidual ( SubResidualVector & res)
inlineinherited

◆ bindLocalViews()

void Dumux::SubDomainCCLocalAssemblerBase< id, TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, implicit >::bindLocalViews ( )
inlineinherited

◆ couplingManager()

CouplingManager & Dumux::SubDomainCCLocalAssemblerBase< id, TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, implicit >::couplingManager ( )
inlineinherited

◆ curElemVolVars()

ElementVolumeVariables & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, useImplicitAssembly >::curElemVolVars ( )
inlineinherited

◆ curSol()

const SolutionVector & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, useImplicitAssembly >::curSol ( ) const
inlineinherited

◆ elemBcTypes()

ElementBoundaryTypes & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, useImplicitAssembly >::elemBcTypes ( )
inlineinherited

◆ element()

const Element & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, useImplicitAssembly >::element ( ) const
inlineinherited

◆ elementIsGhost()

bool Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, useImplicitAssembly >::elementIsGhost ( ) const
inlineinherited

◆ elemFluxVarsCache()

ElementFluxVariablesCache & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, useImplicitAssembly >::elemFluxVarsCache ( )
inlineinherited

◆ enforceInternalDirichletConstraints()

void Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, useImplicitAssembly >::enforceInternalDirichletConstraints ( const ApplyFunction & applyDirichlet)
inlineinherited

◆ evalFluxResidual()

LocalResidualValues Dumux::SubDomainCCLocalAssemblerBase< id, TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, implicit >::evalFluxResidual ( const Element & neighbor,
const SubControlVolumeFace & scvf ) const
inlineinherited

◆ evalLocalFluxAndSourceResidual()

ElementResidualVector Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, useImplicitAssembly >::evalLocalFluxAndSourceResidual ( ) const
inlineinherited

◆ evalLocalResidual()

ElementResidualVector Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, useImplicitAssembly >::evalLocalResidual ( ) const
inlineinherited

◆ evalLocalSourceResidual()

ElementResidualVector Dumux::SubDomainCCLocalAssemblerBase< id, TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, implicit >::evalLocalSourceResidual ( const Element & element,
const ElementVolumeVariables & elemVolVars ) const
inlineinherited

◆ evalLocalStorageResidual()

LocalResidualValues Dumux::SubDomainCCLocalAssemblerBase< id, TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, implicit >::evalLocalStorageResidual ( ) const
inlineinherited

◆ fvGeometry()

FVElementGeometry & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, useImplicitAssembly >::fvGeometry ( )
inlineinherited

◆ getVolVarAccess()

VolumeVariables & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, useImplicitAssembly >::getVolVarAccess ( GridVolumeVariables & gridVolVars,
ElementVolumeVariables & elemVolVars,
const SubControlVolume & scv )
inlineprotectedinherited

◆ isImplicit()

constexpr bool Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, useImplicitAssembly >::isImplicit ( )
inlinestaticconstexprinherited

◆ localResidual()

LocalResidual & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, useImplicitAssembly >::localResidual ( )
inlineinherited

◆ prevElemVolVars()

ElementVolumeVariables & Dumux::FVLocalAssemblerBase< TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, useImplicitAssembly >::prevElemVolVars ( )
inlineinherited

◆ problem()

const Problem & Dumux::SubDomainCCLocalAssemblerBase< id, TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, implicit >::problem ( ) const
inlineinherited

Member Data Documentation

◆ domainId

auto Dumux::SubDomainCCLocalAssemblerBase< id, TypeTag, Assembler, SubDomainCCLocalAssembler< id, TypeTag, Assembler, DiffMethod::numeric, false >, implicit >::domainId
staticconstexprinherited

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